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