source: spec/trunk/SPECS/os2-base.spec

Last change on this file was 1655, checked in by Silvan Scherrer, 6 years ago

spec: os2-base: Release version 0.0.1-1.

File size: 10.7 KB
Line 
1
2Summary: OS/2 - eComStation 2.0 - ArcaOS 5.0 base
3Name: os2-base
4Version: 0.0.1
5Release: 1%{?dist}
6
7License: free
8
9Requires: os2-release
10
11# For os2_expand_unixroot
12BuildRequires: os2-rpm >= 1-2
13Requires: os2-rpm >= 1-2
14Requires: libc >= 1:0.1.0-1
15
16Provides: ansicall.dll
17Provides: asiacol.dll
18Provides: bdbvh.dll
19Provides: bdcall32.dll
20Provides: bdcalls.dll
21Provides: bdime.dll
22Provides: bdview.dll
23Provides: bdwpcls.dll
24Provides: bidipm.dll
25Provides: bkscalls.dll
26Provides: bmscalls.dll
27Provides: bvhinit.dll
28Provides: bvhmpa.dll
29Provides: bvhsvga.dll
30Provides: bvhvga.dll
31Provides: bvhwndw.dll
32Provides: bvscalls.dll
33Provides: cdtbl.dll
34Provides: chkdsk32.dll
35Provides: cidlog.dll
36Provides: cometdll.dll
37Provides: cyrime.dll
38Provides: dibdrvr.dll
39Provides: display.dll
40Provides: dmiapi.dll
41Provides: dmiquery.dll
42Provides: dmqsprof.dll
43Provides: doscall1.dll
44Provides: doscalls.dll
45Provides: dosrfico.dll
46Provides: dspimri.dll
47Provides: dspres.dll
48Provides: ehxdlmri.dll
49Provides: engine.dll
50Provides: errlog.dll
51Provides: errtxt.dll
52Provides: ffconfig.dll
53Provides: ffdump.dll
54Provides: ffgui.dll
55Provides: ffipc.dll
56Provides: ffpct.dll
57Provides: ffprobe.dll
58Provides: ffst.dll
59Provides: filever.dll
60Provides: fka.dll
61Provides: fw2dll.dll
62Provides: gbm.dll
63Provides: gengradd.dll
64Provides: genpmi.dll
65Provides: glocmri.dll
66Provides: glut.dll
67Provides: gre2vman.dll
68Provides: helpmgr.dll
69Provides: hpmgrmri.dll
70Provides: hwdvpd.dll
71Provides: ibmdev32.dll
72Provides: ibmgpmi.dll
73Provides: ibmhmgr.dll
74Provides: ibmvga32.dll
75Provides: imp.dll
76Provides: inscfg32.dll
77Provides: inspgm32.dll
78Provides: inst32.dll
79Provides: install.dll
80Provides: instres.dll
81Provides: ivm.dll
82Provides: kbdcalls.dll
83Provides: lfapi.dll
84Provides: libaux.dll
85Provides: libcm.dll
86Provides: libcn.dll
87Provides: libcs.dll
88Provides: libtk.dll
89Provides: libuni.dll
90Provides: lmdll.dll
91Provides: locale.dll
92Provides: lvm.dll
93Provides: mdmi.dll
94Provides: minxmri.dll
95Provides: minxobj.dll
96Provides: mipmini.dll
97Provides: mirrors.dll
98Provides: mmio.dll
99Provides: mmpmcrts.dll
100Provides: mmpmini.dll
101Provides: mmsniff.dll
102Provides: moncalls.dll
103Provides: moucalls.dll
104Provides: msg.dll
105Provides: namedsp.dll
106Provides: namefw.dll
107Provides: namerexx.dll
108Provides: nampipes.dll
109Provides: nls.dll
110Provides: npfimri.dll
111Provides: npxemltr.dll
112Provides: nwiapi.dll
113Provides: oasis.dll
114Provides: objdata.dll
115Provides: opengl.dll
116Provides: orexutil.dll
117Provides: orexx.dll
118Provides: orexxsc.dll
119Provides: orexxsom.dll
120Provides: orexxwps.dll
121Provides: os2char.dll
122Provides: os2mm.dll
123Provides: os2om30.dll
124Provides: os2oooc.dll
125Provides: os2oor3u.dll
126Provides: os2sm.dll
127Provides: panogrex.dll
128Provides: picv.dll
129Provides: pmatm.dll
130Provides: pmbidi.dll
131Provides: pmbind.dll
132Provides: pmchkdsk.dll
133Provides: pmclip.dll
134Provides: pmctls.dll
135Provides: pmdde.dll
136Provides: pmddeml.dll
137Provides: pmdfmsg.dll
138Provides: pmdrag.dll
139Provides: pmex.dll
140Provides: pmformat.dll
141Provides: pmgpi.dll
142Provides: pmgre.dll
143Provides: pmi10c8.dll
144Provides: pmi102b.dll
145Provides: pmi102c.dll
146Provides: pmi1002.dll
147Provides: pmi1023.dll
148Provides: pmi5333.dll
149Provides: pmmerge.dll
150Provides: pmmle.dll
151Provides: pmmrgres.dll
152Provides: pmpic.dll
153Provides: pmpre.dll
154Provides: pmrexxio.dll
155Provides: pmsdmri.dll
156Provides: pmshapi.dll
157Provides: pmshltkt.dll
158Provides: pmspl.dll
159Provides: pmtkt.dll
160Provides: pmunif.dll
161Provides: pmvdmh.dll
162Provides: pmvdmp.dll
163Provides: pmviop.dll
164Provides: pmwin.dll
165Provides: pmwinx.dll
166Provides: pmwp.dll
167Provides: pmwpmri.dll
168Provides: pnp.dll
169Provides: pnpmri.dll
170Provides: prodmri.dll
171Provides: prog.dll
172Provides: progfldr.dll
173Provides: quecalls.dll
174Provides: registry.dll
175Provides: rexx.dll
176Provides: rexxapi.dll
177Provides: rexxcrt.dll
178Provides: rexxinit.dll
179Provides: rexxsom.dll
180Provides: rexxutil.dll
181Provides: rminfo.dll
182Provides: rspimri.dll
183Provides: rxvidcfg.dll
184Provides: s3pmi.dll
185Provides: sbfilter.dll
186Provides: scenter.dll
187Provides: seamless.dll
188Provides: sesmgr.dll
189Provides: shield.dll
190Provides: shpiinst.dll
191Provides: softdraw.dll
192Provides: som.dll
193Provides: somd.dll
194Provides: somem.dll
195Provides: somir.dll
196Provides: soms.dll
197Provides: somsec.dll
198Provides: somtc.dll
199Provides: somu.dll
200Provides: somuc.dll
201Provides: spl1b.dll
202Provides: spoolcp.dll
203Provides: svga.dll
204Provides: svgaimri.dll
205Provides: svgainst.dll
206Provides: svgamri.dll
207Provides: sysfont.dll
208Provides: syslogpm.dll
209Provides: thailib.dll
210Provides: tracedll.dll
211Provides: trcformt.dll
212Provides: truetype.dll
213Provides: ucdfs.dll
214Provides: uconv.dll
215Provides: uhpfs.dll
216Provides: ujfs.dll
217Provides: unikbd.dll
218Provides: uudf.dll
219Provides: vbe2grad.dll
220Provides: vcfgmri.dll
221Provides: vgagradd.dll
222Provides: videocfg.dll
223Provides: videopmi.dll
224Provides: viocalls.dll
225Provides: vman.dll
226Provides: wcfgmri.dll
227Provides: wincfg.dll
228Provides: winprf.dll
229Provides: wpcomet.dll
230Provides: wpconfig.dll
231Provides: wpconmri.dll
232Provides: wpdserv.dll
233Provides: wpdsrvp.dll
234Provides: wpinet.dll
235Provides: wpinstal.dll
236Provides: wpintmri.dll
237Provides: wpnls.dll
238Provides: wppansys.dll
239Provides: wpprint.dll
240Provides: wpprtmri.dll
241Provides: wpstkmou.dll
242Provides: wpstkmri.dll
243Provides: wpvidsys.dll
244
245%description
246Virtual package for OS/2 base shared libraries packaging.
247
248%package unixtools-path
249License: free
250Summary: Makes unix tools from findutils and coreutils first in PATH.
251
252%description unixtools-path
253Adds /@unixroot/usr/libexec/bin at beginning of system PATH, to allow conflicting
254tools from findutils and coreutils to be used instead of default OS/2 tools.
255
256
257%prep
258# nothing to do
259
260%build
261# nothing to do
262
263%install
264%{__rm} -rf $RPM_BUILD_ROOT
265%{__mkdir_p} -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/rpm
266echo i686-OS/2-OS/2 > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
267
268%{__mkdir_p} %{buildroot}%{os2_bookdir}
269%{__mkdir_p} %{buildroot}%{os2_helpdir}
270%{__mkdir_p} %{buildroot}%{os2_langdir}
271
272%clean
273# nothing to do
274
275
276%files
277%defattr(-,root,root,-)
278%config(noreplace) %{_sysconfdir}/rpm/platform
279%dir %{os2_bookdir}
280%dir %{os2_helpdir}
281%dir %{os2_langdir}
282
283%files unixtools-path
284%defattr(-,root,root,-)
285# no files in a virtual package
286
287
288%post -e
289if [ "$1" = 1 ] ; then
290#execute only on first install
291%cube {ADDSTRING "%{os2_dos_path %{_sbindir};%{_bindir}};" IN "SET PATH=" (FIRST IFNEW BEFORE RS(%%)} %{os2_config_sys} %{os2_config_sys}.yum > NUL
292%cube {ADDSTRING "%{os2_dos_path %{_libdir}};" IN "LIBPATH=" (FIRST IFNEW BEFORE RS(%%)} %{os2_config_sys} > NUL
293%cube {DELLINE "SET UNIXROOT="} %{os2_config_sys} > NUL
294%cube {ADDLINE "SET UNIXROOT=%UNIXROOT%" (ALWAYS)} %{os2_config_sys} > NUL
295fi
296%cube {ADDLINE "SET TERM=os2" (IFNOT "SET TERM=")} %{os2_config_sys} > NUL
297%cube {ADDLINE "REM [ Default shell values ]" (IFNOT "REM [ Default shell values ]")} %{os2_config_sys} > NUL
298%cube {ADDLINE "SET SHELL=%%{os2_expand_unixroot %%{_bindir}/sh.exe}" (IFNOT "SET SHELL=")} %{os2_config_sys} > NUL
299%cube {ADDLINE "SET EMXSHELL=%%{os2_expand_unixroot %%{_bindir}/sh.exe}" (IFNOT "SET EMXSHELL=")} %{os2_config_sys} > NUL
300%cube {ADDLINE "SET CONFIG_SHELL=%%{os2_expand_unixroot %%{_bindir}/sh.exe}" (IFNOT "SET CONFIG_SHELL=")} %{os2_config_sys} > NUL
301%cube {ADDLINE "SET MAKESHELL=%%{os2_expand_unixroot %%{_bindir}/sh.exe}" (IFNOT "SET MAKESHELL=")} %{os2_config_sys} > NUL
302%cube {ADDLINE "SET EXECSHELL=%%{os2_expand_unixroot %%{_bindir}/sh.exe}" (IFNOT "SET EXECSHELL=")} %{os2_config_sys} > NUL
303%cube {ADDLINE "REM [ Temporary directory ]" (IFNOT "REM [ Temporary directory ]")} %{os2_config_sys} > NUL
304%cube {ADDLINE "SET TMP=%{os2_dos_path /@unixroot/var/tmp}" (IFNOT "SET TMP=")} %{os2_config_sys} > NUL
305%cube {ADDLINE "SET TEMP=%{os2_dos_path /@unixroot/var/tmp}" (IFNOT "SET TEMP=")} %{os2_config_sys} > NUL
306%cube {ADDLINE "SET TMPDIR=%{os2_dos_path /@unixroot/var/tmp}" (IFNOT "SET TMPDIR=")} %{os2_config_sys} > NUL
307%cube {ADDSTRING "%{os2_dos_path %{os2_bookdir}};" IN "SET BOOKSHELF=" (FIRST IFNEW BEFORE RS(%%)} %{os2_config_sys} > NUL
308%cube {ADDSTRING "%{os2_dos_path %{os2_helpdir}};" IN "SET HELP=" (FIRST IFNEW BEFORE RS(%%)} %{os2_config_sys} > NUL
309%cube {ADDSTRING "%{os2_dos_path %{os2_langdir}};" IN "SET DPATH=" (FIRST IFNEW BEFORE RS(%%)} %{os2_config_sys} > NUL
310
311%postun
312if [ "$1" = 0 ] ; then
313#execute only on last uninstall
314%cube {DELSTRING "%{os2_dos_path %{_sbindir};%{_bindir}};" IN "SET PATH=" (FIRST IFNEW BEFORE RS(%%)} %{os2_config_sys} > NUL
315%cube {DELSTRING "%{os2_dos_path %{_libdir}};" IN "LIBPATH=" (FIRST IFNEW BEFORE RS(%%)} %{os2_config_sys} > NUL
316%cube {DELLINE "SET UNIXROOT="} %{os2_config_sys} > NUL
317%cube {DELSTRING "%{os2_dos_path %{os2_bookdir}};" IN "SET BOOKSHELF=" (FIRST} %{os2_config_sys} > NUL
318%cube {DELSTRING "%{os2_dos_path %{os2_helpdir}};" IN "SET HELP=" (FIRST} %{os2_config_sys} > NUL
319%cube {DELSTRING "%{os2_dos_path %{os2_langdir}};" IN "SET DPATH=" (FIRST} %{os2_config_sys} > NUL
320fi
321
322%post unixtools-path
323if [ "$1" = 1 ] ; then
324#execute only on first install
325%cube {ADDSTRING "%UNIXROOT%\usr\libexec\bin;" IN "SET PATH=" (FIRST IFNEW BEFORE RS(%%)} %{os2_config_sys} %{os2_config_sys}.yum > NUL
326fi
327
328%postun unixtools-path
329if [ "$1" = 0 ] ; then
330#execute only on last uninstall
331%cube {DELSTRING "%UNIXROOT%\usr\libexec\bin;" IN "SET PATH=" (FIRST IFNEW BEFORE RS(%%)} %{os2_config_sys} > NUL
332fi
333
334
335%changelog
336* Fri Jun 21 2019 Silvan Scherrer <silvan.scherrer@aroa.ch> 0.0.1-1
337- remove the fhs package, as not needed with libcn
338- add requires to libcn (libc version 1:0.1.0 or better)
339
340* Mon Jun 18 2018 Silvan Scherrer <silvan.scherrer@aroa.ch> 0.0.0-19
341- use %{os2_config_sys} macro instead of fixed c:\config.sys
342
343* Mon Apr 23 2018 Dmitriy Kuminov <coding@dmik.org> 0.0.0-18
344- Make sure SHELL/EMXSHELL and friends in CONFIG.SYS use forward slashes.
345
346* Fri Jul 28 2017 Dmitriy Kuminov <coding@dmik.org> 0.0.0-17
347- Use handy os2_dos_path, os2_langdir etc. macros from os2-rpm.
348- Make os2-base own os2_langdir.
349
350* Fri Jun 9 2017 Dmitriy Kuminov <coding@dmik.org> 0.0.0-16
351- Make os2-rpm a requirement for os2-base (contains essential macros used in scriptlets).
352
353* Mon Feb 20 2017 scs, hb <herwig,bauernfeind@bitwiseworks.com> 0.0.0-15
354- Add SHELL statements
355- Add ArcaOS to summary
356
357* Mon Jan 30 2017 hb <herwig,bauernfeind@bitwiseworks.com> 0.0.0-14
358- Correct typo from mmioi.dll to mmio.dll
359
360* Wed Jun 08 2016 yd <yd@os2power.com> 0.0.0-13
361- Add special UNIXROOT lang directory to DPATH in config.sys.
362
363* Wed Jan 27 2016 Dmitriy Kuminov <coding@dmik.org> 0.0.0-12
364- Add special UNIXROOT directories to BOOKSHELF and HELP in config.sys.
365
366* Thu Dec 17 2015 yd <yd@os2power.com> 0.0.0-11
367- set i686 as default platform.
368
369* Tue Feb 17 2015 yd <yd@os2power.com> 0.0.0-10
370- set TERM to os2 only if undefined.
371
372* Sat Feb 14 2015 yd <yd@os2power.com> 0.0.0-8
373- force TERM to ansi (texinfo requirement).
374
375* Tue Jul 30 2013 yd
376- add unixtool-path package to prepend /@unixroot/usr/libexec/bin to PATH.
377
378* Wed Jul 24 2013 yd
379- put /bin into unixroot drive (requires scripting).
380
381* Thu Mar 21 2013 yd
382- added fhs package to provide /bin symlink (for FHS script compatibility).
Note: See TracBrowser for help on using the repository browser.