p7zip-vl.spec 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. Summary: A file archiver with very high compression ratio
  2. Summary(ja): 非常に圧縮率の高いファイルアーカイバ
  3. Name: p7zip
  4. Version: 16.02
  5. Release: 1%{?_dist_release}
  6. Group: accessories
  7. Vendor: Project Vine
  8. Distribution: Vine Linux
  9. License: LGPLv2 and (LGPLv2+ or CPL)
  10. URL: http://p7zip.sourceforge.net/
  11. # RAR sources removed since their license is incompatible with the LGPL
  12. #Source: http://downloads.sf.net/p7zip/p7zip_%%{version}_src_all.tar.bz2
  13. # export VERSION=15.14.1
  14. # wget http://downloads.sf.net/p7zip/p7zip_${VERSION}_src_all.tar.bz2
  15. # tar xjvf p7zip_${VERSION}_src_all.tar.bz2
  16. # rm -rf p7zip_${VERSION}/CPP/7zip/{Archive,Compress,Crypto,QMAKE}/Rar*
  17. # rm p7zip_${VERSION}/DOC/unRarLicense.txt
  18. # tar --numeric-owner -cjvf p7zip_${VERSION}_src_all-norar.tar.bz2 p7zip_${VERSION}
  19. Source: p7zip_%{version}_src_all-norar.tar.bz2
  20. Patch0: p7zip_15.14-norar_cmake.patch
  21. # from Debian
  22. Patch4: p7zip-manpages.patch
  23. Patch5: 02-man.patch
  24. Patch6: CVE-2016-9296.patch
  25. Patch7: 05-hardening-flags.patch
  26. Patch10: CVE-2017-17969.patch
  27. Patch11: 14-Fix-g++-warning.patch
  28. Patch12: gcc10-conversion.patch
  29. Buildroot: %{_tmppath}/%{name}-%{version}-root
  30. BuildRequires: cmake
  31. %ifarch %{ix86}
  32. BuildRequires: nasm
  33. %endif
  34. %ifarch x86_64
  35. BuildRequires: yasm
  36. %endif
  37. %description
  38. p7zip is a port of 7-Zip for POSIX systems like Unix (Linux, Solaris,
  39. OpenBSD, FreeBSD, Cygwin, ...), MacOS X and BeOS.
  40. 7-Zip is a file archiver with high compression ratio. The program
  41. supports 7z, ZIP, CAB, RAR, ARJ, LZH, GZIP, BZIP2, Z, TAR, CPIO, RPM,
  42. and DEB formats. Compression ratio in the new 7z format is 30-50% better
  43. than ratio in ZIP format.
  44. %description -l ja
  45. p7zip は 7-Zip を UNIX (Linux, Solaris, OpenBSD, FreeBSD 等), MacOS X
  46. や BeOS のような POSIX システムに移植したものです。
  47. 7-Zip は圧縮率の高いファイルアーカイバで、7z, ZIP, CAB, RAR, ARJ, LZH,
  48. GZIP, BZIP2, Z, TAR, CPIO, RPM, DEB フォーマットをサポートしています。
  49. 新しい 7z フォーマットで圧縮すると、ZIP フォーマットで圧縮するよりも、
  50. 圧縮率が 30〜50% 向上します。
  51. %package plugins
  52. Summary: Additional plugins for p7zip
  53. Summary(ja): p7zip の追加プラグイン
  54. Group: accessories
  55. Requires: %{name} = %{version}
  56. %description plugins
  57. Additional plugins that can be used with 7z to extend its abilities.
  58. This package contains also a virtual file system for Midnight Commander.
  59. %description -l ja plugins
  60. このパッケージには 7z の機能を拡張するための追加が含まれています。
  61. また、Midnight Commander のための仮想ファイルシステムも含まれています。
  62. %debug_package
  63. %prep
  64. %autosetup -p1 -n %{name}_%{version}
  65. # move license files
  66. mv DOC/License.txt DOC/copying.txt .
  67. %build
  68. pushd CPP/7zip/CMAKE/
  69. sh ./generate.sh
  70. popd
  71. %ifarch %{ix86}
  72. cp -f makefile.linux_x86_asm_gcc_4.X makefile.machine
  73. %endif
  74. %ifarch x86_64
  75. cp -f makefile.linux_amd64_asm makefile.machine
  76. %endif
  77. make %{?_smp_mflags} all2 \
  78. OPTFLAGS="%{optflags}" \
  79. DEST_HOME=%{_prefix} \
  80. DEST_BIN=%{_bindir} \
  81. DEST_SHARE=%{_libdir}/p7zip \
  82. DEST_MAN=%{_mandir}
  83. %install
  84. %__rm -rf %{buildroot}
  85. make install \
  86. DEST_DIR=%{buildroot} \
  87. DEST_HOME=%{_prefix} \
  88. DEST_BIN=%{_bindir} \
  89. DEST_SHARE=%{_libdir}/p7zip \
  90. DEST_MAN=%{_mandir}
  91. # remove redundant DOC dir
  92. mv %{buildroot}%{_docdir}/p7zip/DOC/* %{buildroot}%{_docdir}/p7zip
  93. rmdir %{buildroot}%{_docdir}/p7zip/DOC/
  94. %check
  95. %__make test
  96. %clean
  97. %__rm -rf %{buildroot}
  98. %files
  99. %defattr(-,root,root)
  100. %{_docdir}/p7zip
  101. %license copying.txt License.txt
  102. %{_bindir}/7za
  103. %dir %{_libdir}/p7zip/
  104. %{_libdir}/p7zip/7za
  105. %{_libdir}/p7zip/7zCon.sfx
  106. %{_mandir}/man1/7za.1*
  107. %exclude %{_mandir}/man1/7zr.1*
  108. %files plugins
  109. %defattr(-,root,root)
  110. %doc contrib/
  111. %{_bindir}/7z
  112. %dir %{_libdir}/p7zip/
  113. %{_libdir}/p7zip/7z
  114. %{_libdir}/p7zip/7z.so
  115. #{_libdir}/p7zip/Codecs/
  116. #{_libdir}/p7zip/Formats/
  117. %{_mandir}/man1/7z.1*
  118. %changelog
  119. * Sun Sep 13 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 16.02-1
  120. - new upstream release.
  121. - imported Patch4, 6-12 from rawhide.
  122. * Tue Jul 5 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 15.14.1-2
  123. - rebuilt with new toolchain.
  124. * Wed Apr 6 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 15.14.1-1
  125. - new upstream release.
  126. * Sat May 24 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> 9.20.1-2
  127. - rebuilt with new toolchain
  128. * Wed May 11 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 9.20.1-1
  129. - new upstream release
  130. - added patch0,1,2 from Debian
  131. - deleted rar archive support in - plugins
  132. * Wed Jun 9 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 9.13-1
  133. - new upstream release
  134. * Sun Jun 21 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 9.04-1vl5
  135. - new upstream release
  136. * Sat Feb 28 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 4.65-1vl5
  137. - new upstream release
  138. - fixed %files plugins
  139. * Thu Oct 09 2008 Shu KONNO <owa@bg.wakwak.com> 4.58-1vl5
  140. - new upstream release
  141. - applied new versioning policy, spec in utf-8
  142. * Mon Jul 30 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.51-0vl1
  143. - rebuilt with new toolchain
  144. - new upstream release
  145. * Wed Feb 07 2007 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 4.44-0vl1
  146. - upstream release
  147. * Sat Oct 14 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 4.43-0vl1
  148. - upstream release
  149. * Fri Jul 14 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 4.42-0vl1
  150. - upstream release
  151. * Sat Apr 15 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 4.39-0vl1
  152. - upstream release
  153. * Thu Apr 06 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 4.37-0vl1
  154. - upstream release
  155. * Mon Feb 27 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 4.33-0vl1
  156. - upstream release
  157. * Tue Jan 17 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 4.30-0vl1
  158. - upstream release
  159. * Mon Oct 24 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 4.29-0vl2
  160. - separate plugins package like FC
  161. * Wed Oct 19 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 4.29-0vl1
  162. - upstream release
  163. * Sat Sep 17 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 4.20-0vl1
  164. - initial build