1 Star 0 Fork 14

xu_ping/pbzip2

forked from src-openEuler/pbzip2 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
pbzip2.spec 1.65 KB
一键复制 编辑 原始数据 按行查看 历史
xu_ping 提交于 2023-07-13 12:40 . fix link error
%global debug_package %{nil}
Name: pbzip2
Version: 1.1.13
Release: 2
Summary: Parallel implementation of the bzip2 block-sorting file compressor
License: BSD
URL: http://www.compression.ca/pbzip2/
Source0: https://launchpad.net/pbzip2/1.1/1.1.13/+download/pbzip2-1.1.13.tar.gz
Patch0: 001-Fix-Invalid-Suffix_pbzip2.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 && alias rpmbuild='rpmbuild --nodebuginfo'
%build
%set_build_flags
%make_build CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="%{__global_ldflags} -fpie -pie"
%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
%files
%defattr(-,root,root)
%doc AUTHORS README
%license COPYING
%{_bindir}/*
%files help
%defattr(-,root,root)
%doc ChangeLog
%{_mandir}/man1/*
%changelog
* Thu Jul 13 2023 xu_ping <707078654@qq.com> - 1.1.13-2
- add pie options to fix link error
* Fri Feb 03 2023 wenchaofan <349464272@qq.com> - 1.1.13-1
- Update to 1.1.13
* Fri Jan 10 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.1.12-10
- Package init
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cherry530/pbzip2.git
git@gitee.com:cherry530/pbzip2.git
cherry530
pbzip2
pbzip2
master

搜索帮助