Changeset 1228 for spec/trunk/SPECS
- Timestamp:
- Aug 24, 2017, 2:35:32 PM (8 years ago)
- File:
-
- 1 edited
-
spec/trunk/SPECS/gzip.spec (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/gzip.spec
r290 r1228 1 1 Summary: The GNU data compression program 2 2 Name: gzip 3 Version: 1. 44 Release: 6%{?dist}3 Version: 1.8 4 Release: 1%{?dist} 5 5 # info pages are under GFDL license 6 6 License: GPLv3+ and GFDL 7 7 Group: Applications/File 8 Source: http://ftp.gnu.org/gnu/gzip/gzip-%{version}.tar.gz9 8 10 Patch0: gzip-1.3.12-openbsd-owl-tmp.patch 11 Patch1: gzip-1.3.5-zforce.patch 12 Patch2: gzip-1.3.9-stderr.patch 13 Patch3: gzip-1.3.10-zgreppipe.patch 14 Patch4: gzip-1.3.13-rsync.patch 15 Patch5: gzip-1.3.9-addsuffix.patch 16 Patch6: gzip-1.3.5-cve-2006-4338.patch 17 Patch7: gzip-1.3.13-cve-2006-4337.patch 18 Patch8: gzip-1.3.5-cve-2006-4337_len.patch 19 # Fixed in upstream code. 20 # http://thread.gmane.org/gmane.comp.gnu.gzip.bugs/378 21 Patch11: gzip-1.3.13-noemptysuffix.patch 22 23 Patch100: gzip-os2.diff 9 Vendor: bww bitwise works GmbH 10 %scm_source github https://github.com/bitwiseworks/gzip-os2 %{version}-os2 24 11 25 12 URL: http://www.gzip.org/ 26 #Requires: /sbin/install-info 27 #Requires: mktemp less 28 #BuildRequires: texinfo 29 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 13 # Requires should not be added for gzip wrappers (eg. zdiff, zgrep, 14 # zless) of another tools, because gzip "extends" the tools by its 15 # wrappers much more than it "requires" them. 16 Requires: info 17 Requires: coreutils 18 BuildRequires: texinfo 19 BuildRequires: rexx_exe 20 Provides: /@unixroot/usr/bin/gunzip 21 Provides: /@unixroot/usr/bin/gzip 22 Provides: /@unixroot/usr/bin/zcat 30 23 31 24 %description … … 36 29 very commonly used data compression program. 37 30 31 %debug_package 32 38 33 %prep 39 %setup -q 40 %patch0 -p1 -b .owl-tmp~ 41 %patch1 -p1 -b .zforce~ 42 %patch2 -p1 -b .stderr~ 43 %patch3 -p1 -b .nixi~ 44 %patch4 -p1 -b .rsync~ 45 %patch5 -p1 -b .addsuffix~ 46 %patch6 -p1 -b .4338~ 47 %patch7 -p1 -b .4337~ 48 %patch8 -p1 -b .4337l~ 49 %patch11 -p1 -b .noemptysuffix~ 34 %scm_setup 50 35 51 %patch100 -p1 -b .os2~ 36 autoreconf -fvi 52 37 53 38 %build 54 export MAKESHELL=/@unixroot/usr/bin/sh.exe55 export CONFIG_SHELL=/@unixroot/usr/bin/sh.exe56 39 export DEFS="NO_ASM" 57 40 export CPPFLAGS="-DHAVE_LSTAT" 58 export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zexe -Zargs-wild -Zargs-resp" 59 %configure \ 60 "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache" 41 export LDFLAGS="-Zhigh-mem -Zomf -Zexe -Zargs-wild -Zargs-resp" 42 %configure 61 43 62 make %{?smp_mflags}44 make 63 45 #make gzip.info 64 46 65 47 %install 66 48 rm -rf ${RPM_BUILD_ROOT} 67 %makeinstall 68 mkdir -p ${RPM_BUILD_ROOT}%{_bindir} 69 #make DESTDIR=${RPM_BUILD_ROOT} install 49 %make_install 70 50 71 rm ${RPM_BUILD_ROOT}%{_libdir}/charset.alias 51 # Tailor converter scripts to use the right path 52 for f in *.cmd ; do 53 # Due to bug in sed 4.2.1-2 -i kills CRLF in processed files, so use redirection 54 %{__sed} \ 55 -e '/^Parse Source .*$/ d' \ 56 -e 's|^helperpath = .*$|helperpath = value('UNIXROOT',,'OS2ENVIRONMENT')"\\usr\\bin\\"|' \ 57 -e 's|@call|@|g' "$f" > "$f.new" 58 %{__rm} "$f" 59 %{__mv} "$f.new" "$f" 60 # Pack and install OS/2 Rexx scripts 61 rexx2vio "$f" "%{buildroot}%{_bindir}/${f%.cmd}.exe" 62 done 72 63 73 rm ${RPM_BUILD_ROOT}%{_bindir}/gunzip74 rm ${RPM_BUILD_ROOT}%{_bindir}/uncompress75 cp -p ${RPM_BUILD_ROOT}%{_bindir}/gzip.exe ${RPM_BUILD_ROOT}%{_bindir}/gunzip.exe76 cp -p ${RPM_BUILD_ROOT}%{_bindir}/gzip.exe ${RPM_BUILD_ROOT}%{_bindir}/uncompress.exe77 78 #for i in zcmp zegrep zforce zless znew gzexe zdiff zfgrep zgrep zmore ; do79 # mv ${RPM_BUILD_ROOT}/@unixroot/bin/$i ${RPM_BUILD_ROOT}%{_bindir}/$i80 #done81 64 82 65 gzip -9nf ${RPM_BUILD_ROOT}%{_infodir}/gzip.info* … … 85 68 rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir 86 69 # uncompress is a part of ncompress package 87 rm -f ${RPM_BUILD_ROOT} /bin/uncompress70 rm -f ${RPM_BUILD_ROOT}%{_bindir}/uncompress 88 71 89 72 %clean 90 73 rm -rf ${RPM_BUILD_ROOT} 91 74 75 %post 76 if [ -f %{_infodir}/gzip.info* ]; then 77 %{_sbindir}/install-info %{_infodir}/gzip.info.gz %{_infodir}/dir || : 78 fi 79 80 %preun 81 if [ $1 = 0 ]; then 82 if [ -f %{_infodir}/gzip.info* ]; then 83 %{_sbindir}/install-info --delete %{_infodir}/gzip.info.gz %{_infodir}/dir || : 84 fi 85 fi 86 92 87 %files 93 88 %defattr(-,root,root) 94 89 %doc NEWS README AUTHORS ChangeLog THANKS TODO 90 %{!?_licensedir:%global license %%doc} 91 %license COPYING 95 92 %{_bindir}/* 93 %exclude %{_bindir}/*.dbg 96 94 %{_mandir}/*/* 97 95 %{_infodir}/gzip.info* 98 96 99 97 %changelog 98 * Thu Aug 24 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.8-1 99 - update vendor source to version 1.8 100 - move source from netlabs svn to github 101 100 102 * Thu Feb 02 2012 yd 101 103 - Remove symlinks from /bin.
Note:
See TracChangeset
for help on using the changeset viewer.
