- Remove unneeded update-alternatives requirement (bnc#876129)
- Clean spec OBS-URL: https://build.opensuse.org/package/show/Base:System/gzip?expand=0&rev=35
This commit is contained in:
parent
382fd83c7e
commit
ea47597a66
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 12 15:44:03 UTC 2014 - vdziewiecki@suse.com
|
||||||
|
|
||||||
|
- Remove unneeded update-alternatives requirement (bnc#876129)
|
||||||
|
- Clean spec
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Sep 26 13:29:46 UTC 2013 - schwab@suse.de
|
Thu Sep 26 13:29:46 UTC 2013 - schwab@suse.de
|
||||||
|
|
||||||
|
37
gzip.spec
37
gzip.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package gzip
|
# spec file for package gzip
|
||||||
#
|
#
|
||||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -17,17 +17,16 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: gzip
|
Name: gzip
|
||||||
Url: http://www.gnu.org/software/gzip/
|
|
||||||
Version: 1.6
|
Version: 1.6
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: GNU Zip Compression Utilities
|
Summary: GNU Zip Compression Utilities
|
||||||
License: GPL-2.0+
|
License: GPL-2.0+
|
||||||
Group: Productivity/Archiving/Compression
|
Group: Productivity/Archiving/Compression
|
||||||
|
Url: http://www.gnu.org/software/gzip/
|
||||||
Source: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
|
Source: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
|
||||||
Source2: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz.sig
|
Source2: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz.sig
|
||||||
Source3: %name.keyring
|
Source3: %{name}.keyring
|
||||||
Patch: zgrep.diff
|
Patch0: zgrep.diff
|
||||||
Patch1: tempfile.diff
|
Patch1: tempfile.diff
|
||||||
Patch2: zmore.diff
|
Patch2: zmore.diff
|
||||||
Patch3: non-exec-stack.diff
|
Patch3: non-exec-stack.diff
|
||||||
@ -35,30 +34,30 @@ Patch4: http://rsync.samba.org/ftp/unpacked/rsync/patches/gzip-rsyncable
|
|||||||
Patch6: zdiff.diff
|
Patch6: zdiff.diff
|
||||||
# PATCH FIX OPENSUSE BNC#799561 - zgrep silently fails on LZMA compressed files
|
# PATCH FIX OPENSUSE BNC#799561 - zgrep silently fails on LZMA compressed files
|
||||||
Patch7: xz_lzma.patch
|
Patch7: xz_lzma.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildRequires: makeinfo
|
BuildRequires: makeinfo
|
||||||
BuildRequires: xz
|
BuildRequires: xz
|
||||||
PreReq: %{install_info_prereq} update-alternatives
|
Requires(post): %{install_info_prereq}
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Gzip reduces the size of the named files using Lempel-Ziv coding LZ77.
|
Gzip reduces the size of the named files using Lempel-Ziv coding LZ77.
|
||||||
Whenever possible, each file is replaced by one with the extension .gz,
|
Whenever possible, each file is replaced by one with the extension .gz,
|
||||||
while keeping the same ownership modes and access and modification
|
while keeping the same ownership modes and access and modification
|
||||||
times.
|
times.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%{?gpg_verify: %gpg_verify %{S:2}}
|
%{?gpg_verify: %gpg_verify %{SOURCE2}}
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch
|
%patch0
|
||||||
%patch1
|
%patch1
|
||||||
%patch -P 2 -p1
|
%patch2 -p1
|
||||||
%patch3
|
%patch3
|
||||||
%patch4 -p1
|
%patch4 -p1
|
||||||
%patch6
|
%patch6
|
||||||
%patch7 -p1
|
%patch7 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="$RPM_OPT_FLAGS -fomit-frame-pointer \
|
CFLAGS="%{optflags} -fomit-frame-pointer \
|
||||||
-W -Wall -Wno-unused-parameter -Wstrict-prototypes -Wpointer-arith"
|
-W -Wall -Wno-unused-parameter -Wstrict-prototypes -Wpointer-arith"
|
||||||
%configure --disable-silent-rules \
|
%configure --disable-silent-rules \
|
||||||
gl_cv_func_printf_directive_n=yes \
|
gl_cv_func_printf_directive_n=yes \
|
||||||
@ -74,7 +73,7 @@ profile_gzip()
|
|||||||
%if %{do_profiling}
|
%if %{do_profiling}
|
||||||
make %{?_smp_mflags} CFLAGS="$CFLAGS -fprofile-generate"
|
make %{?_smp_mflags} CFLAGS="$CFLAGS -fprofile-generate"
|
||||||
profile_gzip
|
profile_gzip
|
||||||
make clean
|
make clean %{?_smp_mflags}
|
||||||
make %{?_smp_mflags} CFLAGS="$CFLAGS -fprofile-use"
|
make %{?_smp_mflags} CFLAGS="$CFLAGS -fprofile-use"
|
||||||
%else
|
%else
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
@ -92,13 +91,13 @@ for i in 1 2 3 4 5 6 7 8 9; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%makeinstall
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
||||||
#UsrMerge
|
#UsrMerge
|
||||||
mkdir -p $RPM_BUILD_ROOT/bin
|
mkdir -p %{buildroot}/bin
|
||||||
ln -sf %{_bindir}/gzip %{_bindir}/gunzip %{_bindir}/zcat $RPM_BUILD_ROOT/bin
|
ln -sf %{_bindir}/gzip %{_bindir}/gunzip %{_bindir}/zcat %{buildroot}/bin
|
||||||
#EndUsrMerge
|
#EndUsrMerge
|
||||||
ln -sf zmore $RPM_BUILD_ROOT%{_bindir}/zless
|
ln -sf zmore %{buildroot}%{_bindir}/zless
|
||||||
ln -sf zmore.1 $RPM_BUILD_ROOT%{_mandir}/man1/zless.1
|
ln -sf zmore.1 %{buildroot}%{_mandir}/man1/zless.1
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
@ -111,7 +110,7 @@ ln -sf zmore.1 $RPM_BUILD_ROOT%{_mandir}/man1/zless.1
|
|||||||
%doc %{_mandir}/man*/*.gz
|
%doc %{_mandir}/man*/*.gz
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
||||||
|
Loading…
x
Reference in New Issue
Block a user