source: spec/trunk/SPECS/os2tk45.spec@ 1566

Last change on this file since 1566 was 1466, checked in by Silvan Scherrer, 7 years ago

spec: os2tk45: Release version 4.5.2-8.

File size: 8.2 KB
Line 
1Summary: IBM OS/2 Developer's Toolkit Version 4.5
2Name: os2tk45
3Version: 4.5.2
4Release: 8%{?dist}
5Group: System Environment/Libraries
6License: IBM
7Vendor: bww bitwise works GmbH
8
9%scm_source github https://github.com/bitwiseworks/%{name} c0ec7250eded133e9152416a7ae8906c319f7dd6
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
15Requires: %{name}-headers = %{version}-%{release}
16Requires: %{name}-libs = %{version}-%{release}
17Requires: %{name}-rc = %{version}-%{release}
18Requires: %{name}-utils = %{version}-%{release}
19Requires: %{name}-books = %{version}-%{release}
20
21# For os2_dos_path, os2_langdir etc. macros
22Requires: os2-rpm >= 0-4
23
24%description
25The IBM OS/2 Developer's Toolkit Version 4.5 provides development support
26for new features in the "OS/2 Warp Server for e-business" operating system
27and eComStation.
28
29%package readme
30Summary: IBM OS/2 Developer's Toolkit readme
31BuildArch: 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
36Requires: os2-base >= 0.0.0-12
37
38%description readme
39Provides IBM OS/2 Developer's Toolkit readme and changelog files.
40
41%package headers
42Summary: IBM OS/2 Developer's Toolkit headers
43Requires: %{name}-readme = %{version}-%{release}
44BuildArch: noarch
45
46%description headers
47Provides IBM OS/2 Developer's Toolkit header files.
48
49%package libs
50Summary: IBM OS/2 Developer's Toolkit libraries
51Requires: %{name}-readme = %{version}-%{release}
52
53%description libs
54Provides IBM OS/2 Developer's Toolkit library files.
55
56%package rc
57Summary: IBM OS/2 Developer's Toolkit resource compilers
58Requires: %{name}-readme = %{version}-%{release}
59
60%description rc
61Provides IBM OS/2 Developer's Toolkit resource compilers. Both 32-bit and 16-bit
62resource compilers (version 5.xxx and 4.xxx, respectively) are included in this
63package.
64
65%package utils
66Summary: IBM OS/2 Developer's Toolkit utilities
67Requires: %{name}-readme = %{version}-%{release}
68
69%description utils
70Provides IBM OS/2 Developer's Toolkit utility programs.
71
72%package ipfc
73Summary: IBM OS/2 Developer's Toolkit IPFC tool
74Requires: %{name}-readme = %{version}-%{release}
75
76%description ipfc
77Provides IBM OS/2 Developer's Toolkit Information Presentation Facility tool
78including the IPF complier and support files.
79
80%package books
81Summary: IBM OS/2 Developer's Toolkit books
82Requires: %{name}-readme = %{version}-%{release}
83BuildArch: noarch
84
85%description books
86Provides 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(%%)} %{os2_config_sys} > NUL
173
174%postun headers
175if [ "$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(%%)} %{os2_config_sys} > NUL
178fi
179
180%post ipfc
181%cube {ADDSTRING "%{os2_dos_path %{_datadir}/os2/ipfc};" IN "SET IPFC=" (FIRST IFNEW BEFORE ADDBOTTOM RS(%%)} %{os2_config_sys} > NUL
182
183%postun ipfc
184if [ "$1" = 0 ] ; then
185# execute only on last uninstall
186%cube {DELSTRING "%{os2_dos_path %{_datadir}/os2/ipfc};" IN "SET IPFC=" (FIRST RS(%%)} %{os2_config_sys} > NUL
187fi
188
189%post libs
190%cube {ADDSTRING "%{os2_dos_path %{_libdir}};" IN "SET LIB=" (FIRST IFNEW BEFORE ADDBOTTOM RS(%%)} %{os2_config_sys} > NUL
191
192%postun libs
193if [ "$1" = 0 ] ; then
194# execute only on last uninstall
195%cube {DELSTRING "%{os2_dos_path %{_libdir}};" IN "SET LIB=" (FIRST RS(%%)} %{os2_config_sys} > NUL
196fi
197
198%post books
199%cube {REPLINE "SET CPREF=" WITH "SET CPREF=CP1.INF+CP2.INF+CP3.INF" (ADDBOTTOM} %{os2_config_sys} > NUL
200%cube {REPLINE "SET GPIREF=" WITH "SET GPIREF=GPI1.INF+GPI2.INF+GPI3.INF+GPI4.INF" (ADDBOTTOM} %{os2_config_sys} > NUL
201%cube {REPLINE "SET MMREF=" WITH "SET MMREF=MMREF1.INF+MMREF2.INF+MMREF3.INF" (ADDBOTTOM} %{os2_config_sys} > NUL
202%cube {REPLINE "SET PMREF=" WITH "SET PMREF=PM1.INF+PM2.INF+PM3.INF+PM4.INF+PM5.INF" (ADDBOTTOM} %{os2_config_sys} > NUL
203%cube {REPLINE "SET WPSREF=" WITH "SET WPSREF=WPS1.INF+WPS2.INF+WPS3.INF" (ADDBOTTOM} %{os2_config_sys} > NUL
204
205%postun books
206if [ "$1" = 0 ] ; then
207# execute only on last uninstall
208%cube {DELLINE "SET CPREF="} %{os2_config_sys} > NUL
209%cube {DELLINE "SET GPIREF="} %{os2_config_sys} > NUL
210%cube {DELLINE "SET MMREF="} %{os2_config_sys} > NUL
211%cube {DELLINE "SET PMREF="} %{os2_config_sys} > NUL
212%cube {DELLINE "SET WPSREF="} %{os2_config_sys} > NUL
213fi
214
215%changelog
216* Tue Sep 04 2018 Silvan Scherrer <silvan.scherrer@aroa.ch> 4.5.2-8
217- add pdpublic.h ticket #1
218- fix ticket #3
219
220* Mon Jun 18 2018 Silvan Scherrer <silvan.scherrer@aroa.ch> 4.5.2-7
221- use %{os2_config_sys} macro instead of fixed c:\config.sys
222
223* Fri Jul 28 2017 Dmitriy Kuminov <coding@dmik.org> 4.5.2-6
224- Add utils sub-package (currently with EXEHDR, ALP and MAPSYM).
225- Add ipfc sub-package with IPFC and support files.
226- Use handy os2_dos_path, os2_langdir etc. macros from os2-rpm.
227
228* Sat Jun 10 2017 Dmitriy Kuminov <coding@dmik.org> 4.5.2-5
229- Add messages.msg to os2tk45-rc sub-package.
230- Brush up %install by using mkdir/cp/rm macros.
231
232* Tue May 16 2017 Dmitriy Kuminov <coding@dmik.org> 4.5.2-4
233- Add rc subpackage that contains resource compilers version 4 and 5.
234- Remove noarch from libs subpackage.
235- Make libs subpackage properly clean up LIB statement in config.sys.
236- Update config.sys settings upon each update/reinstall.
237
238* Thu Feb 4 2016 Dmitriy Kuminov <coding@dmik.org> 4.5.2-3
239- Remove crypto.lib from libs package (conflicts with openssl-devel).
240
241* Wed Jan 27 2016 Dmitriy Kuminov <coding@dmik.org> 4.5.2-2
242- Add libs package.
243- Remove LIBC related files from headers and libraries.
244
245* Wed Jan 27 2016 Dmitriy Kuminov <coding@dmik.org> 4.5.2-1
246- Initial package for Toolkit version 4.5.2.
247- Remove ancient DOS EOF symbol (0x1A) from headers.
Note: See TracBrowser for help on using the repository browser.