|
@@ -1,21 +1,21 @@
|
|
|
Summary: The GNU data compression program.
|
|
|
Summary(ja): GNU データ圧縮プログラム
|
|
|
Name: gzip
|
|
|
-Version: 1.6
|
|
|
+Version: 1.10
|
|
|
Release: 1%{?_dist_release}
|
|
|
-License: GPLv3+ and GFDL
|
|
|
Group: Applications/Archiving
|
|
|
+License: GPLv3+ and GFDL
|
|
|
URL: http://www.gzip.org/
|
|
|
|
|
|
-Source: ftp://alpha.gnu.org/gnu/gzip/gzip-%{version}.tar.xz
|
|
|
-Patch0: gzip-1.3.12-openbsd-owl-tmp.patch
|
|
|
-Patch1: gzip-1.3.5-zforce.patch
|
|
|
-Patch5: gzip-1.3.13-rsync.patch
|
|
|
+Source: https://ftp.gnu.org/gnu/gzip/gzip-%{version}.tar.xz
|
|
|
+Source1: https://www.gnu.org/licenses/fdl-1.3.txt
|
|
|
|
|
|
-Patch14: gzip-1.3.5-cve-2006-4338.patch
|
|
|
-Patch15: gzip-1.3.13-cve-2006-4337.patch
|
|
|
-Patch16: gzip-1.3.5-cve-2006-4337_len.patch
|
|
|
+# downstream solution for coloured z*grep (#1034839)
|
|
|
+Source100: colorzgrep.csh
|
|
|
+Source101: colorzgrep.sh
|
|
|
|
|
|
+Patch1: gnulib.patch
|
|
|
+Patch2: gzexe.patch
|
|
|
|
|
|
Requires(post): install-info
|
|
|
Requires(preun): install-info
|
|
@@ -44,22 +44,23 @@ gzip は大変一般的に使われる圧縮プログラムなので,Linux シ
|
|
|
|
|
|
%prep
|
|
|
%setup -q
|
|
|
-%patch0 -p1 -b .owl-tmp
|
|
|
-%patch1 -p1 -b .zforce
|
|
|
-%patch5 -p1 -b .rsync
|
|
|
|
|
|
-%patch14 -p1 -b .4338
|
|
|
-%patch15 -p1 -b .4337
|
|
|
-%patch16 -p1 -b .4337_len
|
|
|
+#%patch1 -p1 -b .gnulib
|
|
|
+%patch2 -p1 -b .gzexe
|
|
|
+cp %{SOURCE1} .
|
|
|
|
|
|
+autoreconf
|
|
|
|
|
|
%build
|
|
|
-export DEFS="-DNO_ASM"
|
|
|
+export DEFS="NO_ASM"
|
|
|
export CPPFLAGS="-DHAVE_LSTAT"
|
|
|
+export CC="%{__cc}"
|
|
|
+export CPP="%{__cpp}"
|
|
|
+export CXX="%{__cxx}"
|
|
|
%configure --bindir=/bin
|
|
|
make %{?_smp_mflags}
|
|
|
-# make
|
|
|
-# make gzip.info
|
|
|
+make check
|
|
|
+#make gzip.info
|
|
|
|
|
|
|
|
|
%clean
|
|
@@ -89,6 +90,12 @@ cat > $RPM_BUILD_ROOT%{_bindir}/zless <<EOF
|
|
|
EOF
|
|
|
chmod 755 $RPM_BUILD_ROOT%{_bindir}/zless
|
|
|
|
|
|
+# coloured z*grep (#1034839)
|
|
|
+%global profiledir %{_sysconfdir}/profile.d
|
|
|
+mkdir -p %{buildroot}%{profiledir}
|
|
|
+install -p -m 644 %{SOURCE100} %{buildroot}%{profiledir}
|
|
|
+install -p -m 644 %{SOURCE101} %{buildroot}%{profiledir}
|
|
|
+
|
|
|
|
|
|
%post
|
|
|
/sbin/install-info %{_infodir}/gzip.info.gz %{_infodir}/dir
|
|
@@ -101,14 +108,22 @@ fi
|
|
|
|
|
|
%files
|
|
|
%defattr(-,root,root)
|
|
|
+%license COPYING fdl-1.3.txt
|
|
|
%doc NEWS README AUTHORS ChangeLog THANKS TODO
|
|
|
/bin/*
|
|
|
%{_bindir}/*
|
|
|
%{_mandir}/*/*
|
|
|
%{_infodir}/gzip.info*
|
|
|
+%{profiledir}/*
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Sun Mar 15 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.10-1
|
|
|
+- new upstream release.
|
|
|
+- dropped all patches.
|
|
|
+- imported Patch1 and 2 from rawhide.
|
|
|
+- imported Source1, 100 and 101 from rawhide.
|
|
|
+
|
|
|
* Sun Jan 19 2014 Daisuke SUZUKI <daisuke@linux.or.jp> 1.6-1
|
|
|
- update to 1.6
|
|
|
- add BR: texinfo
|