Accepting request 233626 from Base:System

- Remove unneeded update-alternatives requirement (bnc#876129) 
- Clean spec

OBS-URL: https://build.opensuse.org/request/show/233626
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gzip?expand=0&rev=36
This commit is contained in:
Stephan Kulow 2014-05-22 18:38:03 +00:00 committed by Git OBS Bridge
commit 7d340e3d00
2 changed files with 24 additions and 19 deletions

View File

@ -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

View File

@ -1,7 +1,7 @@
#
# 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
# remain the property of their copyright owners, unless otherwise agreed
@ -17,17 +17,16 @@
Name: gzip
Url: http://www.gnu.org/software/gzip/
Version: 1.6
Release: 0
Summary: GNU Zip Compression Utilities
License: GPL-2.0+
Group: Productivity/Archiving/Compression
Url: http://www.gnu.org/software/gzip/
Source: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
Source2: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz.sig
Source3: %name.keyring
Patch: zgrep.diff
Source3: %{name}.keyring
Patch0: zgrep.diff
Patch1: tempfile.diff
Patch2: zmore.diff
Patch3: non-exec-stack.diff
@ -35,30 +34,30 @@ Patch4: http://rsync.samba.org/ftp/unpacked/rsync/patches/gzip-rsyncable
Patch6: zdiff.diff
# PATCH FIX OPENSUSE BNC#799561 - zgrep silently fails on LZMA compressed files
Patch7: xz_lzma.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: makeinfo
BuildRequires: xz
PreReq: %{install_info_prereq} update-alternatives
Requires(post): %{install_info_prereq}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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,
while keeping the same ownership modes and access and modification
times.
%prep
%{?gpg_verify: %gpg_verify %{S:2}}
%{?gpg_verify: %gpg_verify %{SOURCE2}}
%setup -q
%patch
%patch0
%patch1
%patch -P 2 -p1
%patch2 -p1
%patch3
%patch4 -p1
%patch6
%patch7 -p1
%build
CFLAGS="$RPM_OPT_FLAGS -fomit-frame-pointer \
CFLAGS="%{optflags} -fomit-frame-pointer \
-W -Wall -Wno-unused-parameter -Wstrict-prototypes -Wpointer-arith"
%configure --disable-silent-rules \
gl_cv_func_printf_directive_n=yes \
@ -74,7 +73,7 @@ profile_gzip()
%if %{do_profiling}
make %{?_smp_mflags} CFLAGS="$CFLAGS -fprofile-generate"
profile_gzip
make clean
make clean %{?_smp_mflags}
make %{?_smp_mflags} CFLAGS="$CFLAGS -fprofile-use"
%else
make %{?_smp_mflags}
@ -92,13 +91,13 @@ for i in 1 2 3 4 5 6 7 8 9; do
done
%install
%makeinstall
make DESTDIR=%{buildroot} install %{?_smp_mflags}
#UsrMerge
mkdir -p $RPM_BUILD_ROOT/bin
ln -sf %{_bindir}/gzip %{_bindir}/gunzip %{_bindir}/zcat $RPM_BUILD_ROOT/bin
mkdir -p %{buildroot}/bin
ln -sf %{_bindir}/gzip %{_bindir}/gunzip %{_bindir}/zcat %{buildroot}/bin
#EndUsrMerge
ln -sf zmore $RPM_BUILD_ROOT%{_bindir}/zless
ln -sf zmore.1 $RPM_BUILD_ROOT%{_mandir}/man1/zless.1
ln -sf zmore %{buildroot}%{_bindir}/zless
ln -sf zmore.1 %{buildroot}%{_mandir}/man1/zless.1
%files
%defattr(-, root, root)
@ -111,7 +110,7 @@ ln -sf zmore.1 $RPM_BUILD_ROOT%{_mandir}/man1/zless.1
%doc %{_mandir}/man*/*.gz
%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz