| 1 | Summary: IBM OS/2 Developer's Toolkit Version 4.5
|
|---|
| 2 | Name: os2tk45
|
|---|
| 3 | Version: 4.5.2
|
|---|
| 4 | Release: 6%{?dist}
|
|---|
| 5 | Group: System Environment/Libraries
|
|---|
| 6 | License: IBM
|
|---|
| 7 | Vendor: bww bitwise works GmbH
|
|---|
| 8 |
|
|---|
| 9 | %scm_source github https://github.com/bitwiseworks/%{name} 660fdb07c929623bd9043c88f2734f08c741e714
|
|---|
| 10 |
|
|---|
| 11 | %global os2_ipfcdir %{_datadir}/os2/ipfc
|
|---|
| 12 | %global os2tk45_includedir %{_includedir}/os2tk45
|
|---|
| 13 |
|
|---|
| 14 | # Act like a meta-package and install all essential subpackages
|
|---|
| 15 | Requires: %{name}-headers = %{version}-%{release}
|
|---|
| 16 | Requires: %{name}-libs = %{version}-%{release}
|
|---|
| 17 | Requires: %{name}-rc = %{version}-%{release}
|
|---|
| 18 | Requires: %{name}-utils = %{version}-%{release}
|
|---|
| 19 | Requires: %{name}-books = %{version}-%{release}
|
|---|
| 20 |
|
|---|
| 21 | # For os2_dos_path, os2_langdir etc. macros
|
|---|
| 22 | Requires: os2-rpm >= 0-4
|
|---|
| 23 |
|
|---|
| 24 | %description
|
|---|
| 25 | The IBM OS/2 Developer's Toolkit Version 4.5 provides development support
|
|---|
| 26 | for new features in the "OS/2 Warp Server for e-business" operating system
|
|---|
| 27 | and eComStation.
|
|---|
| 28 |
|
|---|
| 29 | %package readme
|
|---|
| 30 | Summary: IBM OS/2 Developer's Toolkit readme
|
|---|
| 31 | BuildArch: noarch
|
|---|
| 32 | # The readme subpackage is required by everybody, so use it as a place for
|
|---|
| 33 | # common dependencies (meta package isn't good for it as it may be not
|
|---|
| 34 | # installed):
|
|---|
| 35 | # - os2-base 0.0.0-12 sets up BOOK/HELP/DPATH for UNIXROOT in config.sys
|
|---|
| 36 | Requires: os2-base >= 0.0.0-12
|
|---|
| 37 |
|
|---|
| 38 | %description readme
|
|---|
| 39 | Provides IBM OS/2 Developer's Toolkit readme and changelog files.
|
|---|
| 40 |
|
|---|
| 41 | %package headers
|
|---|
| 42 | Summary: IBM OS/2 Developer's Toolkit headers
|
|---|
| 43 | Requires: %{name}-readme = %{version}-%{release}
|
|---|
| 44 | BuildArch: noarch
|
|---|
| 45 |
|
|---|
| 46 | %description headers
|
|---|
| 47 | Provides IBM OS/2 Developer's Toolkit header files.
|
|---|
| 48 |
|
|---|
| 49 | %package libs
|
|---|
| 50 | Summary: IBM OS/2 Developer's Toolkit libraries
|
|---|
| 51 | Requires: %{name}-readme = %{version}-%{release}
|
|---|
| 52 |
|
|---|
| 53 | %description libs
|
|---|
| 54 | Provides IBM OS/2 Developer's Toolkit library files.
|
|---|
| 55 |
|
|---|
| 56 | %package rc
|
|---|
| 57 | Summary: IBM OS/2 Developer's Toolkit resource compilers
|
|---|
| 58 | Requires: %{name}-readme = %{version}-%{release}
|
|---|
| 59 |
|
|---|
| 60 | %description rc
|
|---|
| 61 | Provides IBM OS/2 Developer's Toolkit resource compilers. Both 32-bit and 16-bit
|
|---|
| 62 | resource compilers (version 5.xxx and 4.xxx, respectively) are included in this
|
|---|
| 63 | package.
|
|---|
| 64 |
|
|---|
| 65 | %package utils
|
|---|
| 66 | Summary: IBM OS/2 Developer's Toolkit utilities
|
|---|
| 67 | Requires: %{name}-readme = %{version}-%{release}
|
|---|
| 68 |
|
|---|
| 69 | %description utils
|
|---|
| 70 | Provides IBM OS/2 Developer's Toolkit utility programs.
|
|---|
| 71 |
|
|---|
| 72 | %package ipfc
|
|---|
| 73 | Summary: IBM OS/2 Developer's Toolkit IPFC tool
|
|---|
| 74 | Requires: %{name}-readme = %{version}-%{release}
|
|---|
| 75 |
|
|---|
| 76 | %description ipfc
|
|---|
| 77 | Provides IBM OS/2 Developer's Toolkit Information Presentation Facility tool
|
|---|
| 78 | including the IPF complier and support files.
|
|---|
| 79 |
|
|---|
| 80 | %package books
|
|---|
| 81 | Summary: IBM OS/2 Developer's Toolkit books
|
|---|
| 82 | Requires: %{name}-readme = %{version}-%{release}
|
|---|
| 83 | BuildArch: noarch
|
|---|
| 84 |
|
|---|
| 85 | %description books
|
|---|
| 86 | Provides IBM OS/2 Developer's Toolkit book files in INF and HLP formats.
|
|---|
| 87 |
|
|---|
| 88 | %prep
|
|---|
| 89 | %scm_setup
|
|---|
| 90 |
|
|---|
| 91 | %build
|
|---|
| 92 |
|
|---|
| 93 | %install
|
|---|
| 94 |
|
|---|
| 95 | %{__mkdir_p} %{buildroot}%{os2tk45_includedir}
|
|---|
| 96 | %{__cp} -pR h/* %{buildroot}%{os2tk45_includedir}
|
|---|
| 97 | # copy inc directory inside to avoid one more dir under include
|
|---|
| 98 | %{__cp} -pR inc %{buildroot}%{os2tk45_includedir}
|
|---|
| 99 | # remove LIBC stuff, will go to a separate subpackage one day
|
|---|
| 100 | %{__rm} -rf %{buildroot}%{os2tk45_includedir}/libc
|
|---|
| 101 | # remove SOM stuff, it will go to a separate subpackage one day
|
|---|
| 102 | %{__rm} %{buildroot}%{os2tk45_includedir}/wincfg.*h
|
|---|
| 103 | %{__rm} %{buildroot}%{os2tk45_includedir}/wp*.*h
|
|---|
| 104 |
|
|---|
| 105 | %{__mkdir_p} -p %{buildroot}%{_libdir}
|
|---|
| 106 | %{__cp} -pR lib/* %{buildroot}%{_libdir}
|
|---|
| 107 | # remove LIBC stuff, will go to a separate subpackage one day
|
|---|
| 108 | %{__rm} %{buildroot}%{_libdir}/libc*.lib
|
|---|
| 109 | # remove cryptol.lib, it will go to a separate subpackage one day
|
|---|
| 110 | %{__rm} %{buildroot}%{_libdir}/crypto.lib
|
|---|
| 111 |
|
|---|
| 112 | %{__mkdir_p} %{buildroot}%{_bindir}
|
|---|
| 113 | %{__mkdir_p} %{buildroot}%{os2_langdir}
|
|---|
| 114 |
|
|---|
| 115 | # rc
|
|---|
| 116 | %{__cp} -p bin/rc.exe %{buildroot}%{_bindir}
|
|---|
| 117 | %{__cp} -p bin/rc16.exe %{buildroot}%{_bindir}
|
|---|
| 118 | %{__cp} -p bin/rcpp.* %{buildroot}%{_bindir}
|
|---|
| 119 | %{__cp} -p msg/rc*.msg %{buildroot}%{os2_langdir}
|
|---|
| 120 | %{__cp} -p msg/messages.msg %{buildroot}%{os2_langdir}
|
|---|
| 121 |
|
|---|
| 122 | # utils
|
|---|
| 123 | %{__cp} -p bin/exehdr.exe %{buildroot}%{_bindir}
|
|---|
| 124 | %{__cp} -p bin/alp.exe %{buildroot}%{_bindir}
|
|---|
| 125 | %{__cp} -p bin/alp.msg %{buildroot}%{os2_langdir}
|
|---|
| 126 | %{__cp} -p bin/mapsym.exe %{buildroot}%{_bindir}
|
|---|
| 127 |
|
|---|
| 128 | # ipfc
|
|---|
| 129 | %{__mkdir_p} %{buildroot}%{os2_ipfcdir}
|
|---|
| 130 | %{__cp} -p bin/ipfc.exe %{buildroot}%{_bindir}
|
|---|
| 131 | %{__cp} -p ipfc/* %{buildroot}%{os2_ipfcdir}
|
|---|
| 132 |
|
|---|
| 133 | # books
|
|---|
| 134 | %{__mkdir_p} %{buildroot}%{os2_bookdir}
|
|---|
| 135 | %{__cp} -p book/* %{buildroot}%{os2_bookdir}
|
|---|
| 136 |
|
|---|
| 137 | %files
|
|---|
| 138 | # nothing of its own in the meta-package
|
|---|
| 139 |
|
|---|
| 140 | %files readme
|
|---|
| 141 | %doc readme
|
|---|
| 142 | %doc changelog
|
|---|
| 143 |
|
|---|
| 144 | %files headers
|
|---|
| 145 | %dir %{os2tk45_includedir}
|
|---|
| 146 | %{os2tk45_includedir}
|
|---|
| 147 |
|
|---|
| 148 | %files libs
|
|---|
| 149 | %{_libdir}/*.lib
|
|---|
| 150 |
|
|---|
| 151 | %files rc
|
|---|
| 152 | %{_bindir}/rc.exe
|
|---|
| 153 | %{_bindir}/rc16.exe
|
|---|
| 154 | %{_bindir}/rcpp.*
|
|---|
| 155 | %{os2_langdir}/rc*.msg
|
|---|
| 156 | %{os2_langdir}/messages.msg
|
|---|
| 157 |
|
|---|
| 158 | %files utils
|
|---|
| 159 | %{_bindir}/exehdr.exe
|
|---|
| 160 | %{_bindir}/alp.exe
|
|---|
| 161 | %{os2_langdir}/alp.msg
|
|---|
| 162 | %{_bindir}/mapsym.exe
|
|---|
| 163 |
|
|---|
| 164 | %files ipfc
|
|---|
| 165 | %{_bindir}/ipfc.exe
|
|---|
| 166 | %{os2_ipfcdir}/*
|
|---|
| 167 |
|
|---|
| 168 | %files books
|
|---|
| 169 | %{os2_bookdir}/*
|
|---|
| 170 |
|
|---|
| 171 | %post headers
|
|---|
| 172 | %cube {ADDSTRING "%{os2_dos_path %{os2tk45_includedir}/inc;%{os2tk45_includedir}/gl;%{os2tk45_includedir}};" IN "SET INCLUDE=" (FIRST IFNEW BEFORE ADDBOTTOM RS(%%)} c:\config.sys > NUL
|
|---|
| 173 |
|
|---|
| 174 | %postun headers
|
|---|
| 175 | if [ "$1" = 0 ] ; then
|
|---|
| 176 | # execute only on last uninstall
|
|---|
| 177 | %cube {DELSTRING "%{os2_dos_path %{os2tk45_includedir}/inc;%{os2tk45_includedir}/gl;%{os2tk45_includedir}};" IN "SET INCLUDE=" (FIRST RS(%%)} c:\config.sys > NUL
|
|---|
| 178 | fi
|
|---|
| 179 |
|
|---|
| 180 | %post ipfc
|
|---|
| 181 | %cube {ADDSTRING "%{os2_dos_path %{_datadir}/os2/ipfc};" IN "SET IPFC=" (FIRST IFNEW BEFORE ADDBOTTOM RS(%%)} c:\config.sys > NUL
|
|---|
| 182 |
|
|---|
| 183 | %postun ipfc
|
|---|
| 184 | if [ "$1" = 0 ] ; then
|
|---|
| 185 | # execute only on last uninstall
|
|---|
| 186 | %cube {DELSTRING "%{os2_dos_path %{_datadir}/os2/ipfc};" IN "SET IPFC=" (FIRST RS(%%)} c:\config.sys > NUL
|
|---|
| 187 | fi
|
|---|
| 188 |
|
|---|
| 189 | %post libs
|
|---|
| 190 | %cube {ADDSTRING "%{os2_dos_path %{_libdir}};" IN "SET LIB=" (FIRST IFNEW BEFORE ADDBOTTOM RS(%%)} c:\config.sys > NUL
|
|---|
| 191 |
|
|---|
| 192 | %postun libs
|
|---|
| 193 | if [ "$1" = 0 ] ; then
|
|---|
| 194 | # execute only on last uninstall
|
|---|
| 195 | %cube {DELSTRING "%{os2_dos_path %{_libdir}};" IN "SET LIB=" (FIRST RS(%%)} c:\config.sys > NUL
|
|---|
| 196 | fi
|
|---|
| 197 |
|
|---|
| 198 | %post books
|
|---|
| 199 | %cube {REPLINE "SET CPREF=" WITH "SET CPREF=CP1.INF+CP2.INF+CP3.INF" (ADDBOTTOM} c:\config.sys > NUL
|
|---|
| 200 | %cube {REPLINE "SET GPIREF=" WITH "SET GPIREF=GPI1.INF+GPI2.INF+GPI3.INF+GPI4.INF" (ADDBOTTOM} c:\config.sys > NUL
|
|---|
| 201 | %cube {REPLINE "SET MMREF=" WITH "SET MMREF=MMREF1.INF+MMREF2.INF+MMREF3.INF" (ADDBOTTOM} c:\config.sys > NUL
|
|---|
| 202 | %cube {REPLINE "SET PMREF=" WITH "SET PMREF=PM1.INF+PM2.INF+PM3.INF+PM4.INF+PM5.INF" (ADDBOTTOM} c:\config.sys > NUL
|
|---|
| 203 | %cube {REPLINE "SET WPSREF=" WITH "SET WPSREF=WPS1.INF+WPS2.INF+WPS3.INF" (ADDBOTTOM} c:\config.sys > NUL
|
|---|
| 204 |
|
|---|
| 205 | %postun books
|
|---|
| 206 | if [ "$1" = 0 ] ; then
|
|---|
| 207 | # execute only on last uninstall
|
|---|
| 208 | %cube {DELLINE "SET CPREF="} c:\config.sys > NUL
|
|---|
| 209 | %cube {DELLINE "SET GPIREF="} c:\config.sys > NUL
|
|---|
| 210 | %cube {DELLINE "SET MMREF="} c:\config.sys > NUL
|
|---|
| 211 | %cube {DELLINE "SET PMREF="} c:\config.sys > NUL
|
|---|
| 212 | %cube {DELLINE "SET WPSREF="} c:\config.sys > NUL
|
|---|
| 213 | fi
|
|---|
| 214 |
|
|---|
| 215 | %changelog
|
|---|
| 216 | * Fri Jul 28 2017 Dmitriy Kuminov <coding@dmik.org> 4.5.2-6
|
|---|
| 217 | - Add utils sub-package (currently with EXEHDR, ALP and MAPSYM).
|
|---|
| 218 | - Add ipfc sub-package with IPFC and support files.
|
|---|
| 219 | - Use handy os2_dos_path, os2_langdir etc. macros from os2-rpm.
|
|---|
| 220 |
|
|---|
| 221 | * Sat Jun 10 2017 Dmitriy Kuminov <coding@dmik.org> 4.5.2-5
|
|---|
| 222 | - Add messages.msg to os2tk45-rc sub-package.
|
|---|
| 223 | - Brush up %install by using mkdir/cp/rm macros.
|
|---|
| 224 |
|
|---|
| 225 | * Tue May 16 2017 Dmitriy Kuminov <coding@dmik.org> 4.5.2-4
|
|---|
| 226 | - Add rc subpackage that contains resource compilers version 4 and 5.
|
|---|
| 227 | - Remove noarch from libs subpackage.
|
|---|
| 228 | - Make libs subpackage properly clean up LIB statement in config.sys.
|
|---|
| 229 | - Update config.sys settings upon each update/reinstall.
|
|---|
| 230 |
|
|---|
| 231 | * Thu Feb 4 2016 Dmitriy Kuminov <coding@dmik.org> 4.5.2-3
|
|---|
| 232 | - Remove crypto.lib from libs package (conflicts with openssl-devel).
|
|---|
| 233 |
|
|---|
| 234 | * Wed Jan 27 2016 Dmitriy Kuminov <coding@dmik.org> 4.5.2-2
|
|---|
| 235 | - Add libs package.
|
|---|
| 236 | - Remove LIBC related files from headers and libraries.
|
|---|
| 237 |
|
|---|
| 238 | * Wed Jan 27 2016 Dmitriy Kuminov <coding@dmik.org> 4.5.2-1
|
|---|
| 239 | - Initial package for Toolkit version 4.5.2.
|
|---|
| 240 | - Remove ancient DOS EOF symbol (0x1A) from headers.
|
|---|