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