Changeset 1209 for spec/trunk/SPECS/os2tk45.spec
- Timestamp:
- Jul 28, 2017, 6:52:53 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/os2tk45.spec
r1190 r1209 2 2 Name: os2tk45 3 3 Version: 4.5.2 4 Release: 5%{?dist}4 Release: 6%{?dist} 5 5 Group: System Environment/Libraries 6 6 License: IBM … … 8 8 9 9 %scm_source github https://github.com/bitwiseworks/%{name} 660fdb07c929623bd9043c88f2734f08c741e714 10 11 %global os2_ipfcdir %{_datadir}/os2/ipfc 12 %global os2tk45_includedir %{_includedir}/os2tk45 10 13 11 14 # Act like a meta-package and install all essential subpackages … … 13 16 Requires: %{name}-libs = %{version}-%{release} 14 17 Requires: %{name}-rc = %{version}-%{release} 18 Requires: %{name}-utils = %{version}-%{release} 15 19 Requires: %{name}-books = %{version}-%{release} 20 21 # For os2_dos_path, os2_langdir etc. macros 22 Requires: os2-rpm >= 0-4 16 23 17 24 %description … … 56 63 package. 57 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 58 80 %package books 59 81 Summary: IBM OS/2 Developer's Toolkit books … … 71 93 %install 72 94 73 %{__mkdir_p} %{buildroot}%{ _includedir}/os2tk4574 %{__cp} -pR h/* %{buildroot}%{ _includedir}/os2tk45/95 %{__mkdir_p} %{buildroot}%{os2tk45_includedir} 96 %{__cp} -pR h/* %{buildroot}%{os2tk45_includedir} 75 97 # copy inc directory inside to avoid one more dir under include 76 %{__cp} -pR inc %{buildroot}%{ _includedir}/os2tk45/98 %{__cp} -pR inc %{buildroot}%{os2tk45_includedir} 77 99 # remove LIBC stuff, will go to a separate subpackage one day 78 %{__rm} -rf %{buildroot}%{ _includedir}/os2tk45/libc100 %{__rm} -rf %{buildroot}%{os2tk45_includedir}/libc 79 101 # remove SOM stuff, it will go to a separate subpackage one day 80 %{__rm} %{buildroot}%{ _includedir}/os2tk45/wincfg.*h81 %{__rm} %{buildroot}%{ _includedir}/os2tk45/wp*.*h102 %{__rm} %{buildroot}%{os2tk45_includedir}/wincfg.*h 103 %{__rm} %{buildroot}%{os2tk45_includedir}/wp*.*h 82 104 83 105 %{__mkdir_p} -p %{buildroot}%{_libdir} 84 %{__cp} -pR lib/* %{buildroot}%{_libdir} /106 %{__cp} -pR lib/* %{buildroot}%{_libdir} 85 107 # remove LIBC stuff, will go to a separate subpackage one day 86 108 %{__rm} %{buildroot}%{_libdir}/libc*.lib … … 89 111 90 112 %{__mkdir_p} %{buildroot}%{_bindir} 91 %{__mkdir_p} %{buildroot}%{_datadir}/os2/lang 92 93 %{__cp} -p bin/rc.exe %{buildroot}%{_bindir}/ 94 %{__cp} -p bin/rc16.exe %{buildroot}%{_bindir}/ 95 %{__cp} -p bin/rcpp.* %{buildroot}%{_bindir}/ 96 %{__cp} -p msg/rc*.msg %{buildroot}%{_datadir}/os2/lang/ 97 %{__cp} -p msg/messages.msg %{buildroot}%{_datadir}/os2/lang/ 98 99 %{__mkdir_p} %{buildroot}%{_datadir}/os2/book 100 %{__cp} -p book/* %{buildroot}%{_datadir}/os2/book/ 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} 101 136 102 137 %files … … 108 143 109 144 %files headers 110 %{_includedir}/os2tk45 145 %dir %{os2tk45_includedir} 146 %{os2tk45_includedir} 111 147 112 148 %files libs … … 117 153 %{_bindir}/rc16.exe 118 154 %{_bindir}/rcpp.* 119 %{_datadir}/os2/lang/rc*.msg 120 %{_datadir}/os2/lang/messages.msg 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}/* 121 167 122 168 %files books 123 %{ _datadir}/os2/book/*169 %{os2_bookdir}/* 124 170 125 171 %post headers 126 %cube {ADDSTRING "% UNIXROOT%\usr\include\os2tk45\inc;%UNIXROOT%\usr\include\os2tk45\gl;%UNIXROOT%\usr\include\os2tk45;" IN "SET INCLUDE=" (FIRST IFNEW BEFORE ADDBOTTOM RS(%%)} c:\config.sys > NUL172 %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 127 173 128 174 %postun headers 129 175 if [ "$1" = 0 ] ; then 130 176 # execute only on last uninstall 131 %cube {DELSTRING "%UNIXROOT%\usr\include\os2tk45\inc;%UNIXROOT%\usr\include\os2tk45\gl;%UNIXROOT%\usr\include\os2tk45;" IN "SET INCLUDE=" (FIRST RS(%%)} c:\config.sys > NUL 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 132 187 fi 133 188 134 189 %post libs 135 %cube {ADDSTRING "% UNIXROOT%\usr\lib;" IN "SET LIB=" (FIRST IFNEW BEFORE ADDBOTTOM RS(%%)} c:\config.sys > NUL190 %cube {ADDSTRING "%{os2_dos_path %{_libdir}};" IN "SET LIB=" (FIRST IFNEW BEFORE ADDBOTTOM RS(%%)} c:\config.sys > NUL 136 191 137 192 %postun libs 138 193 if [ "$1" = 0 ] ; then 139 194 # execute only on last uninstall 140 %cube {DELSTRING "% UNIXROOT%\usr\lib;" IN "SET LIB=" (FIRST RS(%%)} c:\config.sys > NUL195 %cube {DELSTRING "%{os2_dos_path %{_libdir}};" IN "SET LIB=" (FIRST RS(%%)} c:\config.sys > NUL 141 196 fi 142 197 … … 159 214 160 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 161 221 * Sat Jun 10 2017 Dmitriy Kuminov <coding@dmik.org> 4.5.2-5 162 222 - Add messages.msg to os2tk45-rc sub-package.
Note:
See TracChangeset
for help on using the changeset viewer.