From b3d7c906a221b29fbd8f49dbd8b3633c515d6b7d Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Apr 28 2020 09:42:42 +0000 Subject: import pigz-2.4-4.el8 --- diff --git a/SOURCES/pigz-annocheck-gcc-flags.patch b/SOURCES/pigz-annocheck-gcc-flags.patch new file mode 100644 index 0000000..d5324f0 --- /dev/null +++ b/SOURCES/pigz-annocheck-gcc-flags.patch @@ -0,0 +1,11 @@ +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/SPECS/pigz.spec index 5ef508e..2c7695e 100644 --- a/SPECS/pigz.spec +++ b/SPECS/pigz.spec @@ -1,12 +1,13 @@ Name: pigz Version: 2.4 -Release: 2%{?dist} +Release: 4%{?dist} 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 BuildRequires: ncompress @@ -17,10 +18,11 @@ is a fully functional replacement for gzip that exploits multiple processors and multiple cores to the hilt when compressing data. %prep -%setup -q +%autosetup %build -make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" +%set_build_flags +make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS -fpie -pie" %install @@ -40,6 +42,12 @@ make tests CFLAGS="$RPM_OPT_FLAGS" %changelog +* Tue Dec 3 2019 Prarit Bhargava - 2.4-4 +- Rebuild to kick process (no changes from previous build) [1624161] + +* Mon Sep 24 2018 Prarit Bhargava - 2.4-3 +- Fix annocheck gcc failures [1624161] + * Fri Feb 09 2018 Fedora Release Engineering - 2.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild