pigz/pigz.spec

64 lines
1.5 KiB
RPMSpec
Raw Normal View History

2019-12-13 16:00:01 +08:00
#spec from source code(%{name}-%{version}.tar.gz)
2019-11-06 19:47:33 +08:00
Name: pigz
Version: 2.4
2019-12-13 16:00:01 +08:00
Release: 7
2019-11-06 19:47:33 +08:00
Summary: pigz is a parallel implementation of gzip which utilizes multiple cores
License: zlib
Source0: http://www.zlib.net/%{name}/%{name}-%{version}.tar.gz
URL: http://www.zlib.net/pigz
2019-09-30 11:13:43 -04:00
2019-11-06 19:47:33 +08:00
BuildRequires: zlib-devel gcc
2019-09-30 11:13:43 -04:00
%description
2019-11-06 19:47:33 +08:00
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.
2019-09-30 11:13:43 -04:00
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
%build
%make_build CFLAGS="%{optflags}"
%install
2019-11-06 19:47:33 +08:00
mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1
mv pigz unpigz ${RPM_BUILD_ROOT}%{_bindir}
mv pigz.1 ${RPM_BUILD_ROOT}%{_mandir}/man1
2019-09-30 11:13:43 -04:00
%check
make test
%files
%defattr(-,root,root)
%doc README
%{_bindir}/*pigz
%files help
%{_mandir}/man1/pigz.1*
%changelog
2019-12-13 16:00:01 +08:00
* Wed Dec 4 2019 shenyangyang<shenyangyang4@huawei.com> - 2.4-7
- Type: enhancement
- ID: NA
- SUG: NA
- DESC: modify comments
2019-11-06 19:47:33 +08:00
* Wed Oct 9 2019 shenyangyang<shenyangyang4@huawei.com> - 2.4-6
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:modify spec according the spec in tarball
2019-09-30 11:13:43 -04:00
* Tue Sep 24 2019 shenyangyang<shenyangyang4@huawei.com> - 2.4-5
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:add help package
* Fri Aug 09 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.4-4
- Package init
2019-11-06 19:47:33 +08:00