[521] | 1 | %define src_ver 5.52 |
---|
| 2 | %define src_file unzip552 |
---|
| 3 | |
---|
| 4 | Summary: A utility for unpacking zip files. |
---|
| 5 | Summary(ja): zip ファイルを展開するユーティリティ |
---|
| 6 | Name: unzip |
---|
| 7 | Version: %{src_ver} |
---|
[3319] | 8 | Release: 3%{?_dist_release} |
---|
[521] | 9 | License: BSD |
---|
| 10 | Group: Applications/Archiving |
---|
| 11 | Source: ftp://ftp.info-zip.org/pub/infozip/src/%{src_file}.tar.gz |
---|
| 12 | Patch0: unzip542-rpmoptflags.patch |
---|
| 13 | |
---|
| 14 | Patch1: unzip-5.52-near-4GB.patch |
---|
| 15 | Patch2: unzip-5.52-near-4GB2.patch |
---|
| 16 | # Patch3: unzip-5.51-near-4GB3.patch |
---|
| 17 | Patch10: unzip-5.51-link-segv.patch |
---|
| 18 | Patch11: unzip-5.51-link-segv2.patch |
---|
| 19 | # Patch12: unzip-5.51-link-segv3.patch |
---|
| 20 | Patch13: unzip-5.52-open.patch |
---|
| 21 | |
---|
| 22 | Patch100: unzip-5.52_CVE-2005-4667.patch |
---|
| 23 | Patch110: unzip-5.52-deb-CVE-2008-0888.patch |
---|
| 24 | |
---|
| 25 | # http://www.coara.or.jp/~sudakyo/dasworksrpms.html#unzip |
---|
| 26 | Patch200: unzip-5.52-nls.patch |
---|
| 27 | |
---|
| 28 | URL: http://www.info-zip.org/pub/infozip/UnZip.html |
---|
| 29 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 30 | |
---|
| 31 | Vendor: Project Vine |
---|
| 32 | Distribution: Vine Linux |
---|
| 33 | |
---|
| 34 | %description |
---|
| 35 | The unzip utility is used to list, test, or extract files from a zip |
---|
| 36 | archive. Zip archives are commonly found on MS-DOS systems. The zip |
---|
| 37 | utility, included in the zip package, creates zip archives. Zip and |
---|
| 38 | unzip are both compatible with archives created by PKWARE(R)'s PKZIP |
---|
| 39 | for MS-DOS, but the programs' options and default behaviors do differ |
---|
| 40 | in some respects. |
---|
| 41 | |
---|
| 42 | Install the unzip package if you need to list, test or extract files from |
---|
| 43 | a zip archive. |
---|
| 44 | |
---|
| 45 | %description -l ja |
---|
| 46 | unzip ユーティリティは,zip アーカイブ内のファイルを一覧表示したり, |
---|
| 47 | テスト/展開する為に使うユーティリティです.zip アーカイブは MS-DOS |
---|
| 48 | システムで一般的に使われます. |
---|
| 49 | zip パッケージに含まれる zip プログラムは zip アーカイブを |
---|
| 50 | 作成するのに使います. |
---|
| 51 | zip と unzip は PKWARE(R) の MS-DOS 用 PKZIP で作成された zip アーカイブに |
---|
| 52 | 対応していますが,デフォルトの動作やプログラムオプション等一部が |
---|
| 53 | 異なります. |
---|
| 54 | |
---|
| 55 | |
---|
| 56 | %prep |
---|
| 57 | %setup -q |
---|
| 58 | %patch0 -p1 -b .rpmo |
---|
| 59 | %patch1 -p1 -b .4GB |
---|
| 60 | %patch2 -p1 -b .4GB2 |
---|
| 61 | # %patch3 -p1 -b .4GB3 |
---|
| 62 | |
---|
| 63 | %patch10 -p1 -b .link-segv |
---|
| 64 | %patch11 -p1 -b .morn |
---|
| 65 | # %patch12 -p1 -b .morn2 |
---|
| 66 | %patch13 -p1 -b .open |
---|
| 67 | |
---|
| 68 | %patch100 -p1 -b .CVE-2005-4667 |
---|
| 69 | %patch110 -p0 -b .CVE-2008-0888 |
---|
| 70 | |
---|
| 71 | %patch200 -p1 -b .nls |
---|
| 72 | |
---|
| 73 | ln -s unix/Makefile Makefile |
---|
| 74 | |
---|
| 75 | %build |
---|
| 76 | make LOCAL_UNZIP="-DNLS" CFLAGS="-D_LARGEFILE64_SOURCE" linux_noasm LF2="" |
---|
| 77 | |
---|
| 78 | |
---|
| 79 | %install |
---|
| 80 | [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT |
---|
| 81 | |
---|
| 82 | make prefix=$RPM_BUILD_ROOT%{_prefix} MANDIR=$RPM_BUILD_ROOT/%{_mandir}/man1 install LF2="" |
---|
| 83 | |
---|
| 84 | |
---|
| 85 | %clean |
---|
| 86 | [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT |
---|
| 87 | |
---|
| 88 | |
---|
| 89 | %files |
---|
| 90 | %defattr(-,root,root) |
---|
| 91 | %doc README BUGS LICENSE INSTALL |
---|
| 92 | %{_bindir}/* |
---|
| 93 | %{_mandir}/*/* |
---|
| 94 | |
---|
| 95 | |
---|
| 96 | %changelog |
---|
[3319] | 97 | * Tue Apr 5 2011 IWAI, Masaharu <iwai@alib.jp> 5.52-3vl6 |
---|
| 98 | - build on current VineSeed |
---|
| 99 | |
---|
[521] | 100 | * Wed Apr 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 5.52-2 |
---|
| 101 | - spec in utf-8 |
---|
| 102 | - add NLS patch |
---|
| 103 | |
---|
| 104 | * Wed Apr 09 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 5.52-1 |
---|
| 105 | - new upstream release |
---|
| 106 | - add patch13 from fc8 |
---|
| 107 | - update patches to fit new release & drop old patches |
---|
| 108 | - with new versioning polity |
---|
| 109 | |
---|
| 110 | * Wed Apr 09 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 5.51-11vl4 |
---|
| 111 | - fix changelog typo |
---|
| 112 | |
---|
| 113 | * Wed Apr 09 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 5.51-10vl4 |
---|
| 114 | - update patch100 to fix ppc issue (it was patch5, from rhel4) |
---|
| 115 | - renumber patchs |
---|
| 116 | - add patch 2,3 to support big archive (from rhel4) |
---|
| 117 | - with new versioning polity |
---|
| 118 | |
---|
| 119 | * Fri Mar 21 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 5.51-9vl1.1 |
---|
| 120 | - add patch5 for fix CVE-2005-4667 |
---|
| 121 | - add patch6 for fix CVE-2008-0888 |
---|
| 122 | - add Vendor/Distribution tag |
---|
| 123 | |
---|
| 124 | * Tue May 10 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.51-9vl1 |
---|
| 125 | - new upstream release |
---|
| 126 | - based on 5.51-9 Fedora development |
---|
| 127 | * Thu Feb 10 2005 Ivana Varekova <varekova@redhat.com> 5.51-9 |
---|
| 128 | - fix the other problem with unpacking zipfiles containing symlinks |
---|
| 129 | (bug #134073) |
---|
| 130 | * Thu Feb 03 2005 Ivana Varekova <varekova@redhat.com> 5.51-8 |
---|
| 131 | - fix segfault with unpacking of zipfiles containing dangling symlinks |
---|
| 132 | (bug #134073) |
---|
| 133 | * Thu Dec 02 2004 Lon Hohberger <lhh@redhat.com> 5.51-5 |
---|
| 134 | - Fix segfault on extraction of symlinks |
---|
| 135 | * Mon Jun 21 2004 Lon Hohberger <lhh@redhat.com> 5.51-4 |
---|
| 136 | - Extend max file/archive size to 2^32-8193 (4294959103) bytes |
---|
| 137 | * Tue Jun 08 2004 Lon Hohberger <lhh@redhat.com> 5.51-1.1 |
---|
| 138 | - Update to 5.51; remove dotdot patch. |
---|
| 139 | |
---|
| 140 | * Tue Sep 23 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.50-5vl2 |
---|
| 141 | - merged patch1 from Vine Linux 2.6 updates |
---|
| 142 | - Thu Aug 28 2003 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.50-4vl3 |
---|
| 143 | - replace patch1 from RedHat (RHSA-2003:199-02). |
---|
| 144 | |
---|
| 145 | - Fri Jul 18 2003 Kunio Murasawa <murasawa@fa2.so-net.ne.jp> 5.50-4vl2 |
---|
| 146 | - added patch1 from Redhat (RHSA-2003:199-01) |
---|
| 147 | |
---|
| 148 | |
---|
| 149 | * Sun Dec 1 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 5.50-5vl1 |
---|
| 150 | - modified changelog section :-P (merge rawhidee changelogs) |
---|
| 151 | |
---|
| 152 | - Sun Dec 1 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.50-4vl2 |
---|
| 153 | - rebuild with new toolchains |
---|
| 154 | |
---|
| 155 | - Sun May 26 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.50-4vl1 |
---|
| 156 | - based on 5.50-4 from Rawhide |
---|
| 157 | - previous Vine version was 5.41-3vl1: |
---|
| 158 | |
---|
| 159 | - Tue Dec 26 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org> |
---|
| 160 | - 5.41-3vl1 |
---|
| 161 | - based on 5.41-3 from Rawhide |
---|
| 162 | - added Japanese summary and description |
---|
| 163 | - use better macros |
---|
| 164 | |
---|
| 165 | * Fri Jun 21 2002 Tim Powers <timp@redhat.com> |
---|
| 166 | - automated rebuild |
---|
| 167 | |
---|
| 168 | * Thu May 23 2002 Tim Powers <timp@redhat.com> |
---|
| 169 | - automated rebuild |
---|
| 170 | |
---|
| 171 | * Thu Apr 25 2002 Trond Eivind Glomsr︰ <teg@redhat.com> 5.50-3 |
---|
| 172 | - Rebuild |
---|
| 173 | |
---|
| 174 | * Tue Apr 2 2002 Trond Eivind Glomsr︰ <teg@redhat.com> 5.50-2 |
---|
| 175 | - Make it not strip |
---|
| 176 | |
---|
| 177 | * Wed Mar 13 2002 Trond Eivind Glomsr︰ <teg@redhat.com> 5.50-1 |
---|
| 178 | - 5.50 |
---|
| 179 | |
---|
| 180 | * Thu Feb 21 2002 Trond Eivind Glomsr︰ <teg@redhat.com> 5.42-3 |
---|
| 181 | - Rebuild |
---|
| 182 | |
---|
| 183 | * Wed Jan 09 2002 Tim Powers <timp@redhat.com> |
---|
| 184 | - automated rebuild |
---|
| 185 | |
---|
| 186 | * Mon May 21 2001 Trond Eivind Glomsr︰ <teg@redhat.com> |
---|
| 187 | - 5.42 |
---|
| 188 | - Don't strip binaries explicitly |
---|
| 189 | - build without assembly, it doesn't seem to increase performance |
---|
| 190 | - make it respect RPM_OPT_FLAGS, define _GNU_SOURCE |
---|
| 191 | - use %%{_tmppath} |
---|
| 192 | - "License:" replaces "Copyright:" |
---|
| 193 | - Update URL |
---|
| 194 | - include zipgrep |
---|
| 195 | - COPYING doesn't exist anymore, include LICENSE instead |
---|
| 196 | |
---|
| 197 | * Thu Jul 13 2000 Prospector <bugzilla@redhat.com> |
---|
| 198 | - automatic rebuild |
---|
| 199 | |
---|
| 200 | * Sun Jun 11 2000 BIll Nottingham <notting@redhat.com> |
---|
| 201 | - rebuild in new env.; FHS fixes. |
---|
| 202 | |
---|
| 203 | * Tue Apr 18 2000 Bernhard Rosenkraenzer <bero@redhat.com> |
---|
| 204 | - 4.51 (an acceptable license at last...) |
---|
| 205 | |
---|
| 206 | * Thu Feb 3 2000 Bill Nottingham <notting@redhat.com> |
---|
| 207 | - handle compressed man pages |
---|
| 208 | |
---|
| 209 | * Fri Jul 30 1999 Bill Nottingham <notting@redhat.com> |
---|
| 210 | - update to 5.40 |
---|
| 211 | |
---|
| 212 | * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> |
---|
| 213 | - auto rebuild in the new build environment (release 5) |
---|
| 214 | |
---|
| 215 | * Thu Dec 17 1998 Michael Maher <mike@redhat.com> |
---|
| 216 | - built for 6.0 |
---|
| 217 | |
---|
| 218 | * Tue Aug 11 1998 Jeff Johnson <jbj@redhat.com> |
---|
| 219 | - build root |
---|
| 220 | |
---|
| 221 | * Mon Apr 27 1998 Prospector System <bugs@redhat.com> |
---|
| 222 | - translations modified for de, fr, tr |
---|
| 223 | |
---|
| 224 | * Tue Oct 21 1997 Erik Troan <ewt@redhat.com> |
---|
| 225 | - builds on non i386 platforms |
---|
| 226 | |
---|
| 227 | * Mon Oct 20 1997 Otto Hammersmith <otto@redhat.com> |
---|
| 228 | - updated the version |
---|
| 229 | |
---|
| 230 | * Thu Jul 10 1997 Erik Troan <ewt@redhat.com> |
---|
| 231 | - built against glibc |
---|
| 232 | |
---|