File pigz.spec of Package pigz
#
# spec file for package pigz
#
# Copyright (c) 2020 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
# 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.8
Release: 0
Summary: Parallel implementation of gzip which utilizes multiple cores
License: Zlib
Group: Applications/Tools
Url: http://www.zlib.net/pigz
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: zlib-devel
BuildRequires: fdupes
%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. pigz was written by Mark Adler, and uses the zlib and pthread libraries.
%prep
%setup -q
cp pigz.1 unpigz.1
%build
make %{?_smp_mflags}
%install
mkdir -p %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{_mandir}/man1
install -m 755 pigz %{buildroot}/%{_bindir}
install -m 755 unpigz %{buildroot}/%{_bindir}
install -m 644 pigz.1 %{buildroot}/%{_mandir}/man1/
install -m 644 unpigz.1 %{buildroot}/%{_mandir}/man1/
%fdupes -s %{buildroot}/%{_mandir}
%fdupes %{buildroot}/%{_prefix}
%files
%defattr(-,root,root)
%{_bindir}/pigz
%{_bindir}/unpigz
%{_mandir}/man1/*pigz.*
%doc README pigz.pdf
%changelog
* Thu Oct 12 2022 David Bolt <davjam79@gmail.com> 2.7
- Updated source to version 2.7
-
* Thu Nov 26 2020 David Bolt <davjam79@gmail.com> 2.4
- First packaged for SUSE