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

Last change on this file since 1190 was 1190, checked in by dmik, 8 years ago

spec: os2tk45: Release version 4.5.2-5.

File size: 6.2 KB
Line 
1Summary: IBM OS/2 Developer's Toolkit Version 4.5
2Name: os2tk45
3Version: 4.5.2
4Release: 5%{?dist}
5Group: System Environment/Libraries
6License: IBM
7Vendor: bww bitwise works GmbH
8
9%scm_source github https://github.com/bitwiseworks/%{name} 660fdb07c929623bd9043c88f2734f08c741e714
10
11# Act like a meta-package and install all essential subpackages
12Requires: %{name}-headers = %{version}-%{release}
13Requires: %{name}-libs = %{version}-%{release}
14Requires: %{name}-rc = %{version}-%{release}
15Requires: %{name}-books = %{version}-%{release}
16
17%description
18The IBM OS/2 Developer's Toolkit Version 4.5 provides development support
19for new features in the "OS/2 Warp Server for e-business" operating system
20and eComStation.
21
22%package readme
23Summary: IBM OS/2 Developer's Toolkit readme
24BuildArch: noarch
25# The readme subpackage is required by everybody, so use it as a place for
26# common dependencies (meta package isn't good for it as it may be not
27# installed):
28# - os2-base 0.0.0-12 sets up BOOK/HELP/DPATH for UNIXROOT in config.sys
29Requires: os2-base >= 0.0.0-12
30
31%description readme
32Provides IBM OS/2 Developer's Toolkit readme and changelog files.
33
34%package headers
35Summary: IBM OS/2 Developer's Toolkit headers
36Requires: %{name}-readme = %{version}-%{release}
37BuildArch: noarch
38
39%description headers
40Provides IBM OS/2 Developer's Toolkit header files.
41
42%package libs
43Summary: IBM OS/2 Developer's Toolkit libraries
44Requires: %{name}-readme = %{version}-%{release}
45
46%description libs
47Provides IBM OS/2 Developer's Toolkit library files.
48
49%package rc
50Summary: IBM OS/2 Developer's Toolkit resource compilers
51Requires: %{name}-readme = %{version}-%{release}
52
53%description rc
54Provides IBM OS/2 Developer's Toolkit resource compilers. Both 32-bit and 16-bit
55resource compilers (version 5.xxx and 4.xxx, respectively) are included in this
56package.
57
58%package books
59Summary: IBM OS/2 Developer's Toolkit books
60Requires: %{name}-readme = %{version}-%{release}
61BuildArch: noarch
62
63%description books
64Provides IBM OS/2 Developer's Toolkit book files in INF and HLP formats.
65
66%prep
67%scm_setup
68
69%build
70
71%install
72
73%{__mkdir_p} %{buildroot}%{_includedir}/os2tk45
74%{__cp} -pR h/* %{buildroot}%{_includedir}/os2tk45/
75# copy inc directory inside to avoid one more dir under include
76%{__cp} -pR inc %{buildroot}%{_includedir}/os2tk45/
77# remove LIBC stuff, will go to a separate subpackage one day
78%{__rm} -rf %{buildroot}%{_includedir}/os2tk45/libc
79# remove SOM stuff, it will go to a separate subpackage one day
80%{__rm} %{buildroot}%{_includedir}/os2tk45/wincfg.*h
81%{__rm} %{buildroot}%{_includedir}/os2tk45/wp*.*h
82
83%{__mkdir_p} -p %{buildroot}%{_libdir}
84%{__cp} -pR lib/* %{buildroot}%{_libdir}/
85# remove LIBC stuff, will go to a separate subpackage one day
86%{__rm} %{buildroot}%{_libdir}/libc*.lib
87# remove cryptol.lib, it will go to a separate subpackage one day
88%{__rm} %{buildroot}%{_libdir}/crypto.lib
89
90%{__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/
101
102%files
103# nothing of its own in the meta-package
104
105%files readme
106%doc readme
107%doc changelog
108
109%files headers
110%{_includedir}/os2tk45
111
112%files libs
113%{_libdir}/*.lib
114
115%files rc
116%{_bindir}/rc.exe
117%{_bindir}/rc16.exe
118%{_bindir}/rcpp.*
119%{_datadir}/os2/lang/rc*.msg
120%{_datadir}/os2/lang/messages.msg
121
122%files books
123%{_datadir}/os2/book/*
124
125%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 > NUL
127
128%postun headers
129if [ "$1" = 0 ] ; then
130# 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
132fi
133
134%post libs
135%cube {ADDSTRING "%UNIXROOT%\usr\lib;" IN "SET LIB=" (FIRST IFNEW BEFORE ADDBOTTOM RS(%%)} c:\config.sys > NUL
136
137%postun libs
138if [ "$1" = 0 ] ; then
139# execute only on last uninstall
140%cube {DELSTRING "%UNIXROOT%\usr\lib;" IN "SET LIB=" (FIRST RS(%%)} c:\config.sys > NUL
141fi
142
143%post books
144%cube {REPLINE "SET CPREF=" WITH "SET CPREF=CP1.INF+CP2.INF+CP3.INF" (ADDBOTTOM} c:\config.sys > NUL
145%cube {REPLINE "SET GPIREF=" WITH "SET GPIREF=GPI1.INF+GPI2.INF+GPI3.INF+GPI4.INF" (ADDBOTTOM} c:\config.sys > NUL
146%cube {REPLINE "SET MMREF=" WITH "SET MMREF=MMREF1.INF+MMREF2.INF+MMREF3.INF" (ADDBOTTOM} c:\config.sys > NUL
147%cube {REPLINE "SET PMREF=" WITH "SET PMREF=PM1.INF+PM2.INF+PM3.INF+PM4.INF+PM5.INF" (ADDBOTTOM} c:\config.sys > NUL
148%cube {REPLINE "SET WPSREF=" WITH "SET WPSREF=WPS1.INF+WPS2.INF+WPS3.INF" (ADDBOTTOM} c:\config.sys > NUL
149
150%postun books
151if [ "$1" = 0 ] ; then
152# execute only on last uninstall
153%cube {DELLINE "SET CPREF="} c:\config.sys > NUL
154%cube {DELLINE "SET GPIREF="} c:\config.sys > NUL
155%cube {DELLINE "SET MMREF="} c:\config.sys > NUL
156%cube {DELLINE "SET PMREF="} c:\config.sys > NUL
157%cube {DELLINE "SET WPSREF="} c:\config.sys > NUL
158fi
159
160%changelog
161* Sat Jun 10 2017 Dmitriy Kuminov <coding@dmik.org> 4.5.2-5
162- Add messages.msg to os2tk45-rc sub-package.
163- Brush up %install by using mkdir/cp/rm macros.
164
165* Tue May 16 2017 Dmitriy Kuminov <coding@dmik.org> 4.5.2-4
166- Add rc subpackage that contains resource compilers version 4 and 5.
167- Remove noarch from libs subpackage.
168- Make libs subpackage properly clean up LIB statement in config.sys.
169- Update config.sys settings upon each update/reinstall.
170
171* Thu Feb 4 2016 Dmitriy Kuminov <coding@dmik.org> 4.5.2-3
172- Remove crypto.lib from libs package (conflicts with openssl-devel).
173
174* Wed Jan 27 2016 Dmitriy Kuminov <coding@dmik.org> 4.5.2-2
175- Add libs package.
176- Remove LIBC related files from headers and libraries.
177
178* Wed Jan 27 2016 Dmitriy Kuminov <coding@dmik.org> 4.5.2-1
179- Initial package for Toolkit version 4.5.2.
180- Remove ancient DOS EOF symbol (0x1A) from headers.
Note: See TracBrowser for help on using the repository browser.