commit pigz for openSUSE:Factory

2020-08-14 Thread root
Hello community,

here is the log from the commit of package pigz for openSUSE:Factory checked in 
at 2020-08-14 09:29:34

Comparing /work/SRC/openSUSE:Factory/pigz (Old)
 and  /work/SRC/openSUSE:Factory/.pigz.new.3399 (New)


Package is "pigz"

Fri Aug 14 09:29:34 2020 rev:14 rq:826088 version:2.4

Changes:

--- /work/SRC/openSUSE:Factory/pigz/pigz.changes2018-07-18 
22:35:53.750549433 +0200
+++ /work/SRC/openSUSE:Factory/.pigz.new.3399/pigz.changes  2020-08-14 
09:29:37.620284576 +0200
@@ -1,0 +2,6 @@
+Wed Aug 12 14:22:56 UTC 2020 - Cristian Rodríguez 
+
+- Build with -fexceptions to get compiler/os specific (aka. sane) 
+  implementations of pthread_cleanup* routines.
+
+---



Other differences:
--
++ pigz.spec ++
--- /var/tmp/diff_new_pack.ypjGij/_old  2020-08-14 09:29:39.584285583 +0200
+++ /var/tmp/diff_new_pack.ypjGij/_new  2020-08-14 09:29:39.588285585 +0200
@@ -33,10 +33,10 @@
 %setup -q
 
 %build
-make %{?_smp_mflags} CFLAGS="%{optflags}"
+make %{?_smp_mflags} CFLAGS="%{optflags} -fexceptions"
 
 %check
-make tests %{?_smp_mflags} CFLAGS="%{optflags}"
+make tests %{?_smp_mflags} CFLAGS="%{optflags} -fexceptions"
 
 %install
 install -Dpm 0755 pigz \




commit pigz for openSUSE:Factory

2018-07-18 Thread root
Hello community,

here is the log from the commit of package pigz for openSUSE:Factory checked in 
at 2018-07-18 22:35:51

Comparing /work/SRC/openSUSE:Factory/pigz (Old)
 and  /work/SRC/openSUSE:Factory/.pigz.new (New)


Package is "pigz"

Wed Jul 18 22:35:51 2018 rev:13 rq:622248 version:2.4

Changes:

--- /work/SRC/openSUSE:Factory/pigz/pigz.changes2015-03-19 
20:54:03.0 +0100
+++ /work/SRC/openSUSE:Factory/.pigz.new/pigz.changes   2018-07-18 
22:35:53.750549433 +0200
@@ -1,0 +2,18 @@
+Thu Jul 12 07:29:47 UTC 2018 - mplus...@suse.com
+
+- Update to version 2.4:
+  * Generate Zip64 format .zip files when the output is greater
+than or equal to 4 GiB.
+  * Improved gzip options processing and return code compatibility
+  * Some bug fixes
+- Drop no longer needed patches:
+  * pigz-fix-missing-linker.patch
+  * pigz-fix-wrong-include.patch
+
+---
+Wed Aug 16 11:07:50 UTC 2017 - psychon...@nothingisreal.com
+
+- Update to 2.3.4:
+  * no upstream changelog provided
+
+---

Old:

  pigz-2.3.3.tar.gz
  pigz-fix-missing-linker.patch
  pigz-fix-wrong-include.patch

New:

  pigz-2.4.tar.gz



Other differences:
--
++ pigz.spec ++
--- /var/tmp/diff_new_pack.GTdu3i/_old  2018-07-18 22:35:54.242547803 +0200
+++ /var/tmp/diff_new_pack.GTdu3i/_new  2018-07-18 22:35:54.246547790 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package pigz
 #
-# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX 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,48 +17,38 @@
 
 
 Name:   pigz
-Version:2.3.3
+Version:2.4
 Release:0
 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
+URL:http://www.zlib.net/pigz/
+Source0:http://www.zlib.net/%{name}/%{name}-%{version}.tar.gz
+BuildRequires:  zlib-devel
 
 %description
-A parallel implementation of gzip for modern multi-processor,
-multi-core machines
+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}"
+make %{?_smp_mflags} CFLAGS="%{optflags}"
+
+%check
+make tests %{?_smp_mflags} CFLAGS="%{optflags}"
 
 %install
