Changeset 82 for spec/trunk/SPECS


Ignore:
Timestamp:
Nov 3, 2010, 7:48:27 PM (15 years ago)
Author:
Yuri Dario
Message:

spec: new and more strict FHS implementation to follow bin layout standard.

Location:
spec/trunk/SPECS
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • spec/trunk/SPECS/ash.spec

    r49 r82  
    22Name: ash
    33Version: 0.0.0
    4 Release: 1
     4Release: 2
    55License: BSD
    66Group: System Environment/Shells
     
    6464mkdir -p %{buildroot}%{_mandir}/man1
    6565
    66 cp bin/ash.exe %{buildroot}/@unixroot/bin/sh
    67 cp bin/ash.exe %{buildroot}%{_bindir}/sh.exe
     66cp bin/ash.exe %{buildroot}/@unixroot/bin/sh.exe
     67ln -s sh.exe %{buildroot}/@unixroot/bin/sh
    6868
    69 cp bin/env.exe %{buildroot}/@unixroot/bin/env
    70 cp bin/env.exe %{buildroot}%{_bindir}/env
     69cp bin/env.exe %{buildroot}%{_bindir}/env.exe
     70ln -s env.exe %{buildroot}%{_bindir}/env
    7171
    7272cp usr/man/man1/ash.1.gz %{buildroot}%{_mandir}/man1/ash.1.gz
     73
    7374#ln -sf ash.1 %{buildroot}%{_mandir}/man1/bsh.1
    7475#ln -sf ash %{buildroot}/bin/bsh
     
    112113%defattr(-,root,root)
    113114/@unixroot/bin/sh
    114 /@unixroot/bin/env
    115 %{_bindir}/sh.exe
     115/@unixroot/bin/sh.exe
    116116%{_bindir}/env
     117%{_bindir}/env.exe
    117118#/bin/bsh
    118119%{_mandir}/man1/*
  • spec/trunk/SPECS/bash.spec

    r16 r82  
    55Name: bash
    66Version: %{baseversion}%{patchleveltag}
    7 Release: 1
     7Release: 2
    88License: BSD
    99Group: System Environment/Shells
     
    5757rm -rf %{buildroot}
    5858mkdir -p %{buildroot}/@unixroot/bin
    59 mkdir -p %{buildroot}%{_bindir}
    6059
    61 cp usr/bin/bash.exe %{buildroot}/@unixroot/bin/bash
    62 cp usr/bin/bash.exe %{buildroot}%{_bindir}/bash.exe
    63 #cp usr/bin/bash.exe %{buildroot}%{_bindir}/sh
     60cp usr/bin/bash.exe %{buildroot}/@unixroot/bin/bash.exe
     61ln -s bash.exe %{buildroot}/@unixroot/bin/bash
    6462
    6563#%post
     
    10098%defattr(-,root,root)
    10199/@unixroot/bin/bash
    102 %{_bindir}/bash.exe
     100/@unixroot/bin/bash.exe
    103101#/bin/bsh
    104102#%{_mandir}/man1/*
  • spec/trunk/SPECS/gzip.spec

    r17 r82  
    22Name: gzip
    33Version: 1.4
    4 Release: 1%{?dist}
     4Release: 2%{?dist}
    55# info pages are under GFDL license
    66License: GPLv3+ and GFDL
     
    2121Patch11: gzip-1.3.13-noemptysuffix.patch
    2222
    23 Patch100: gzip-1.4-os2.diff
     23Patch100: gzip-os2.diff
    2424
    2525URL: http://www.gzip.org/
     
    5252
    5353%build
     54export MAKESHELL=/bin/sh
     55export CONFIG_SHELL=/bin/sh
    5456export DEFS="NO_ASM"
    5557export CPPFLAGS="-DHAVE_LSTAT"
    5658export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zexe -Zargs-wild -Zargs-resp"
    5759%configure \
     60        --bindir=/@unixroot/bin \
    5861        "--cache-file=%{_topdir}/cache/%{name}.cache"
    5962
     
    6366%install
    6467rm -rf ${RPM_BUILD_ROOT}
    65 ##makeinstall  bindir=${RPM_BUILD_ROOT}/usr/bin
    66 make DESTDIR=${RPM_BUILD_ROOT} install
     68%makeinstall  bindir=${RPM_BUILD_ROOT}/@unixroot/bin
     69mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
     70#make DESTDIR=${RPM_BUILD_ROOT} install
    6771
    68 rm ${RPM_BUILD_ROOT}%{_libdir}/charset.alias
     72#rm ${RPM_BUILD_ROOT}%{_libdir}/charset.alias
    6973
    70 #mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
    71 cp ${RPM_BUILD_ROOT}%{_bindir}/gzip.exe ${RPM_BUILD_ROOT}%{_bindir}/gunzip.exe
    72 cp ${RPM_BUILD_ROOT}%{_bindir}/gzip.exe ${RPM_BUILD_ROOT}%{_bindir}/uncomress.exe
     74#cp ${RPM_BUILD_ROOT}%{_bindir}/gzip.exe ${RPM_BUILD_ROOT}%{_bindir}/gunzip.exe
     75#cp ${RPM_BUILD_ROOT}%{_bindir}/gzip.exe ${RPM_BUILD_ROOT}%{_bindir}/uncomress.exe
    7376
    74 #for i in  zcmp zegrep zforce zless znew gzexe zdiff zfgrep zgrep zmore ; do
    75 #    mv ${RPM_BUILD_ROOT}/bin/$i ${RPM_BUILD_ROOT}%{_bindir}/$i
    76 #done
     77for i in  zcmp zegrep zforce zless znew gzexe zdiff zfgrep zgrep zmore ; do
     78    mv ${RPM_BUILD_ROOT}/@unixroot/bin/$i ${RPM_BUILD_ROOT}%{_bindir}/$i
     79done
    7780
    7881gzip -9nf ${RPM_BUILD_ROOT}%{_infodir}/gzip.info*
     
    101104%defattr(-,root,root)
    102105%doc NEWS README AUTHORS ChangeLog THANKS TODO
    103 #/bin/*
     106/@unixroot/bin/*
    104107%{_bindir}/*
    105108%{_mandir}/*/*
  • spec/trunk/SPECS/os2-base.spec

    r69 r82  
    260260
    261261%post
    262 %cube {ADDSTRING "%UNIXROOT%\usr\bin;" IN "SET PATH=" (FIRST IFNEW BEFORE RS(%%)} c:\config.sys c:\config.sys.yum > NUL
     262%cube {ADDSTRING "%UNIXROOT%\usr\sbin;%UNIXROOT%\usr\bin;%UNIXROOT%\sbin;%UNIXROOT%\bin;" IN "SET PATH=" (FIRST IFNEW BEFORE RS(%%)} c:\config.sys c:\config.sys.yum > NUL
    263263%cube {ADDSTRING "%UNIXROOT%\usr\lib;" IN "LIBPATH=" (FIRST IFNEW BEFORE RS(%%)} c:\config.sys > NUL
    264264%cube {DELLINE "SET UNIXROOT="} c:\config.sys > NUL
     
    266266
    267267%postun
    268 %cube {DELSTRING "%UNIXROOT%\usr\bin;" IN "SET PATH=" (FIRST IFNEW BEFORE RS(%%)} c:\config.sys > NUL
     268%cube {DELSTRING "%UNIXROOT%\usr\sbin;%UNIXROOT%\usr\bin;%UNIXROOT%\sbin;%UNIXROOT%\bin;" IN "SET PATH=" (FIRST IFNEW BEFORE RS(%%)} c:\config.sys > NUL
    269269%cube {DELSTRING "%UNIXROOT%\usr\lib;" IN "LIBPATH=" (FIRST IFNEW BEFORE RS(%%)} c:\config.sys > NUL
    270270%cube {DELLINE "SET UNIXROOT="} c:\config.sys > NUL
  • spec/trunk/SPECS/tar.spec

    r50 r82  
    33Epoch: 2
    44Version: 1.23
    5 Release: 1
     5Release: 2
    66License: GPLv3+
    77Group: Applications/Archiving
     
    3939
    4040%build
     41export CONFIG_SHELL="/bin/sh"
    4142export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
    4243export LIBS="-lintl -lurpo"
    4344%configure \
     45    --bindir=/@unixroot/bin --libexecdir=/@unixroot/sbin \
    4446    "--cache-file=%{_topdir}/cache/%{name}.cache"
    4547make %{?_smp_mflags}
     
    4749%install
    4850rm -rf $RPM_BUILD_ROOT
    49 make DESTDIR=$RPM_BUILD_ROOT install
     51make DESTDIR=$RPM_BUILD_ROOT bindir=/@unixroot/bin libexecdir=/@unixroot/sbin install
    5052
    51 ln -s tar.exe ${RPM_BUILD_ROOT}%{_bindir}/gtar.exe
     53ln -s tar.exe ${RPM_BUILD_ROOT}/@unixroot/bin/gtar.exe
    5254rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
    5355mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1
     
    8486%defattr(-,root,root)
    8587%doc AUTHORS ChangeLog ChangeLog.1 COPYING NEWS README THANKS TODO
    86 %{_bindir}/*
     88/@unixroot/bin/*
    8789%{_mandir}/man*/*
    8890%{_infodir}/tar.info*
Note: See TracChangeset for help on using the changeset viewer.