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

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

spec: os2tk45: Release version 4.5.2-4.

File size: 5.8 KB
Line 
1Summary: IBM OS/2 Developer's Toolkit Version 4.5
2Name: os2tk45
3Version: 4.5.2
4Release: 4%{?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
73mkdir -p %{buildroot}%{_includedir}/os2tk45
74cp -pR h/* %{buildroot}%{_includedir}/os2tk45/
75# copy inc directory inside to avoid one more dir under include
76cp -pR inc %{buildroot}%{_includedir}/os2tk45/
77# remove LIBC stuff, will go to a separate subpackage one day
78rm -rf %{buildroot}%{_includedir}/os2tk45/libc
79# remove SOM stuff, it will go to a separate subpackage one day
80rm %{buildroot}%{_includedir}/os2tk45/wincfg.*h
81rm %{buildroot}%{_includedir}/os2tk45/wp*.*h
82
83mkdir -p %{buildroot}%{_libdir}
84cp -pR lib/* %{buildroot}%{_libdir}/
85# remove LIBC stuff, will go to a separate subpackage one day
86rm %{buildroot}%{_libdir}/libc*.lib
87# remove cryptol.lib, it will go to a separate subpackage one day
88rm %{buildroot}%{_libdir}/crypto.lib
89
90mkdir -p %{buildroot}%{_bindir}
91mkdir -p %{buildroot}%{_datadir}/os2/lang
92
93cp -p bin/rc*.exe %{buildroot}%{_bindir}/
94cp -p bin/rcpp.* %{buildroot}%{_bindir}/
95cp -p msg/rc*.msg %{buildroot}%{_datadir}/os2/lang/
96
97mkdir -p %{buildroot}%{_datadir}/os2/book
98cp -p book/* %{buildroot}%{_datadir}/os2/book/
99
100%files
101# nothing of its own in the meta-package
102
103%files readme
104%doc readme
105%doc changelog
106
107%files headers
108%{_includedir}/os2tk45
109
110%files libs
111%{_libdir}/*.lib
112
113%files rc
114%{_bindir}/rc*.exe
115%{_bindir}/rcpp.*
116%{_datadir}/os2/lang/rc*.msg
117
118%files books
119%{_datadir}/os2/book/*
120
121%post headers
122%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
123
124%postun headers
125if [ "$1" = 0 ] ; then
126# execute only on last uninstall
127%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
128fi
129
130%post libs
131%cube {ADDSTRING "%UNIXROOT%\usr\lib;" IN "SET LIB=" (FIRST IFNEW BEFORE ADDBOTTOM RS(%%)} c:\config.sys > NUL
132
133%postun libs
134if [ "$1" = 0 ] ; then
135# execute only on last uninstall
136%cube {DELSTRING "%UNIXROOT%\usr\lib;" IN "SET LIB=" (FIRST RS(%%)} c:\config.sys > NUL
137fi
138
139%post books
140%cube {REPLINE "SET CPREF=" WITH "SET CPREF=CP1.INF+CP2.INF+CP3.INF" (ADDBOTTOM} c:\config.sys > NUL
141%cube {REPLINE "SET GPIREF=" WITH "SET GPIREF=GPI1.INF+GPI2.INF+GPI3.INF+GPI4.INF" (ADDBOTTOM} c:\config.sys > NUL
142%cube {REPLINE "SET MMREF=" WITH "SET MMREF=MMREF1.INF+MMREF2.INF+MMREF3.INF" (ADDBOTTOM} c:\config.sys > NUL
143%cube {REPLINE "SET PMREF=" WITH "SET PMREF=PM1.INF+PM2.INF+PM3.INF+PM4.INF+PM5.INF" (ADDBOTTOM} c:\config.sys > NUL
144%cube {REPLINE "SET WPSREF=" WITH "SET WPSREF=WPS1.INF+WPS2.INF+WPS3.INF" (ADDBOTTOM} c:\config.sys > NUL
145
146%postun books
147if [ "$1" = 0 ] ; then
148# execute only on last uninstall
149%cube {DELLINE "SET CPREF="} c:\config.sys > NUL
150%cube {DELLINE "SET GPIREF="} c:\config.sys > NUL
151%cube {DELLINE "SET MMREF="} c:\config.sys > NUL
152%cube {DELLINE "SET PMREF="} c:\config.sys > NUL
153%cube {DELLINE "SET WPSREF="} c:\config.sys > NUL
154fi
155
156%changelog
157* Tue May 16 2017 Dmitriy Kuminov <coding@dmik.org> 4.5.2-4
158- Add rc subpackage that contains resource compilers version 4 and 5.
159- Remove noarch from libs subpackage.
160- Make libs subpackage properly clean up LIB statement in config.sys.
161- Update config.sys settings upon each update/reinstall.
162
163* Thu Feb 4 2016 Dmitriy Kuminov <coding@dmik.org> 4.5.2-3
164- Remove crypto.lib from libs package (conflicts with openssl-devel).
165
166* Wed Jan 27 2016 Dmitriy Kuminov <coding@dmik.org> 4.5.2-2
167- Add libs package.
168- Remove LIBC related files from headers and libraries.
169
170* Wed Jan 27 2016 Dmitriy Kuminov <coding@dmik.org> 4.5.2-1
171- Initial package for Toolkit version 4.5.2.
172- Remove ancient DOS EOF symbol (0x1A) from headers.
Note: See TracBrowser for help on using the repository browser.