-mkdir -p %{buildroot}%{_prefix}/bin
-cp -v pigz %{buildroot}%{_bindir}/
+install -Dpm 0755 pigz \
+  %{buildroot}%{_bindir}/pigz
+install -Dpm 0644 pigz.1 \
+  %{buildroot}%{_mandir}/man1/pigz.1
 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
+%{_mandir}/man1/pigz.1%{?ext_man}
 
 %changelog

++ pigz-2.3.3.tar.gz -> pigz-2.4.tar.gz ++
 5285 lines of diff (skipped)




commit pigz for openSUSE:Factory

2015-03-19 Thread h_root
Hello community,

here is the log from the commit of package pigz for openSUSE:Factory checked in 
at 2015-03-19 20:54:01

Comparing /work/SRC/openSUSE:Factory/pigz (Old)
 and  /work/SRC/openSUSE:Factory/.pigz.new (New)


Package is pigz

Changes:

--- /work/SRC/openSUSE:Factory/pigz/pigz.changes2013-03-15 
10:46:53.0 +0100
+++ /work/SRC/openSUSE:Factory/.pigz.new/pigz.changes   2015-03-19 
20:54:03.0 +0100
@@ -1,0 +2,12 @@
+Wed Mar 11 21:30:11 UTC 2015 - p.drou...@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
+
+---

Old:

  pigz-2.3.tar.bz2
  pigz-lm.patch

New:

  pigz-2.3.3.tar.gz
  pigz-fix-missing-linker.patch
  pigz-fix-wrong-include.patch



Other differences:
--
++ pigz.spec ++
--- /var/tmp/diff_new_pack.QhFlnS/_old  2015-03-19 20:54:04.0 +0100
+++ /var/tmp/diff_new_pack.QhFlnS/_new  2015-03-19 20:54:04.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package pigz
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 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,15 +17,15 @@
 
 
 Name:   pigz
-Version:2.3
+Version:2.3.3
 Release:0
 Summary:Multi-core gzip version
 License:Zlib
 Group:  Productivity/Archiving/Compression
 Url:http://www.zlib.net/pigz/
-# http://www.zlib.net/pigz/pigz-%%{version}.tar.gz
-Source: %{name}-%{version}.tar.bz2
-Patch:  %{name}-lm.patch
+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
@@ -37,6 +37,7 @@
 %prep
 %setup -q
 %patch -p1
+%patch1 -p1
 
 %build
 make CC=gcc CFLAGS=%{optflags}
@@ -55,8 +56,8 @@
 %files
 %defattr(-,root,root)
 %doc README
-%doc %{_mandir}/man1/pigz.1.gz
-%doc %{_mandir}/man1/unpigz.1.gz
+%{_mandir}/man1/pigz.1.gz
+%{_mandir}/man1/unpigz.1.gz
 %{_bindir}/pigz
 %{_bindir}/unpigz
 

++ pigz-fix-missing-linker.patch ++
--- a/Makefile  2015-01-20 05:12:31.0 +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
++ pigz-fix-wrong-include.patch ++
--- a/pigz.c2015-01-24 20:10:12.0 +0100
+++ b/pigz.c2015-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,
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit pigz for openSUSE:Factory

2013-03-15 Thread h_root
Hello community,

here is the log from the commit of package pigz for openSUSE:Factory checked in 
at 2013-03-15 10:46:52

Comparing /work/SRC/openSUSE:Factory/pigz (Old)
 and  /work/SRC/openSUSE:Factory/.pigz.new (New)


Package is pigz, Maintainer is ag...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/pigz/pigz.changes2012-12-14 
10:33:45.0 +0100
+++ /work/SRC/openSUSE:Factory/.pigz.new/pigz.changes   2013-03-15 
10:46:53.0 +0100
@@ -1,0 +2,15 @@
+Thu Mar 14 22:30:57 UTC 2013 - a...@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
+
+---

Old:

  pigz-2.2.5.tar.bz2

New:

  pigz-2.3.tar.bz2
  pigz-lm.patch



