Update to 2.2.5.
- Hardlink binaries instead of shipping duplicates (#785834). - Build with $RPM_LD_FLAGS. - Run test suite during build.
This commit is contained in:
parent
dbb723c184
commit
a0f981b6a4
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,3 +1 @@
|
|||||||
pigz-2.1.6.tar.gz
|
/*.tar.*
|
||||||
/pigz-2.2.3.tar.gz
|
|
||||||
/pigz-2.2.4.tar.gz
|
|
||||||
|
12
pigz-2.2.4-ldflags.patch
Normal file
12
pigz-2.2.4-ldflags.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -up pigz-2.2.4/Makefile~ pigz-2.2.4/Makefile
|
||||||
|
--- pigz-2.2.4/Makefile~ 2012-02-12 07:18:18.000000000 +0200
|
||||||
|
+++ pigz-2.2.4/Makefile 2012-06-13 00:42:38.701204688 +0300
|
||||||
|
@@ -2,7 +2,7 @@ CC=cc
|
||||||
|
CFLAGS=-O3 -Wall -Wextra
|
||||||
|
|
||||||
|
pigz: pigz.o yarn.o
|
||||||
|
- $(CC) -o pigz pigz.o yarn.o -lpthread -lz
|
||||||
|
+ $(CC) -o pigz pigz.o yarn.o -lpthread -lz ${RPM_LD_FLAGS}
|
||||||
|
ln -f pigz unpigz
|
||||||
|
|
||||||
|
pigz.o: pigz.c yarn.h
|
18
pigz.spec
18
pigz.spec
@ -1,15 +1,17 @@
|
|||||||
Name: pigz
|
Name: pigz
|
||||||
Version: 2.2.4
|
Version: 2.2.5
|
||||||
Release: 2%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Parallel implementation of gzip
|
Summary: Parallel implementation of gzip
|
||||||
|
|
||||||
Group: Applications/File
|
Group: Applications/File
|
||||||
License: zlib
|
License: zlib
|
||||||
URL: http://www.zlib.net/pigz/
|
URL: http://www.zlib.net/pigz/
|
||||||
Source0: http://www.zlib.net/%{name}/%{name}-%{version}.tar.gz
|
Source0: http://www.zlib.net/%{name}/%{name}-%{version}.tar.gz
|
||||||
|
Patch0: %{name}-2.2.4-ldflags.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
|
BuildRequires: ncompress
|
||||||
|
|
||||||
%description
|
%description
|
||||||
pigz, which stands for parallel implementation of gzip,
|
pigz, which stands for parallel implementation of gzip,
|
||||||
@ -18,6 +20,7 @@ multiple processors and multiple cores to the hilt when compressing data.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -27,9 +30,12 @@ make %{?_smp_mflags} CFLAGS='%{optflags}'
|
|||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
install -p -D pigz $RPM_BUILD_ROOT%{_bindir}/pigz
|
install -p -D pigz $RPM_BUILD_ROOT%{_bindir}/pigz
|
||||||
install -p -D unpigz $RPM_BUILD_ROOT%{_bindir}/unpigz
|
pushd $RPM_BUILD_ROOT%{_bindir}; ln pigz unpigz; popd
|
||||||
install -p -D pigz.1 -m 0644 $RPM_BUILD_ROOT%{_datadir}/man/man1/pigz.1
|
install -p -D pigz.1 -m 0644 $RPM_BUILD_ROOT%{_datadir}/man/man1/pigz.1
|
||||||
|
|
||||||
|
%check
|
||||||
|
make tests
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
@ -43,6 +49,12 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jul 31 2012 Ville Skyttä <ville.skytta@iki.fi> - 2.2.5-1
|
||||||
|
- Update to 2.2.5.
|
||||||
|
- Hardlink binaries instead of shipping duplicates (#785834).
|
||||||
|
- Build with $RPM_LD_FLAGS.
|
||||||
|
- Run test suite during build.
|
||||||
|
|
||||||
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.4-2
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.4-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user