p7zip-vl.spec 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. Summary: A file archiver with very high compression ratio
  2. Summary(ja): 非常に圧縮率の高いファイルアーカイバ
  3. Name: p7zip
  4. Version: 9.04
  5. Release: 1%{?_dist_release}
  6. License: LGPL
  7. Group: Applications/Archiving
  8. URL: http://p7zip.sourceforge.net/
  9. Source0 http://prdownloads.sourceforge.net/p7zip/p7zip_%{version}_src_all.tar.bz2
  10. Buildroot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: perl
  12. Vendor: Project Vine
  13. Distribution: Vine Linux
  14. %description
  15. p7zip is a port of 7-Zip for POSIX systems like Unix (Linux, Solaris,
  16. OpenBSD, FreeBSD, Cygwin, ...), MacOS X and BeOS.
  17. 7-Zip is a file archiver with high compression ratio. The program
  18. supports 7z, ZIP, CAB, RAR, ARJ, LZH, GZIP, BZIP2, Z, TAR, CPIO, RPM,
  19. and DEB formats. Compression ratio in the new 7z format is 30-50% better
  20. than ratio in ZIP format.
  21. %description -l ja
  22. p7zip は 7-Zip を UNIX (Linux, Solaris, OpenBSD, FreeBSD 等), MacOS X
  23. や BeOS のような POSIX システムに移植したものです。
  24. 7-Zip は圧縮率の高いファイルアーカイバで、7z, ZIP, CAB, RAR, ARJ, LZH,
  25. GZIP, BZIP2, Z, TAR, CPIO, RPM, DEB フォーマットをサポートしています。
  26. 新しい 7z フォーマットで圧縮すると、ZIP フォーマットで圧縮するよりも、
  27. 圧縮率が 30〜50% 向上します。
  28. %package plugins
  29. Summary: Additional plugins for p7zip
  30. Summary(ja): p7zip の追加プラグイン
  31. Group: Applications/Archiving
  32. Requires: %{name} = %{version}
  33. %description plugins
  34. Additional plugins that can be used with 7z to extend its abilities.
  35. This package contains also a virtual file system for Midnight Commander.
  36. %description -l ja plugins
  37. このパッケージには 7z の機能を拡張するための追加が含まれています。
  38. また、Midnight Commander のための仮想ファイルシステムも含まれています。
  39. %prep
  40. %setup -q -n %{name}_%{version}
  41. %ifarch %{ix86} ppc alpha
  42. %__cp -f makefile.linux_x86_ppc_alpha makefile.machine
  43. %endif
  44. %ifarch x86_64
  45. %__cp -f makefile.linux_amd64 makefile.machine
  46. %endif
  47. #%__perl -p -i -e 's/ -O2.*/ %{optflags} \\/' \
  48. %__perl -p -i -e 's/(OPTFLAGS=).*/\1%{optflags}/' \
  49. makefile.machine
  50. %build
  51. %__make %{?_smp_mflags} all2
  52. %check
  53. %__make test
  54. %install
  55. %__rm -rf %{buildroot}
  56. # create directories
  57. %__mkdir_p %{buildroot}%{_bindir}
  58. %__mkdir_p %{buildroot}%{_libdir}/%{name}
  59. %__mkdir_p %{buildroot}%{_mandir}
  60. # install libraries
  61. %__tar cfC - bin . | %__tar xfC - %{buildroot}%{_libdir}/%{name}
  62. # install man pages
  63. %__tar cf - man* | %__tar xfC - %{buildroot}%{_mandir}
  64. # install wrapper script for 7z
  65. %__cat << EOF > %{buildroot}%{_bindir}/7z
  66. #!/bin/sh
  67. exec %{_libdir}/%{name}/7z "\$@"
  68. EOF
  69. %__chmod 755 %{buildroot}%{_bindir}/7z
  70. # install wrapper script for 7za
  71. %__cat << EOF > %{buildroot}%{_bindir}/7za
  72. #!/bin/sh
  73. exec %{_libdir}/%{name}/7za "\$@"
  74. EOF
  75. %__chmod 755 %{buildroot}%{_bindir}/7za
  76. %clean
  77. %__rm -rf %{buildroot}
  78. %files
  79. %defattr(-,root,root)
  80. %doc ChangeLog README TODO DOCS
  81. %{_bindir}/7za
  82. %dir %{_libdir}/%{name}
  83. %{_libdir}/%{name}/7za
  84. %{_libdir}/%{name}/7zCon.sfx
  85. %{_mandir}/man*/7za.*
  86. %files plugins
  87. %defattr(-,root,root)
  88. %doc contrib
  89. %{_bindir}/7z
  90. %{_libdir}/%{name}/7z
  91. %{_libdir}/%{name}/7z.so
  92. %{_libdir}/%{name}/Codecs
  93. #{_libdir}/%{name}/Formats
  94. %{_mandir}/man*/*
  95. %changelog
  96. * Sun Jun 21 2009 toshiharu Kudoh <toshi.kd2@gmail.com> 9.04-1vl5
  97. - new upstream release
  98. * Sat Feb 28 2009 toshiharu Kudoh <toshi.kd2@gmail.com> 4.65-1vl5
  99. - new upstream release
  100. - fixed %files plugins
  101. * Thu Oct 09 2008 Shu KONNO <owa@bg.wakwak.com> 4.58-1vl5
  102. - new upstream release
  103. - applied new versioning policy, spec in utf-8
  104. * Mon Jul 30 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.51-0vl1
  105. - rebuilt with new toolchain
  106. - new upstream release
  107. * Wed Feb 07 2007 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 4.44-0vl1
  108. - upstream release
  109. * Sat Oct 14 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 4.43-0vl1
  110. - upstream release
  111. * Fri Jul 14 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 4.42-0vl1
  112. - upstream release
  113. * Sat Apr 15 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 4.39-0vl1
  114. - upstream release
  115. * Thu Apr 06 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 4.37-0vl1
  116. - upstream release
  117. * Mon Feb 27 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 4.33-0vl1
  118. - upstream release
  119. * Tue Jan 17 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 4.30-0vl1
  120. - upstream release
  121. * Mon Oct 24 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 4.29-0vl2
  122. - separate plugins package like FC
  123. * Wed Oct 19 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 4.29-0vl1
  124. - upstream release
  125. * Sat Sep 17 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 4.20-0vl1
  126. - initial build