Other differences:
--
++ pigz.spec ++
--- /var/tmp/diff_new_pack.z0cxOO/_old  2013-03-15 10:46:55.0 +0100
+++ /var/tmp/diff_new_pack.z0cxOO/_new  2013-03-15 10:46:55.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package pigz
 #
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2013 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,56 +17,47 @@
 
 
 Name:   pigz
-Version:2.2.5
+Version:2.3
 Release:0
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  binutils
-BuildRequires:  filesystem
-BuildRequires:  glibc-devel
-BuildRequires:  zlib-devel = 1.2.3
-Source: %name-%version.tar.bz2
-Url:http://www.zlib.net/pigz/
 Summary:Multi-core gzip version
 License:Zlib
 Group:  Productivity/Archiving/Compression
+Url:http://www.zlib.net/pigz/
+# http://www.zlib.net/pigz/pigz-%%{version}.tar.gz
+Source: %{name}-%{version}.tar.bz2
+Patch:  %{name}-lm.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
+%setup -q
+%patch -p1
 
 %build
-export MYCFLAGS=${RPM_OPT_FLAGS}
-echo -e #!/bin/bash\nexec %__cc \\$@\ cc
-chmod 755 cc
-export PATH=.:$PATH
-%{__make} CFLAGS=$MYCFLAGS PREFIX=%{_prefix} LIBDIR=%{_libdir}
+make CC=gcc CFLAGS=%{optflags}
 
 %install
-mkdir -p $RPM_BUILD_ROOT/usr/bin
-cp -v pigz $RPM_BUILD_ROOT/usr/bin/
-cp -v unpigz $RPM_BUILD_ROOT/usr/bin/
+mkdir -p %{buildroot}%{_prefix}/bin
+cp -v pigz %{buildroot}%{_bindir}/
+ln -sv pigz %{buildroot}%{_bindir}/unpigz
 
 #man page
-mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1/
-cp -v pigz.1 $RPM_BUILD_ROOT/%{_mandir}/man1/
-cp -v pigz.1 $RPM_BUILD_ROOT/%{_mandir}/man1/unpigz.1
-gzip $RPM_BUILD_ROOT/%{_mandir}/man1/pigz.1
-gzip $RPM_BUILD_ROOT/%{_mandir}/man1/unpigz.1
-
-%clean
-%{__rm} -rf $RPM_BUILD_ROOT
+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
-%doc %{_mandir}/man1/pigz.1.*
-%doc %{_mandir}/man1/unpigz.1.*
-/usr/bin/pigz
-/usr/bin/unpigz
+%doc %{_mandir}/man1/pigz.1.gz
+%doc %{_mandir}/man1/unpigz.1.gz
+%{_bindir}/pigz
+%{_bindir}/unpigz
 
 %changelog

++ pigz-2.2.5.tar.bz2 - pigz-2.3.tar.bz2 ++
 6991 lines of diff (skipped)

++ pigz-lm.patch ++
From: Adam Mizerski a...@mizerski.pl
Date: 2013-03-15 00:01:33 +0100
Subject: adds missing -lm
Upstream: sent

It's required, because zopfli/tree.c uses log.

diff -rupN pigz-2.3/Makefile pigz-2.3_mod/Makefile
--- pigz-2.3/Makefile   2013-03-04 07:06:35.0 +0100
+++ pigz-2.3_mod/Makefile   2013-03-14 23:57:03.333838222 +0100
@@ -3,7 +3,7 @@ CFLAGS=-O3 -Wall -Wextra
 
 
 pigz: pigz.o yarn.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) -o pigz $^ -lpthread -lz
+   $(CC) -o pigz $^ -lpthread -lz -lm
ln -f pigz unpigz
 
 pigz.o: pigz.c yarn.h zopfli/deflate.h zopfli/util.h
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional 

commit pigz for openSUSE:Factory

2012-12-14 Thread h_root
Hello community,

here is the log from the commit of package pigz for openSUSE:Factory checked in 
at 2012-12-14 10:33:44

Comparing /work/SRC/openSUSE:Factory/pigz (Old)
 and  /work/SRC/openSUSE:Factory/.pigz.new (New)


