diff --git a/README.en.md b/README.en.md deleted file mode 100644 index 20e65b4f98ca8b4a929d3e77fa02afc9efaee6ec..0000000000000000000000000000000000000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# p7zip - -#### Description -7-Zip is a file archiver with a high compression ratio. - -#### 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 eee727515d6d4b128c2a1b6aa3040b31fbf25a5f..0000000000000000000000000000000000000000 --- a/README.md +++ /dev/null @@ -1,37 +0,0 @@ -# p7zip - -#### 介绍 -7-Zip is a file archiver with a high compression ratio. - -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -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/p7zip.spec b/p7zip.spec new file mode 100644 index 0000000000000000000000000000000000000000..44993e862fdbd44996080fb1db0e5123c4bd9507 --- /dev/null +++ b/p7zip.spec @@ -0,0 +1,96 @@ +Name: p7zip +Version: 16.02 +Release: 1 +# Files under C/Compress/Lzma/ are dual LGPL or CPL +License: LGPLv2 and (LGPLv2+ or CPL) +URL: http://p7zip.sourceforge.net/ +Summary: Very high compression ratio file archiver +Source0: p7zip_%{version}_src_all.tar.bz2 + +BuildRequires: gcc gcc-c++ cmake ninja-build +%ifarch %{ix86} +BuildRequires: nasm +%endif +%ifarch x86_64 +BuildRequires: yasm +%endif + +%description +p7zip is a port of 7za.exe for Unix. 7-Zip is a file archiver with a very high +compression ratio. The original version can be found at http://www.7-zip.org/. + + +%package plugins +Summary: Additional plugins for p7zip + +%description plugins +Additional plugins that can be used with 7z to extend its abilities. +This package contains also a virtual file system for Midnight Commander. + +%prep +%autosetup -p1 -n %{name}_%{version} + +mv DOC/License.txt DOC/copying.txt . + +%build +pushd CPP/7zip/CMAKE/ +sh ./generate.sh +popd +%ifarch %{ix86} +cp -f makefile.linux_x86_asm_gcc_4.X makefile.machine +%endif +%ifarch x86_64 +cp -f makefile.linux_amd64_asm makefile.machine +%endif +%ifarch ppc ppc64 +cp -f makefile.linux_any_cpu_gcc_4.X makefile.machine +%endif + +%make_build all2 \ + OPTFLAGS="%{optflags}" \ + DEST_HOME=%{_prefix} \ + DEST_BIN=%{_bindir} \ + DEST_SHARE=%{_libexecdir}/p7zip \ + DEST_MAN=%{_mandir} + + +%install +make install \ + DEST_DIR=%{buildroot} \ + DEST_HOME=%{_prefix} \ + DEST_BIN=%{_bindir} \ + DEST_SHARE=%{_libexecdir}/p7zip \ + DEST_MAN=%{_mandir} + +# remove redundant DOC dir +mv %{buildroot}%{_docdir}/p7zip/DOC/* %{buildroot}%{_docdir}/p7zip +rmdir %{buildroot}%{_docdir}/p7zip/DOC/ + +%check +make test + +%files +%{_docdir}/p7zip +%exclude %{_docdir}/p7zip/MANUAL +%license copying.txt License.txt +%{_bindir}/7za +%dir %{_libexecdir}/p7zip/ +%{_libexecdir}/p7zip/7za +%{_libexecdir}/p7zip/7zCon.sfx +%{_mandir}/man1/7za.1* +%exclude %{_mandir}/man1/7zr.1* +%{_docdir}/p7zip/MANUAL +%doc contrib/ + +%files plugins +%{_bindir}/7z +%dir %{_libexecdir}/p7zip/ +%{_libexecdir}/p7zip/7z +%{_libexecdir}/p7zip/7z.so +%{_libexecdir}/p7zip/Codecs/ +#{_libexecdir}/p7zip/Formats/ +%{_mandir}/man1/7z.1* + +%changelog +* Wed Sep 2 2020 overweight - 16.02-1 +- Package init diff --git a/p7zip.yaml b/p7zip.yaml new file mode 100644 index 0000000000000000000000000000000000000000..00bbaf050db91e87f0ad529e5c29027a1bf150ae --- /dev/null +++ b/p7zip.yaml @@ -0,0 +1,4 @@ +version_control: NA +src_repo: NA +tag_prefix: NA +seperator: NA diff --git a/p7zip_16.02_src_all.tar.bz2 b/p7zip_16.02_src_all.tar.bz2 new file mode 100644 index 0000000000000000000000000000000000000000..e2e79435345603b9e72f0094181f0bf4b0fe9038 Binary files /dev/null and b/p7zip_16.02_src_all.tar.bz2 differ