2011-06-23 13:24:20 +02:00
|
|
|
#
|
|
|
|
# spec file for package pigz
|
|
|
|
#
|
2022-05-09 08:25:49 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2011-06-23 13:24:20 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2021-02-08 07:56:55 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-06-23 13:24:20 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: pigz
|
2023-09-05 10:01:09 +02:00
|
|
|
Version: 2.8
|
2012-12-14 10:33:44 +01:00
|
|
|
Release: 0
|
2011-06-23 13:24:20 +02:00
|
|
|
Summary: Multi-core gzip version
|
2012-12-14 10:33:44 +01:00
|
|
|
License: Zlib
|
|
|
|
Group: Productivity/Archiving/Compression
|
2021-02-08 07:56:55 +01:00
|
|
|
URL: https://www.zlib.net/pigz/
|
|
|
|
Source0: https://www.zlib.net/%{name}/%{name}-%{version}.tar.gz
|
|
|
|
Source1: https://www.zlib.net/%{name}/%{name}-%{version}-sig.txt#/%{name}-%{version}.tar.gz.asc
|
|
|
|
Source9: %{name}.keyring
|
2018-07-18 22:35:51 +02:00
|
|
|
BuildRequires: zlib-devel
|
2011-06-23 13:24:20 +02:00
|
|
|
|
|
|
|
%description
|
2018-07-18 22:35:51 +02:00
|
|
|
A parallel implementation of gzip for modern multi-processor, multi-core machines
|
2011-06-23 13:24:20 +02:00
|
|
|
|
|
|
|
%prep
|
2022-05-09 08:25:49 +02:00
|
|
|
%autosetup -p1
|
2023-12-07 11:15:08 +01:00
|
|
|
# Workaround until fixed upstream - https://github.com/madler/pigz/issues/114
|
|
|
|
sed -i 's#CFLAGS=#CFLAGS?=#' Makefile
|
|
|
|
sed -i 's#LDFLAGS=#LDFLAGS?=#' Makefile
|
2011-06-23 13:24:20 +02:00
|
|
|
|
|
|
|
%build
|
2023-12-07 11:15:08 +01:00
|
|
|
%set_build_flags
|
2022-05-09 08:25:49 +02:00
|
|
|
%make_build
|
2018-07-18 22:35:51 +02:00
|
|
|
|
|
|
|
%check
|
2022-05-09 08:25:49 +02:00
|
|
|
%make_build tests
|
2011-06-23 13:24:20 +02:00
|
|
|
|
|
|
|
%install
|
2018-07-18 22:35:51 +02:00
|
|
|
install -Dpm 0755 pigz \
|
|
|
|
%{buildroot}%{_bindir}/pigz
|
|
|
|
install -Dpm 0644 pigz.1 \
|
|
|
|
%{buildroot}%{_mandir}/man1/pigz.1
|
2013-03-15 10:46:52 +01:00
|
|
|
ln -sv pigz %{buildroot}%{_bindir}/unpigz
|
2011-06-23 13:24:20 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%doc README
|
2013-03-15 10:46:52 +01:00
|
|
|
%{_bindir}/pigz
|
|
|
|
%{_bindir}/unpigz
|
2018-07-18 22:35:51 +02:00
|
|
|
%{_mandir}/man1/pigz.1%{?ext_man}
|
2011-06-23 13:24:20 +02:00
|
|
|
|
|
|
|
%changelog
|