Package is pigz, Maintainer is ag...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/pigz/pigz.changes2011-10-21 
16:34:37.0 +0200
+++ /work/SRC/openSUSE:Factory/.pigz.new/pigz.changes   2012-12-14 
10:33:45.0 +0100
@@ -1,0 +2,20 @@
+Tue Nov 27 08:32:43 UTC 2012 - sweet_...@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
+
+---

Old:

  pigz-2.1.6.tar.bz2
  pigz-always-thread.patch
  pigz-dictzip.patch
  pigz-do-symlinks.patch
  pigz-spl.patch

New:

  pigz-2.2.5.tar.bz2



Other differences:
--
++ pigz.spec ++
--- /var/tmp/diff_new_pack.N8K4BZ/_old  2012-12-14 10:33:51.0 +0100
+++ /var/tmp/diff_new_pack.N8K4BZ/_new  2012-12-14 10:33:51.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package pigz
 #
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2012 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
@@ -16,22 +16,19 @@
 #
 
 
-
 Name:   pigz
-Version:2.1.6
-Release:1
-License:Zlib
+Version:2.2.5
+Release:0
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  binutils filesystem glibc-devel zlib-devel
-Requires:   glibc zlib
-Group:  Productivity/Archiving/Compression
+BuildRequires:  binutils
+BuildRequires:  filesystem
+BuildRequires:  glibc-devel
+BuildRequires:  zlib-devel = 1.2.3
 Source: %name-%version.tar.bz2
-Patch1: pigz-dictzip.patch
-Patch2: pigz-spl.patch
-Patch3: pigz-do-symlinks.patch
-Patch4: pigz-always-thread.patch
 Url:http://www.zlib.net/pigz/
 Summary:Multi-core gzip version
+License:Zlib
+Group:  Productivity/Archiving/Compression
 
 %description
 A parallel implementation of gzip for modern multi-processor,
@@ -41,10 +38,6 @@
 
 %prep
 %setup
-%patch1 -p1
-%patch2 -p1
-%patch3 -p1
-%patch4 -p1
 
 %build
 export MYCFLAGS=${RPM_OPT_FLAGS}
@@ -71,8 +64,8 @@
 %files
 %defattr(-,root,root)
 %doc README
-%doc %{_mandir}/man1/pigz.1.gz
-%doc %{_mandir}/man1/unpigz.1.gz
+%doc %{_mandir}/man1/pigz.1.*
+%doc %{_mandir}/man1/unpigz.1.*
 /usr/bin/pigz
 /usr/bin/unpigz
 

++ pigz-2.1.6.tar.bz2 - pigz-2.2.5.tar.bz2 ++
 2377 lines of diff (skipped)

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit pigz for openSUSE:Factory

2011-12-06 Thread h_root
Hello community,

here is the log from the commit of package pigz for openSUSE:Factory checked in 
at 2011-12-06 18:51:48

Comparing /work/SRC/openSUSE:Factory/pigz (Old)
 and  /work/SRC/openSUSE:Factory/.pigz.new (New)


Package is pigz, Maintainer is ag...@suse.com

Changes:




Other differences:
--
++ pigz.spec ++
--- /var/tmp/diff_new_pack.7iGEKw/_old  2011-12-06 19:25:21.0 +0100
+++ /var/tmp/diff_new_pack.7iGEKw/_new  2011-12-06 19:25:21.0 +0100
@@ -20,7 +20,7 @@
 Name:   pigz
 Version:2.1.6
 Release:1
-License:zlib/libpng License
+License:Zlib
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  binutils filesystem glibc-devel zlib-devel
 Requires:   glibc zlib

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit pigz for openSUSE:Factory

2011-06-23 Thread h_root

Hello community,

here is the log from the commit of package pigz for openSUSE:Factory
checked in at Thu Jun 23 13:24:27 CEST 2011.




New Changes file:

