Initialize for pigz
This commit is contained in:
commit
4c7a45ffa5
6 changed files with 129 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
pigz-2.3.3.tar.gz
|
1
.pigz.metadata
Normal file
1
.pigz.metadata
Normal file
|
@ -0,0 +1 @@
|
||||||
|
eb8f1629a2f53eb6b7bc5954ae3c57ba5727e4edfc60ed2a37388f3e37c7d00b pigz-2.3.3.tar.gz
|
11
pigz-fix-missing-linker.patch
Normal file
11
pigz-fix-missing-linker.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- a/Makefile 2015-01-20 05:12:31.000000000 +0100
|
||||||
|
+++ b/Makefile 2015-03-11 22:19:16.745781499 +0100
|
||||||
|
@@ -5,7 +5,7 @@
|
||||||
|
# use gcc and gmake on Solaris
|
||||||
|
|
||||||
|
pigz: pigz.o yarn.o try.o ${ZOPFLI}deflate.o ${ZOPFLI}blocksplitter.o ${ZOPFLI}tree.o ${ZOPFLI}lz77.o ${ZOPFLI}cache.o ${ZOPFLI}hash.o ${ZOPFLI}util.o ${ZOPFLI}squeeze.o ${ZOPFLI}katajainen.o
|
||||||
|
- $(CC) $(LDFLAGS) -o pigz $^ -lpthread -lm
|
||||||
|
+ $(CC) $(LDFLAGS) -o pigz $^ -lpthread -lm -lz
|
||||||
|
ln -f pigz unpigz
|
||||||
|
|
||||||
|
pigz.o: pigz.c yarn.h try.h ${ZOPFLI}deflate.h ${ZOPFLI}util.h
|
11
pigz-fix-wrong-include.patch
Normal file
11
pigz-fix-wrong-include.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- a/pigz.c 2015-01-24 20:10:12.000000000 +0100
|
||||||
|
+++ b/pigz.c 2015-03-11 22:00:59.976144690 +0100
|
||||||
|
@@ -362,7 +362,7 @@
|
||||||
|
# include <sys/pstat.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
-#include "zlib.h" /* deflateInit2(), deflateReset(), deflate(), */
|
||||||
|
+#include <zlib.h> /* deflateInit2(), deflateReset(), deflate(), */
|
||||||
|
/* deflateEnd(), deflateSetDictionary(), crc32(),
|
||||||
|
adler32(), inflateBackInit(), inflateBack(),
|
||||||
|
inflateBackEnd(), Z_DEFAULT_COMPRESSION,
|
52
pigz.changes
Normal file
52
pigz.changes
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
* Wed Mar 11 2015 p.drouand@gmail.com
|
||||||
|
- Update to version 2.3.3
|
||||||
|
* Portability improvements
|
||||||
|
* Update copyright years in documentation
|
||||||
|
- Add build fix patches
|
||||||
|
* pigz-fix-wrong-include.patch
|
||||||
|
* pigz-fix-missing-linker.patch
|
||||||
|
- Remove pigz-lm.patch; fixed
|
||||||
|
- Use download Url as source
|
||||||
|
* Thu Mar 14 2013 adam@mizerski.pl
|
||||||
|
- update to 2.3
|
||||||
|
* Don't complain about missing suffix when not writing output file
|
||||||
|
* Put all global variables in one global structure for readability
|
||||||
|
* Do not decompress concatenated zlib streams -- only gzip streams
|
||||||
|
* Add option for compression level 11 to use zopfli
|
||||||
|
* Fix handling of junk after compressed data
|
||||||
|
- added pigz-lm.patch
|
||||||
|
* adds missing "-lm"
|
||||||
|
- provide unpigz binary and manpage as symlink, not copy.
|
||||||
|
- removed fake cc script - build system honors CC
|
||||||
|
- cleanup spec file
|
||||||
|
* Tue Nov 27 2012 sweet_f_a@gmx.de
|
||||||
|
- update to 2.2.5:
|
||||||
|
* add --rsyncable functionality
|
||||||
|
* many bug fixes
|
||||||
|
- remove all suse patches:
|
||||||
|
* pigz-dictzip.patch, large and unmaintained patch. If somebody
|
||||||
|
really needs that then we should rebase and test it. In this
|
||||||
|
case --dictzip should be probably also added to original gzip.
|
||||||
|
* pigz-always-thread.patch was a folloup of pigz-dictzip.patch
|
||||||
|
* pigz-do-symlinks.patch added IMO dangerous and stupid behaviour
|
||||||
|
for symlinks. The original behaviour is now again like we know
|
||||||
|
it from gzip, bzip2 and xz.
|
||||||
|
* pigz-spl.patch, why we hacked in special handling of .spl
|
||||||
|
files?
|
||||||
|
* Generally we want to have pigz to replace gzip (and vice versa)
|
||||||
|
so better avoiding interface incompatibilities.
|
||||||
|
- cleanup spec file
|
||||||
|
* Fri Sep 30 2011 uli@suse.com
|
||||||
|
- cross-build workaround: use fake cc script to work around build
|
||||||
|
system that does not honor CC
|
||||||
|
* Thu Jun 2 2011 visnov@suse.cz
|
||||||
|
- update to 2.1.6
|
||||||
|
- package unpigz
|
||||||
|
- create debug packages
|
||||||
|
- package manpage
|
||||||
|
* Mon Apr 19 2010 agraf@suse.de
|
||||||
|
- fix dictzip with #CPU == 1 (bnc#597756)
|
||||||
|
* Wed Mar 3 2010 visnov@suse.de
|
||||||
|
- include symlinks patch
|
||||||
|
* Tue Oct 20 2009 jmatejek@suse.de
|
||||||
|
- initial package
|
53
pigz.spec
Normal file
53
pigz.spec
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
#
|
||||||
|
# spec file for package pigz
|
||||||
|
#
|
||||||
|
# Copyright (c) 2022-2023 ZhuningOS
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
Name: pigz
|
||||||
|
Version: 2.3.3
|
||||||
|
Release: 1.28
|
||||||
|
Summary: Multi-core gzip version
|
||||||
|
License: Zlib
|
||||||
|
Group: Productivity/Archiving/Compression
|
||||||
|
Url: http://www.zlib.net/pigz/
|
||||||
|
Source: http://www.zlib.net/pigz/%{name}-%{version}.tar.gz
|
||||||
|
Patch: pigz-fix-wrong-include.patch
|
||||||
|
Patch1: pigz-fix-missing-linker.patch
|
||||||
|
BuildRequires: glibc-devel
|
||||||
|
BuildRequires: zlib-devel >= 1.2.3
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
|
%description
|
||||||
|
A parallel implementation of gzip for modern multi-processor,
|
||||||
|
multi-core machines
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
%patch -p1
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
make CC="gcc" CFLAGS="%{optflags}"
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{_prefix}/bin
|
||||||
|
cp -v pigz %{buildroot}%{_bindir}/
|
||||||
|
ln -sv pigz %{buildroot}%{_bindir}/unpigz
|
||||||
|
|
||||||
|
#man page
|
||||||
|
mkdir -p %{buildroot}/%{_mandir}/man1/
|
||||||
|
cp -v pigz.1 %{buildroot}/%{_mandir}/man1/
|
||||||
|
gzip %{buildroot}/%{_mandir}/man1/pigz.1
|
||||||
|
ln -sv pigz.1.gz %{buildroot}/%{_mandir}/man1/unpigz.1
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc README
|
||||||
|
%{_mandir}/man1/pigz.1.gz
|
||||||
|
%{_mandir}/man1/unpigz.1.gz
|
||||||
|
%{_bindir}/pigz
|
||||||
|
%{_bindir}/unpigz
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Add table
Reference in a new issue