[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 |
---|
[12499] | 7 | Release: 8%{?_dist_release} |
---|
[12491] | 8 | Group: accessories |
---|
| 9 | Vendor: Project Vine |
---|
| 10 | Distribution: Vine Linux |
---|
| 11 | Packager: daisuke |
---|
| 12 | |
---|
[521] | 13 | License: BSD |
---|
[8468] | 14 | URL: http://www.info-zip.org/UnZip.html |
---|
| 15 | Source: http://downloads.sourceforge.net/infozip/%{src_file}.tar.gz |
---|
[521] | 16 | |
---|
[8468] | 17 | # Not sent to upstream. |
---|
| 18 | Patch1: unzip-6.0-bzip2-configure.patch |
---|
| 19 | # Upstream plans to do this in zip (hopefully also in unzip). |
---|
| 20 | Patch2: unzip-6.0-exec-shield.patch |
---|
| 21 | # Upstream plans to do similar thing. |
---|
| 22 | Patch3: unzip-6.0-close.patch |
---|
| 23 | # Details in rhbz#532380. |
---|
| 24 | # Reported to upstream: http://www.info-zip.org/board/board.pl?m-1259575993/ |
---|
| 25 | Patch4: unzip-6.0-attribs-overflow.patch |
---|
| 26 | # Not sent to upstream, as it's Fedora/RHEL specific. |
---|
[12491] | 27 | # Modify the configure script to accept var LFLAGS2 so linking can be configurable |
---|
| 28 | # from the spec file. In addition '-s' is still removed as before |
---|
| 29 | Patch5: unzip-6.0-configure.patch |
---|
[8468] | 30 | Patch6: unzip-6.0-manpage-fix.patch |
---|
| 31 | # Update match.c with recmatch() from zip 3.0's util.c |
---|
| 32 | # This also resolves the license issue in that old function. |
---|
| 33 | # Original came from here: https://projects.parabolagnulinux.org/abslibre.git/plain/libre/unzip-libre/match.patch |
---|
| 34 | Patch7: unzip-6.0-fix-recmatch.patch |
---|
| 35 | # Update process.c |
---|
| 36 | Patch8: unzip-6.0-symlink.patch |
---|
[9273] | 37 | # change using of macro "case_map" by "to_up" |
---|
| 38 | Patch9: unzip-6.0-caseinsensitive.patch |
---|
| 39 | # downstream fix for "-Werror=format-security" |
---|
| 40 | # upstream doesn't want hear about this option again |
---|
| 41 | Patch10: unzip-6.0-format-secure.patch |
---|
[12491] | 42 | |
---|
[9273] | 43 | Patch11: unzip-6.0-valgrind.patch |
---|
| 44 | Patch12: unzip-6.0-x-option.patch |
---|
[12491] | 45 | Patch13: unzip-6.0-overflow.patch |
---|
| 46 | Patch14: unzip-6.0-cve-2014-8139.patch |
---|
| 47 | Patch15: unzip-6.0-cve-2014-8140.patch |
---|
| 48 | Patch16: unzip-6.0-cve-2014-8141.patch |
---|
| 49 | Patch17: unzip-6.0-overflow-long-fsize.patch |
---|
[521] | 50 | |
---|
[12120] | 51 | # Fix heap overflow and infinite loop when invalid input is given (#1260947) |
---|
| 52 | Patch18: unzip-6.0-heap-overflow-infloop.patch |
---|
| 53 | |
---|
[12491] | 54 | # support non-{latin,unicode} encoding |
---|
| 55 | Patch19: unzip-6.0-alt-iconv-utf8.patch |
---|
| 56 | Patch20: unzip-6.0-alt-iconv-utf8-print.patch |
---|
[12120] | 57 | Patch21: 0001-Fix-CVE-2016-9844-rhbz-1404283.patch |
---|
| 58 | |
---|
| 59 | # restore unix timestamp accurately |
---|
| 60 | Patch22: unzip-6.0-timestamp.patch |
---|
| 61 | |
---|
| 62 | # fix possible heap based stack overflow in passwd protected files |
---|
| 63 | Patch23: unzip-6.0-cve-2018-1000035-heap-based-overflow.patch |
---|
| 64 | |
---|
| 65 | Patch24: unzip-6.0-cve-2018-18384.patch |
---|
| 66 | |
---|
[12491] | 67 | # covscan issues |
---|
| 68 | Patch25: unzip-6.0-COVSCAN-fix-unterminated-string.patch |
---|
[12120] | 69 | |
---|
[12491] | 70 | Patch26: unzip-zipbomb-part1.patch |
---|
| 71 | Patch27: unzip-zipbomb-part2.patch |
---|
| 72 | Patch28: unzip-zipbomb-part3.patch |
---|
| 73 | Patch29: unzip-zipbomb-manpage.patch |
---|
[12499] | 74 | # https://github.com/madler/unzip/commit/13f0260beae851f7d5dd96e9ef757d8d6d7daac1 |
---|
| 75 | Patch30: unzip-6.0-fix-false-overlap-detection-on-32bit-systems.patch |
---|
| 76 | # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=963996 |
---|
| 77 | Patch31: unzip-fix-buffer-length.patch |
---|
[12491] | 78 | |
---|
[8468] | 79 | # japanese charset support |
---|
| 80 | # https://gist.github.com/hamano/573753 |
---|
| 81 | Patch200: unzip-6.0-japanese_charset.patch |
---|
[8729] | 82 | # just ignore -E option, older nls patch use this. |
---|
[8468] | 83 | Patch201: unzip-6.0-ignore-E-option.patch |
---|
[8729] | 84 | # support ja_JP.utf8 locale |
---|
| 85 | Patch202: unzip-6.0-japanese_charset-utf8.patch |
---|
[521] | 86 | |
---|
| 87 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[12120] | 88 | BuildRequires: bzip2-devel, gcc |
---|
[521] | 89 | |
---|
| 90 | %description |
---|
| 91 | The unzip utility is used to list, test, or extract files from a zip |
---|
| 92 | archive. Zip archives are commonly found on MS-DOS systems. The zip |
---|
| 93 | utility, included in the zip package, creates zip archives. Zip and |
---|
| 94 | unzip are both compatible with archives created by PKWARE(R)'s PKZIP |
---|
| 95 | for MS-DOS, but the programs' options and default behaviors do differ |
---|
| 96 | in some respects. |
---|
| 97 | |
---|
| 98 | Install the unzip package if you need to list, test or extract files from |
---|
| 99 | a zip archive. |
---|
| 100 | |
---|
| 101 | %description -l ja |
---|
| 102 | unzip ユーティリティは,zip アーカイブ内のファイルを一覧表示したり, |
---|
| 103 | テスト/展開する為に使うユーティリティです.zip アーカイブは MS-DOS |
---|
| 104 | システムで一般的に使われます. |
---|
| 105 | zip パッケージに含まれる zip プログラムは zip アーカイブを |
---|
| 106 | 作成するのに使います. |
---|
| 107 | zip と unzip は PKWARE(R) の MS-DOS 用 PKZIP で作成された zip アーカイブに |
---|
| 108 | 対応していますが,デフォルトの動作やプログラムオプション等一部が |
---|
| 109 | 異なります. |
---|
| 110 | |
---|
| 111 | |
---|
[12499] | 112 | %debug_package |
---|
[12491] | 113 | |
---|
[12499] | 114 | |
---|
[521] | 115 | %prep |
---|
[8468] | 116 | %setup -q -n %{src_file} |
---|
[12491] | 117 | %patch1 -p1 |
---|
| 118 | %patch2 -p1 |
---|
| 119 | %patch3 -p1 |
---|
| 120 | %patch4 -p1 |
---|
| 121 | %patch5 -p1 |
---|
| 122 | %patch6 -p1 |
---|
| 123 | %patch7 -p1 |
---|
| 124 | %patch8 -p1 |
---|
| 125 | %patch9 -p1 |
---|
| 126 | %patch10 -p1 |
---|
| 127 | %patch11 -p1 |
---|
| 128 | %patch12 -p1 |
---|
| 129 | %patch13 -p1 |
---|
| 130 | %patch14 -p1 |
---|
| 131 | %patch15 -p1 |
---|
| 132 | %patch16 -p1 |
---|
| 133 | %patch17 -p1 |
---|
| 134 | %patch18 -p1 |
---|
| 135 | %patch19 -p1 |
---|
| 136 | %patch20 -p1 |
---|
| 137 | %patch21 -p1 |
---|
| 138 | %patch22 -p1 |
---|
| 139 | %patch23 -p1 |
---|
| 140 | %patch24 -p1 |
---|
| 141 | %patch25 -p1 |
---|
[521] | 142 | |
---|
[12491] | 143 | %patch26 -p1 |
---|
| 144 | %patch27 -p1 |
---|
| 145 | %patch28 -p1 |
---|
| 146 | %patch29 -p1 |
---|
[12499] | 147 | %patch30 -p1 |
---|
| 148 | %patch31 -p1 |
---|
[9273] | 149 | |
---|
[8468] | 150 | %patch200 -p1 -b .jp |
---|
| 151 | %patch201 -p1 -b .ignore-E |
---|
[8729] | 152 | %patch202 -p1 -b .utf8 |
---|
[521] | 153 | |
---|
| 154 | |
---|
| 155 | %build |
---|
[12499] | 156 | make -f unix/Makefile \ |
---|
| 157 | CF_NOOPT="-I. -DUNIX $RPM_OPT_FLAGS -DNOMEMCPY -DIZ_HAVE_UXUIDGID -DNO_LCHMOD -D_MBCS" \ |
---|
| 158 | LFLAGS2="%{?__global_ldflags}" \ |
---|
| 159 | generic_gcc |
---|
[521] | 160 | |
---|
[12491] | 161 | |
---|
[521] | 162 | %install |
---|
| 163 | [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT |
---|
[12499] | 164 | make -f unix/Makefile prefix=$RPM_BUILD_ROOT%{_prefix} MANDIR=$RPM_BUILD_ROOT/%{_mandir}/man1 INSTALL="cp -p" install |
---|
[521] | 165 | |
---|
| 166 | |
---|
| 167 | %clean |
---|
| 168 | [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT |
---|
| 169 | |
---|
| 170 | |
---|
| 171 | %files |
---|
| 172 | %defattr(-,root,root) |
---|
[12491] | 173 | %license LICENSE |
---|
| 174 | %doc README BUGS INSTALL |
---|
[521] | 175 | %{_bindir}/* |
---|
| 176 | %{_mandir}/*/* |
---|
| 177 | |
---|
| 178 | |
---|
| 179 | %changelog |
---|
[12499] | 180 | * Wed Sep 23 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 6.0-8 |
---|
| 181 | - added Patch31. |
---|
| 182 | - changed options for make. |
---|
| 183 | |
---|
| 184 | * Wed Sep 23 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 6.0-7 |
---|
| 185 | - imported Patch30 from gentoo. |
---|
| 186 | |
---|
[12491] | 187 | * Sun Sep 13 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 6.0-6 |
---|
| 188 | - re-imported Patch1-29 from rawhide. |
---|
| 189 | |
---|
[12120] | 190 | * Sun May 19 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 6.0-5 |
---|
| 191 | - imported Patch17-18, 21-24 from rawhide. |
---|
| 192 | - replaced Patch100-120 to rawhide's one. |
---|
| 193 | |
---|
[9397] | 194 | * Sun Feb 8 2015 IWAI, Masaharu <iwaim.sub@gmail.com> 6.0-4 |
---|
| 195 | - add Patch130 for CVE-2014-9636 (heap overflow) |
---|
| 196 | |
---|
[9273] | 197 | * Sun Jan 18 2015 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 6.0-3 |
---|
| 198 | - add Patch100 for fix CVE-2014-8139 (crc-overflow) |
---|
| 199 | - add Patch110 for fix CVE-2014-8140 (test-compr-eb) |
---|
| 200 | - add Patch120 for fix CVE-2014-8141 (getzip64data) |
---|
| 201 | - add Patch9-12 from fc22 |
---|
| 202 | |
---|
[8729] | 203 | * Thu Jul 03 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 6.0-2 |
---|
| 204 | - add patch202 to support ja_JP.utf8 |
---|
| 205 | |
---|
[8468] | 206 | * Thu May 22 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 6.0-1 |
---|
| 207 | - update to 6.0 |
---|
| 208 | - replace nls patch. |
---|
| 209 | |
---|
[3319] | 210 | * Tue Apr 5 2011 IWAI, Masaharu <iwai@alib.jp> 5.52-3vl6 |
---|
| 211 | - build on current VineSeed |
---|
| 212 | |
---|
[521] | 213 | * Wed Apr 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 5.52-2 |
---|
| 214 | - spec in utf-8 |
---|
| 215 | - add NLS patch |
---|
| 216 | |
---|
| 217 | * Wed Apr 09 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 5.52-1 |
---|
| 218 | - new upstream release |
---|
| 219 | - add patch13 from fc8 |
---|
| 220 | - update patches to fit new release & drop old patches |
---|
| 221 | - with new versioning polity |
---|
| 222 | |
---|
| 223 | * Wed Apr 09 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 5.51-11vl4 |
---|
| 224 | - fix changelog typo |
---|
| 225 | |
---|
| 226 | * Wed Apr 09 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 5.51-10vl4 |
---|
| 227 | - update patch100 to fix ppc issue (it was patch5, from rhel4) |
---|
| 228 | - renumber patchs |
---|
| 229 | - add patch 2,3 to support big archive (from rhel4) |
---|
| 230 | - with new versioning polity |
---|
| 231 | |
---|
| 232 | * Fri Mar 21 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 5.51-9vl1.1 |
---|
| 233 | - add patch5 for fix CVE-2005-4667 |
---|
| 234 | - add patch6 for fix CVE-2008-0888 |
---|
| 235 | - add Vendor/Distribution tag |
---|
| 236 | |
---|
| 237 | * Tue May 10 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.51-9vl1 |
---|
| 238 | - new upstream release |
---|
| 239 | - based on 5.51-9 Fedora development |
---|
| 240 | * Thu Feb 10 2005 Ivana Varekova <varekova@redhat.com> 5.51-9 |
---|
| 241 | - fix the other problem with unpacking zipfiles containing symlinks |
---|
| 242 | (bug #134073) |
---|
| 243 | * Thu Feb 03 2005 Ivana Varekova <varekova@redhat.com> 5.51-8 |
---|
| 244 | - fix segfault with unpacking of zipfiles containing dangling symlinks |
---|
| 245 | (bug #134073) |
---|
| 246 | * Thu Dec 02 2004 Lon Hohberger <lhh@redhat.com> 5.51-5 |
---|
| 247 | - Fix segfault on extraction of symlinks |
---|
| 248 | * Mon Jun 21 2004 Lon Hohberger <lhh@redhat.com> 5.51-4 |
---|
| 249 | - Extend max file/archive size to 2^32-8193 (4294959103) bytes |
---|
| 250 | * Tue Jun 08 2004 Lon Hohberger <lhh@redhat.com> 5.51-1.1 |
---|
| 251 | - Update to 5.51; remove dotdot patch. |
---|
| 252 | |
---|
| 253 | * Tue Sep 23 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.50-5vl2 |
---|
| 254 | - merged patch1 from Vine Linux 2.6 updates |
---|
| 255 | - Thu Aug 28 2003 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.50-4vl3 |
---|
| 256 | - replace patch1 from RedHat (RHSA-2003:199-02). |
---|
| 257 | |
---|
| 258 | - Fri Jul 18 2003 Kunio Murasawa <murasawa@fa2.so-net.ne.jp> 5.50-4vl2 |
---|
| 259 | - added patch1 from Redhat (RHSA-2003:199-01) |
---|
| 260 | |
---|
| 261 | |
---|
| 262 | * Sun Dec 1 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 5.50-5vl1 |
---|
| 263 | - modified changelog section :-P (merge rawhidee changelogs) |
---|
| 264 | |
---|
| 265 | - Sun Dec 1 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.50-4vl2 |
---|
| 266 | - rebuild with new toolchains |
---|
| 267 | |
---|
| 268 | - Sun May 26 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.50-4vl1 |
---|
| 269 | - based on 5.50-4 from Rawhide |
---|
| 270 | - previous Vine version was 5.41-3vl1: |
---|
| 271 | |
---|
| 272 | - Tue Dec 26 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org> |
---|
| 273 | - 5.41-3vl1 |
---|
| 274 | - based on 5.41-3 from Rawhide |
---|
| 275 | - added Japanese summary and description |
---|
| 276 | - use better macros |
---|
| 277 | |
---|
| 278 | * Fri Jun 21 2002 Tim Powers <timp@redhat.com> |
---|
| 279 | - automated rebuild |
---|
| 280 | |
---|
| 281 | * Thu May 23 2002 Tim Powers <timp@redhat.com> |
---|
| 282 | - automated rebuild |
---|
| 283 | |
---|
| 284 | * Thu Apr 25 2002 Trond Eivind Glomsr︰ <teg@redhat.com> 5.50-3 |
---|
| 285 | - Rebuild |
---|
| 286 | |
---|
| 287 | * Tue Apr 2 2002 Trond Eivind Glomsr︰ <teg@redhat.com> 5.50-2 |
---|
| 288 | - Make it not strip |
---|
| 289 | |
---|
| 290 | * Wed Mar 13 2002 Trond Eivind Glomsr︰ <teg@redhat.com> 5.50-1 |
---|
| 291 | - 5.50 |
---|
| 292 | |
---|
| 293 | * Thu Feb 21 2002 Trond Eivind Glomsr︰ <teg@redhat.com> 5.42-3 |
---|
| 294 | - Rebuild |
---|
| 295 | |
---|
| 296 | * Wed Jan 09 2002 Tim Powers <timp@redhat.com> |
---|
| 297 | - automated rebuild |
---|
| 298 | |
---|
| 299 | * Mon May 21 2001 Trond Eivind Glomsr︰ <teg@redhat.com> |
---|
| 300 | - 5.42 |
---|
| 301 | - Don't strip binaries explicitly |
---|
| 302 | - build without assembly, it doesn't seem to increase performance |
---|
| 303 | - make it respect RPM_OPT_FLAGS, define _GNU_SOURCE |
---|
| 304 | - use %%{_tmppath} |
---|
| 305 | - "License:" replaces "Copyright:" |
---|
| 306 | - Update URL |
---|
| 307 | - include zipgrep |
---|
| 308 | - COPYING doesn't exist anymore, include LICENSE instead |
---|
| 309 | |
---|
| 310 | * Thu Jul 13 2000 Prospector <bugzilla@redhat.com> |
---|
| 311 | - automatic rebuild |
---|
| 312 | |
---|
| 313 | * Sun Jun 11 2000 BIll Nottingham <notting@redhat.com> |
---|
| 314 | - rebuild in new env.; FHS fixes. |
---|
| 315 | |
---|
| 316 | * Tue Apr 18 2000 Bernhard Rosenkraenzer <bero@redhat.com> |
---|
| 317 | - 4.51 (an acceptable license at last...) |
---|
| 318 | |
---|
| 319 | * Thu Feb 3 2000 Bill Nottingham <notting@redhat.com> |
---|
| 320 | - handle compressed man pages |
---|
| 321 | |
---|
| 322 | * Fri Jul 30 1999 Bill Nottingham <notting@redhat.com> |
---|
| 323 | - update to 5.40 |
---|
| 324 | |
---|
| 325 | * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> |
---|
| 326 | - auto rebuild in the new build environment (release 5) |
---|
| 327 | |
---|
| 328 | * Thu Dec 17 1998 Michael Maher <mike@redhat.com> |
---|
| 329 | - built for 6.0 |
---|
| 330 | |
---|
| 331 | * Tue Aug 11 1998 Jeff Johnson <jbj@redhat.com> |
---|
| 332 | - build root |
---|
| 333 | |
---|
| 334 | * Mon Apr 27 1998 Prospector System <bugs@redhat.com> |
---|
| 335 | - translations modified for de, fr, tr |
---|
| 336 | |
---|
| 337 | * Tue Oct 21 1997 Erik Troan <ewt@redhat.com> |
---|
| 338 | - builds on non i386 platforms |
---|
| 339 | |
---|
| 340 | * Mon Oct 20 1997 Otto Hammersmith <otto@redhat.com> |
---|
| 341 | - updated the version |
---|
| 342 | |
---|
| 343 | * Thu Jul 10 1997 Erik Troan <ewt@redhat.com> |
---|
| 344 | - built against glibc |
---|
| 345 | |
---|