--- /dev/null   2010-08-26 16:28:41.0 +0200
+++ /mounts/work_src_done/STABLE/pigz/pigz.changes  2011-06-08 
20:57:28.0 +0200
@@ -0,0 +1,23 @@
+---
+Thu Jun  2 12:20:22 CEST 2011 - vis...@suse.cz
+
+- update to 2.1.6
+- package unpigz
+- create debug packages
+- package manpage
+
+---
+Tue Apr 20 00:44:25 CEST 2010 - ag...@suse.de
+
+- fix dictzip with #CPU == 1 (bnc#597756)
+
+---
+Wed Mar  3 16:12:37 CET 2010 - vis...@suse.de
+
+- include symlinks patch 
+
+---
+Tue Oct 20 16:32:03 CEST 2009 - jmate...@suse.de
+
+- initial package
+

calling whatdependson for head-i586


New:

  pigz-2.1.6.tar.bz2
  pigz-always-thread.patch
  pigz-dictzip.patch
  pigz-do-symlinks.patch
  pigz-spl.patch
  pigz.changes
  pigz.spec



Other differences:
--
++ pigz.spec ++
#
# spec file for package pigz
#
# Copyright (c) 2011 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An Open Source License is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:   pigz
Version:2.1.6
Release:1
License:zlib/libpng License
BuildRoot:  %{_tmppath}/%{name}-%{version}-build
BuildRequires:  binutils filesystem glibc-devel zlib-devel
Requires:   glibc zlib
Group:  Productivity/Archiving/Compression
Source: %name-%version.tar.bz2
Patch1: pigz-dictzip.patch
Patch2: pigz-spl.patch
Patch3: pigz-do-symlinks.patch
Patch4: pigz-always-thread.patch
Url:http://www.zlib.net/pigz/
Summary:Multi-core gzip version

%description
A parallel implementation of gzip for modern multi-processor,
multi-core machines



%prep
%setup
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1

%build
export MYCFLAGS=${RPM_OPT_FLAGS}
%{__make} CFLAGS=$MYCFLAGS PREFIX=%{_prefix} LIBDIR=%{_libdir}

%install
mkdir -p $RPM_BUILD_ROOT/usr/bin
cp -v pigz $RPM_BUILD_ROOT/usr/bin/
cp -v unpigz $RPM_BUILD_ROOT/usr/bin/

#man page
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1/
cp -v pigz.1 $RPM_BUILD_ROOT/%{_mandir}/man1/
cp -v pigz.1 $RPM_BUILD_ROOT/%{_mandir}/man1/unpigz.1
gzip $RPM_BUILD_ROOT/%{_mandir}/man1/pigz.1
gzip $RPM_BUILD_ROOT/%{_mandir}/man1/unpigz.1

%clean
%{__rm} -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README
%doc %{_mandir}/man1/pigz.1.gz
%doc %{_mandir}/man1/unpigz.1.gz
/usr/bin/pigz
/usr/bin/unpigz

%changelog
++ pigz-always-thread.patch ++
Dictzip only really works in the threaded code paths. So let's force
use them and ignore the non-parallel case (bnc#597756).

Index: pigz-2.1.5/pigz.c
===
--- pigz-2.1.5.orig/pigz.c
+++ pigz-2.1.5/pigz.c
@@ -2820,7 +2820,7 @@ local void process(char *path)
 unlzw();
 }
 #ifndef NOTHREAD
-else if (procs  1)
+else if (1)
 parallel_compress();
 #endif
 else
++ pigz-dictzip.patch ++
diff -u -r pigz-2.1.6.orig/pigz.c pigz-2.1.6/pigz.c
--- pigz-2.1.6.orig/pigz.c  2010-01-17 21:09:37.0 +0100
+++ pigz-2.1.6/pigz.c   2011-06-02 12:29:12.245689087 +0200
@@ -304,6 +304,8 @@
 } \
 } while (0)
 
+#define DZIP_HEADER_LEN24
+
 /* globals (modified by main thread only when it's the only thread) */
 local int ind;  /* input file descriptor */
 local int outd; /* output file descriptor */
@@ -322,11 +324,12 @@
 local int list; /* true to list files instead of compress */
 local int first = 1;/* true if we need to print listing header */
 local int decode;   /* 0 to compress, 1 to decompress, 2 to test */
+local int dictzip;  /* true to write random access dictionary */
 local int level;/* compression level */
 local int rsync;/* true for rsync blocking */
 local int procs;/* maximum number of compression threads (= 1) */
 local int dict; /* true to initialize dictionary in each thread */
-local size_t size;  /*