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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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}/*/*
Note: See TracChangeset for help on using the changeset viewer.