1 OBS-URL: https://build.opensuse.org/request/show/291203 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/pigz?expand=0&rev=12
65 lines
1.8 KiB
RPMSpec
65 lines
1.8 KiB
RPMSpec
#
|
|
# spec file for package pigz
|
|
#
|
|
# Copyright (c) 2015 SUSE LINUX Products 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.3.3
|
|
Release: 0
|
|
Summary: Multi-core gzip version
|
|
License: Zlib
|
|
Group: Productivity/Archiving/Compression
|
|
Url: http://www.zlib.net/pigz/
|
|
Source: http://www.zlib.net/pigz/%{name}-%{version}.tar.gz
|
|
Patch: pigz-fix-wrong-include.patch
|
|
Patch1: pigz-fix-missing-linker.patch
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: zlib-devel >= 1.2.3
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
A parallel implementation of gzip for modern multi-processor,
|
|
multi-core machines
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch -p1
|
|
%patch1 -p1
|
|
|
|
%build
|
|
make CC="gcc" CFLAGS="%{optflags}"
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{_prefix}/bin
|
|
cp -v pigz %{buildroot}%{_bindir}/
|
|
ln -sv pigz %{buildroot}%{_bindir}/unpigz
|
|
|
|
#man page
|
|
mkdir -p %{buildroot}/%{_mandir}/man1/
|
|
cp -v pigz.1 %{buildroot}/%{_mandir}/man1/
|
|
gzip %{buildroot}/%{_mandir}/man1/pigz.1
|
|
ln -sv pigz.1.gz %{buildroot}/%{_mandir}/man1/unpigz.1
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc README
|
|
%{_mandir}/man1/pigz.1.gz
|
|
%{_mandir}/man1/unpigz.1.gz
|
|
%{_bindir}/pigz
|
|
%{_bindir}/unpigz
|
|
|
|
%changelog
|