diff --git a/0001-pigz-fix-cc.patch b/0001-pigz-fix-cc.patch new file mode 100644 index 0000000000000000000000000000000000000000..adf255ebfafb6c1e1bfe7b922a1338ac44ef41ed --- /dev/null +++ b/0001-pigz-fix-cc.patch @@ -0,0 +1,22 @@ +From 568d3b532e8861fdde4e3b16be8af692d5eac032 Mon Sep 17 00:00:00 2001 +From: zhangchao13 +Date: Sun, 23 Apr 2023 10:33:13 +0800 +Subject: [PATCH] pigz-fix-cc + +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index b1866cf..0fc97fa 100644 +--- a/Makefile ++++ b/Makefile +@@ -1,4 +1,4 @@ +-CC=gcc ++CC?=gcc + CFLAGS=-O3 -Wall -Wextra -Wno-unknown-pragmas -Wcast-qual + LDFLAGS= + # CFLAGS=-O3 -Wall -Wextra -Wno-unknown-pragmas -Wcast-qual -g -fsanitize=thread +-- +2.33.0 + diff --git a/pigz.spec b/pigz.spec index bab6331f24dbe9f5368e797168361395f8031e60..81b324ecf60f430763e6b9fdbea68f9f57b0c324 100644 --- a/pigz.spec +++ b/pigz.spec @@ -1,7 +1,7 @@ #spec from source code(%{name}-%{version}.tar.gz) Name: pigz Version: 2.7 -Release: 1 +Release: 2 Summary: pigz is a parallel implementation of gzip which utilizes multiple cores License: zlib Source0: http://www.zlib.net/%{name}/%{name}-%{version}.tar.gz @@ -16,6 +16,8 @@ Mark Adler, and uses the zlib and pthread libraries. %package_help +Patch0: 0001-pigz-fix-cc.patch + %prep %autosetup -n %{name}-%{version} -p1 @@ -40,6 +42,9 @@ make test %{_mandir}/man1/pigz.1* %changelog +* Sun Apr 23 2023 Zhang Chao - 2.7-2 +- Fix CC compiler support + * Thu Jan 19 2023 zhangnan - 2.7-1 - update to 2.7