1 | Summary: IBM OS/2 Developer's Toolkit Version 4.5
|
---|
2 | Name: os2tk45
|
---|
3 | Version: 4.5.2
|
---|
4 | Release: 4%{?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 | # Act like a meta-package and install all essential subpackages
|
---|
12 | Requires: %{name}-headers = %{version}-%{release}
|
---|
13 | Requires: %{name}-libs = %{version}-%{release}
|
---|
14 | Requires: %{name}-rc = %{version}-%{release}
|
---|
15 | Requires: %{name}-books = %{version}-%{release}
|
---|
16 |
|
---|
17 | %description
|
---|
18 | The IBM OS/2 Developer's Toolkit Version 4.5 provides development support
|
---|
19 | for new features in the "OS/2 Warp Server for e-business" operating system
|
---|
20 | and eComStation.
|
---|
21 |
|
---|
22 | %package readme
|
---|
23 | Summary: IBM OS/2 Developer's Toolkit readme
|
---|
24 | BuildArch: 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
|
---|
29 | Requires: os2-base >= 0.0.0-12
|
---|
30 |
|
---|
31 | %description readme
|
---|
32 | Provides IBM OS/2 Developer's Toolkit readme and changelog files.
|
---|
33 |
|
---|
34 | %package headers
|
---|
35 | Summary: IBM OS/2 Developer's Toolkit headers
|
---|
36 | Requires: %{name}-readme = %{version}-%{release}
|
---|
37 | BuildArch: noarch
|
---|
38 |
|
---|
39 | %description headers
|
---|
40 | Provides IBM OS/2 Developer's Toolkit header files.
|
---|
41 |
|
---|
42 | %package libs
|
---|
43 | Summary: IBM OS/2 Developer's Toolkit libraries
|
---|
44 | Requires: %{name}-readme = %{version}-%{release}
|
---|
45 |
|
---|
46 | %description libs
|
---|
47 | Provides IBM OS/2 Developer's Toolkit library files.
|
---|
48 |
|
---|
49 | %package rc
|
---|
50 | Summary: IBM OS/2 Developer's Toolkit resource compilers
|
---|
51 | Requires: %{name}-readme = %{version}-%{release}
|
---|
52 |
|
---|
53 | %description rc
|
---|
54 | Provides IBM OS/2 Developer's Toolkit resource compilers. Both 32-bit and 16-bit
|
---|
55 | resource compilers (version 5.xxx and 4.xxx, respectively) are included in this
|
---|
56 | package.
|
---|
57 |
|
---|
58 | %package books
|
---|
59 | Summary: IBM OS/2 Developer's Toolkit books
|
---|
60 | Requires: %{name}-readme = %{version}-%{release}
|
---|
61 | BuildArch: noarch
|
---|
62 |
|
---|
63 | %description books
|
---|
64 | Provides 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 %{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/rcpp.* %{buildroot}%{_bindir}/
|
---|
95 | cp -p msg/rc*.msg %{buildroot}%{_datadir}/os2/lang/
|
---|
96 |
|
---|
97 | mkdir -p %{buildroot}%{_datadir}/os2/book
|
---|
98 | cp -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
|
---|
125 | if [ "$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
|
---|
128 | fi
|
---|
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
|
---|
134 | if [ "$1" = 0 ] ; then
|
---|
135 | # execute only on last uninstall
|
---|
136 | %cube {DELSTRING "%UNIXROOT%\usr\lib;" IN "SET LIB=" (FIRST RS(%%)} c:\config.sys > NUL
|
---|
137 | fi
|
---|
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
|
---|
147 | if [ "$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
|
---|
154 | fi
|
---|
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.
|
---|