From 716273f66e6cd967e507f0b8aa4bb23c9d67205d Mon Sep 17 00:00:00 2001 From: starlet-dx <15929766099@163.com> Date: Tue, 2 Jan 2024 17:45:02 +0800 Subject: [PATCH] Fix pbunzip2 and pbzcat command not available --- pbzip2.spec | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/pbzip2.spec b/pbzip2.spec index ea74651..38d0383 100644 --- a/pbzip2.spec +++ b/pbzip2.spec @@ -1,11 +1,11 @@ Name: pbzip2 Version: 1.1.12 -Release: 10 +Release: 12 Summary: Parallel implementation of the bzip2 block-sorting file compressor License: BSD URL: http://www.compression.ca/pbzip2/ -Source0: http://www.compression.ca/pbzip2/pbzip2-%{version}.tar.gz +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 @@ -27,12 +27,10 @@ f=AUTHORS; iconv -f iso-8859-1 -t utf-8 $f > $f.utf8 && mv $f.utf8 $f %install -pushd %{buildroot} -install -D -m755 %{_builddir}/pbzip2-%{version}/pbzip2 .%{_bindir}/pbzip2 -install -D -m644 %{_builddir}/pbzip2-%{version}/pbzip2.1 .%{_mandir}/man1/pbzip2.1 -ln -sf %{_builddir}/pbzip2-%{version}/pbzip2 .%{_bindir}/pbunzip2 -ln -sf %{_builddir}/pbzip2-%{version}/pbzip2 .%{_bindir}/pbzcat -popd +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) @@ -46,5 +44,11 @@ popd %{_mandir}/man1/* %changelog +* Tue Jan 02 2024 yaoxin - 1.1.12-12 +- Fix pbunzip2 and pbzcat command not available + +* Thu Nov 10 2022 liyanan - 1.1.12-11 +- Change source + * Fri Jan 10 2020 openEuler Buildteam - 1.1.12-10 -- Package init \ No newline at end of file +- Package init -- Gitee