pbzip2/pbzip2.spec
starlet-dx ab54f37751 Fix pbunzip2 and pbzcat command not available
(cherry picked from commit fbd3a84c94232a0179ef7e2c1f1cb6747b843142)
2024-01-04 10:46:28 +08:00

55 lines
1.4 KiB
RPMSpec

Name: pbzip2
Version: 1.1.12
Release: 12
Summary: Parallel implementation of the bzip2 block-sorting file compressor
License: BSD
URL: http://www.compression.ca/pbzip2/
Source0: http://launchpad.net/pbzip2/1.1/1.1.12/+download/pbzip2-%{version}.tar.gz
Patch0: pbzip2-1.1.12-buildflags.patch
BuildRequires: gcc-c++ bzip2-devel
%description
PBZIP2 is a parallel implementation of the bzip2 block-sorting file compressor.
The output of this version should be fully compatible with bzip2 v1.0.2 or newer
(ie: anything compressed with pbzip2 can be decompressed with bzip2).
%package_help
%prep
%autosetup -n pbzip2-%{version} -p1
f=AUTHORS; iconv -f iso-8859-1 -t utf-8 $f > $f.utf8 && mv $f.utf8 $f
%build
%set_build_flags
%make_build
%install
install -D -m755 %{name} %{buildroot}%{_bindir}/%{name}
install -D -m644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
ln -sf ./%{name} %{buildroot}%{_bindir}/pbunzip2
ln -sf ./%{name} %{buildroot}%{_bindir}/pbzcat
%files
%defattr(-,root,root)
%doc AUTHORS README
%license COPYING
%{_bindir}/*
%files help
%defattr(-,root,root)
%doc ChangeLog
%{_mandir}/man1/*
%changelog
* Tue Jan 02 2024 yaoxin <yao_xin001@hoperun.com> - 1.1.12-12
- Fix pbunzip2 and pbzcat command not available
* Thu Nov 10 2022 liyanan <liyanan32@h-partners.com> - 1.1.12-11
- Change source
* Fri Jan 10 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.1.12-10
- Package init