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

Last change on this file since 1386 was 1386, checked in by dmik, 7 years ago

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

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