From f2c834162515a2d4dcc0e236f651d51263694a76 Mon Sep 17 00:00:00 2001 From: eabdullin Date: Wed, 14 May 2025 19:18:18 +0000 Subject: [PATCH] import UBI pigz-2.8-7.el10 --- .gitignore | 2 +- .pigz.metadata | 1 - ...e-accept-LDFLAGS-from-env-if-defined.patch | 25 ++++ SOURCES/pigz-annocheck-gcc-flags.patch | 11 -- SPECS/pigz.spec => pigz.spec | 111 ++++++++++++++---- sources | 1 + 6 files changed, 117 insertions(+), 34 deletions(-) delete mode 100644 .pigz.metadata create mode 100644 Makefile-accept-LDFLAGS-from-env-if-defined.patch delete mode 100644 SOURCES/pigz-annocheck-gcc-flags.patch rename SPECS/pigz.spec => pigz.spec (52%) create mode 100644 sources diff --git a/.gitignore b/.gitignore index f1d42da..1dfdbdc 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/pigz-2.4.tar.gz +pigz-2.8.tar.gz diff --git a/.pigz.metadata b/.pigz.metadata deleted file mode 100644 index cd9ada4..0000000 --- a/.pigz.metadata +++ /dev/null @@ -1 +0,0 @@ -92d4a8f3917865acca2c7c368cf0ed10d20d0612 SOURCES/pigz-2.4.tar.gz diff --git a/Makefile-accept-LDFLAGS-from-env-if-defined.patch b/Makefile-accept-LDFLAGS-from-env-if-defined.patch new file mode 100644 index 0000000..6b71a47 --- /dev/null +++ b/Makefile-accept-LDFLAGS-from-env-if-defined.patch @@ -0,0 +1,25 @@ +From 32f59866bffcbfcfc44c22c613c0019a2e5d32f2 Mon Sep 17 00:00:00 2001 +From: Tony Camuso +Date: Mon, 22 Jul 2024 11:54:28 -0400 +Subject: [PATCH v0] Makefile: accept LDFLAGS from env if defined + +Signed-off-by: Tony Camuso +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index b1866cf..b2b279c 100644 +--- a/Makefile ++++ b/Makefile +@@ -1,6 +1,6 @@ + CC=gcc + CFLAGS=-O3 -Wall -Wextra -Wno-unknown-pragmas -Wcast-qual +-LDFLAGS= ++LDFLAGS ?= + # CFLAGS=-O3 -Wall -Wextra -Wno-unknown-pragmas -Wcast-qual -g -fsanitize=thread + # LDFLAGS=-g -fsanitize=thread + # CFLAGS=-O3 -Wall -Wextra -Wno-unknown-pragmas -Wcast-qual -g -fsanitize=address +-- +2.45.2 + diff --git a/SOURCES/pigz-annocheck-gcc-flags.patch b/SOURCES/pigz-annocheck-gcc-flags.patch deleted file mode 100644 index d5324f0..0000000 --- a/SOURCES/pigz-annocheck-gcc-flags.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -urNp pigz-2.4.orig/Makefile pigz-2.4/Makefile ---- pigz-2.4.orig/Makefile 2018-09-24 15:56:17.299714387 -0400 -+++ pigz-2.4/Makefile 2018-09-24 15:56:36.026651935 -0400 -@@ -1,6 +1,6 @@ - CC=gcc - CFLAGS=-O3 -Wall -Wextra -Wno-unknown-pragmas --LDFLAGS= -+LDFLAGS=-Wl,-z,now -pie - LIBS=-lm -lpthread -lz - ZOPFLI=zopfli/src/zopfli/ - ZOP=deflate.o blocksplitter.o tree.o lz77.o cache.o hash.o util.o squeeze.o katajainen.o diff --git a/SPECS/pigz.spec b/pigz.spec similarity index 52% rename from SPECS/pigz.spec rename to pigz.spec index 2c7695e..784c311 100644 --- a/SPECS/pigz.spec +++ b/pigz.spec @@ -1,29 +1,37 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.6.5) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 7; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + Name: pigz -Version: 2.4 -Release: 4%{?dist} +Version: 2.8 +Release: %autorelease Summary: Parallel implementation of gzip - -Group: Applications/File -License: zlib -URL: http://www.zlib.net/pigz/ -Source0: http://www.zlib.net/%{name}/%{name}-%{version}.tar.gz -Patch0: pigz-annocheck-gcc-flags.patch - -BuildRequires: zlib-devel +License: Zlib +URL: https://www.zlib.net/pigz/ +Source0: https://www.zlib.net/%{name}/%{name}-%{version}.tar.gz +Patch0: Makefile-accept-LDFLAGS-from-env-if-defined.patch +BuildRequires: gcc +BuildRequires: make BuildRequires: ncompress +BuildRequires: zlib-devel %description pigz, which stands for parallel implementation of gzip, is a fully functional replacement for gzip that exploits -multiple processors and multiple cores to the hilt when compressing data. +multiple processors and multiple cores to the hilt when +compressing data. %prep -%autosetup +%autosetup -p1 %build -%set_build_flags -make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS -fpie -pie" - +%make_build CFLAGS="$RPM_OPT_FLAGS" %install install -p -D pigz $RPM_BUILD_ROOT%{_bindir}/pigz @@ -33,20 +41,79 @@ install -p -D pigz.1 -m 0644 $RPM_BUILD_ROOT%{_datadir}/man/man1/pigz.1 %check make tests CFLAGS="$RPM_OPT_FLAGS" - %files %doc pigz.pdf README %{_bindir}/pigz %{_bindir}/unpigz %{_datadir}/man/man1/pigz.* - %changelog -* Tue Dec 3 2019 Prarit Bhargava - 2.4-4 -- Rebuild to kick process (no changes from previous build) [1624161] +## START: Generated by rpmautospec +* Tue Jul 23 2024 Tony Camuso - 2.8-7 +- Add gating.yaml -* Mon Sep 24 2018 Prarit Bhargava - 2.4-3 -- Fix annocheck gcc failures [1624161] +* Mon Jul 22 2024 Tony Camuso - 2.8-6 +- Makefile: accept LDFLAGS from env if defined + +* Mon Jun 24 2024 Troy Dawson - 2.8-5 +- Bump release for June 2024 mass rebuild + +* Thu Jan 25 2024 Fedora Release Engineering - 2.8-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 2.8-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Aug 20 2023 Filipe Rosset - 2.8-2 +- remove upstreamed patch + +* Sun Aug 20 2023 Filipe Rosset - 2.8-1 +- update to pigz-2.8 + +* Sat Jul 29 2023 Prarit Bhargava - 2.7.5 +- migrated to SPDX license + +* Fri Jul 21 2023 Fedora Release Engineering - 2.7-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Fri Jan 20 2023 Fedora Release Engineering - 2.7-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 2.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Feb 04 2022 Filipe Rosset - 2.7-1 +- Update to 2.7 fixez rhbz#2041075 + +* Fri Jan 21 2022 Fedora Release Engineering - 2.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Oct 05 2021 Filipe Rosset - 2.6-1 +- Update to 2.6 + +* Fri Jul 23 2021 Fedora Release Engineering - 2.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Mon Feb 01 2021 Filipe Rosset - 2.5-1 +- Update to 2.5 fixes rhbz#1919623 + +* Wed Jan 27 2021 Fedora Release Engineering - 2.4-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 2.4-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Thu Jan 30 2020 Fedora Release Engineering - 2.4-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Jul 26 2019 Fedora Release Engineering - 2.4-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 2.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 2.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 2.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild @@ -130,3 +197,5 @@ make tests CFLAGS="$RPM_OPT_FLAGS" * Fri Sep 25 2009 Adel Gadllah - 2.1.5-1 - Initial package + +## END: Generated by rpmautospec diff --git a/sources b/sources new file mode 100644 index 0000000..039eafc --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (pigz-2.8.tar.gz) = ae3d9d593e1645d65f9ab77aa828600c9af4bb30d0a073da7ae3dd805e65b87efaf6a0efb980f2d0168e475ae506eba194547d6479956dabb9d88293a9078a7f