diff --git a/README.en.md b/README.en.md deleted file mode 100644 index 991bce8aef30977e2598123bbacc62de9c90d9c9..0000000000000000000000000000000000000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# pbzip2 - -#### Description -Parallel implementation of bzip2 - -#### Software Architecture -Software architecture description - -#### Installation - -1. xxxx -2. xxxx -3. xxxx - -#### Instructions - -1. xxxx -2. xxxx -3. xxxx - -#### Contribution - -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request - - -#### Gitee Feature - -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/README.md b/README.md deleted file mode 100644 index 13779ff7e2260cb16b5e56d50afc99f97dbc0ddf..0000000000000000000000000000000000000000 --- a/README.md +++ /dev/null @@ -1,37 +0,0 @@ -# pbzip2 - -#### 介绍 -Parallel implementation of bzip2 - -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -1. xxxx -2. xxxx -3. xxxx - -#### 使用说明 - -1. xxxx -2. xxxx -3. xxxx - -#### 参与贡献 - -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request - - -#### 码云特技 - -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 -5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/pbzip2-1.1.12-buildflags.patch b/pbzip2-1.1.12-buildflags.patch new file mode 100644 index 0000000000000000000000000000000000000000..23fe33a3459f3825a3556a524c4f7fb0c8e2616b --- /dev/null +++ b/pbzip2-1.1.12-buildflags.patch @@ -0,0 +1,26 @@ +diff -up pbzip2-1.1.12/Makefile.flags pbzip2-1.1.12/Makefile +--- pbzip2-1.1.12/Makefile.flags 2015-09-09 16:10:11.389730644 +0200 ++++ pbzip2-1.1.12/Makefile 2015-09-09 16:10:43.823872798 +0200 +@@ -17,7 +17,7 @@ LDLIBS_PTHREAD = -lpthread + + + # Optimization flags +-CXXFLAGS = -O2 ++CXXFLAGS ?= -O2 + + #CXXFLAGS += -g -Wall + #CXXFLAGS += -ansi +@@ -50,11 +50,11 @@ CXXFLAGS += $(CXXFLAGS_PTHREAD) + + + # Linker flags +-LDFLAGS = ++# LDFLAGS = + + + # External libraries +-LDLIBS = -lbz2 ++LDLIBS += -lbz2 + LDLIBS += $(LDLIBS_PTHREAD) + + diff --git a/pbzip2-1.1.12.tar.gz b/pbzip2-1.1.12.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..65b70951416edb1655b20ff9b23d8d891ffc52cd Binary files /dev/null and b/pbzip2-1.1.12.tar.gz differ diff --git a/pbzip2.spec b/pbzip2.spec new file mode 100644 index 0000000000000000000000000000000000000000..ea746519b9c2cdb40fc3d30602196de969bc0230 --- /dev/null +++ b/pbzip2.spec @@ -0,0 +1,50 @@ +Name: pbzip2 +Version: 1.1.12 +Release: 10 +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 +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 +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 +* Fri Jan 10 2020 openEuler Buildteam - 1.1.12-10 +- Package init \ No newline at end of file