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

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

spec: os2-base: Release version 0.0.0-17.

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