source: projects/specs/trunk/u/unzip/unzip-vl.spec @ 12499

Revision 12499, 10.6 KB checked in by tomop, 3 months ago (diff)

updated 9 packages

LibRaw?-0.20.0-2

exiv2-0.27.3-1

firefox-78.3.0-1

gnuplot-5.4.0-2

lksctp-tools-1.0.18-1

libjpeg-turbo-2.0.5-1

libxml2-2.9.10-5

rust-1.46.0-1

unzip-6.0-8

Line 
1%define src_file unzip60
2
3Summary: A utility for unpacking zip files.
4Summary(ja): zip ファイルを展開するユーティリティ
5Name: unzip
6Version: 6.0
7Release: 8%{?_dist_release}
8Group: accessories
9Vendor: Project Vine
10Distribution: Vine Linux
11Packager: daisuke
12
13License: BSD
14URL: http://www.info-zip.org/UnZip.html
15Source: http://downloads.sourceforge.net/infozip/%{src_file}.tar.gz
16
17# Not sent to upstream.
18Patch1: unzip-6.0-bzip2-configure.patch
19# Upstream plans to do this in zip (hopefully also in unzip).
20Patch2: unzip-6.0-exec-shield.patch
21# Upstream plans to do similar thing.
22Patch3: unzip-6.0-close.patch
23# Details in rhbz#532380.
24# Reported to upstream: http://www.info-zip.org/board/board.pl?m-1259575993/
25Patch4: unzip-6.0-attribs-overflow.patch
26# Not sent to upstream, as it's Fedora/RHEL specific.
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
29Patch5: unzip-6.0-configure.patch
30Patch6: 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
34Patch7: unzip-6.0-fix-recmatch.patch
35# Update process.c
36Patch8: unzip-6.0-symlink.patch
37# change using of macro "case_map" by "to_up"
38Patch9: unzip-6.0-caseinsensitive.patch
39# downstream fix for "-Werror=format-security"
40# upstream doesn't want hear about this option again
41Patch10: unzip-6.0-format-secure.patch
42
43Patch11: unzip-6.0-valgrind.patch
44Patch12: unzip-6.0-x-option.patch
45Patch13: unzip-6.0-overflow.patch
46Patch14: unzip-6.0-cve-2014-8139.patch
47Patch15: unzip-6.0-cve-2014-8140.patch
48Patch16: unzip-6.0-cve-2014-8141.patch
49Patch17: unzip-6.0-overflow-long-fsize.patch
50
51# Fix heap overflow and infinite loop when invalid input is given (#1260947)
52Patch18: unzip-6.0-heap-overflow-infloop.patch
53
54# support non-{latin,unicode} encoding
55Patch19: unzip-6.0-alt-iconv-utf8.patch
56Patch20: unzip-6.0-alt-iconv-utf8-print.patch
57Patch21: 0001-Fix-CVE-2016-9844-rhbz-1404283.patch
58
59# restore unix timestamp accurately
60Patch22: unzip-6.0-timestamp.patch
61
62# fix possible heap based stack overflow in passwd protected files
63Patch23: unzip-6.0-cve-2018-1000035-heap-based-overflow.patch
64
65Patch24: unzip-6.0-cve-2018-18384.patch
66
67# covscan issues
68Patch25: unzip-6.0-COVSCAN-fix-unterminated-string.patch
69
70Patch26: unzip-zipbomb-part1.patch
71Patch27: unzip-zipbomb-part2.patch
72Patch28: unzip-zipbomb-part3.patch
73Patch29: unzip-zipbomb-manpage.patch
74# https://github.com/madler/unzip/commit/13f0260beae851f7d5dd96e9ef757d8d6d7daac1
75Patch30: unzip-6.0-fix-false-overlap-detection-on-32bit-systems.patch
76# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=963996
77Patch31: unzip-fix-buffer-length.patch
78
79# japanese charset support
80# https://gist.github.com/hamano/573753
81Patch200: unzip-6.0-japanese_charset.patch
82# just ignore -E option, older nls patch use this.
83Patch201: unzip-6.0-ignore-E-option.patch
84# support ja_JP.utf8 locale
85Patch202: unzip-6.0-japanese_charset-utf8.patch
86
87BuildRoot: %{_tmppath}/%{name}-%{version}-root
88BuildRequires:  bzip2-devel, gcc
89
90%description
91The unzip utility is used to list, test, or extract files from a zip
92archive.  Zip archives are commonly found on MS-DOS systems.  The zip
93utility, included in the zip package, creates zip archives.  Zip and
94unzip are both compatible with archives created by PKWARE(R)'s PKZIP
95for MS-DOS, but the programs' options and default behaviors do differ
96in some respects.
97
98Install the unzip package if you need to list, test or extract files from
99a zip archive.
100
101%description -l ja
102unzip ユーティリティは,zip アーカイブ内のファイルを一覧表示したり,
103テスト/展開する為に使うユーティリティです.zip アーカイブは MS-DOS
104システムで一般的に使われます.
105zip パッケージに含まれる zip プログラムは zip アーカイブを
106作成するのに使います.
107zip と unzip は PKWARE(R) の MS-DOS 用 PKZIP で作成された zip アーカイブに
108対応していますが,デフォルトの動作やプログラムオプション等一部が
109異なります.
110
111
112%debug_package
113
114
115%prep
116%setup -q -n %{src_file}
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
142
143%patch26 -p1
144%patch27 -p1
145%patch28 -p1
146%patch29 -p1
147%patch30 -p1
148%patch31 -p1
149
150%patch200 -p1 -b .jp
151%patch201 -p1 -b .ignore-E
152%patch202 -p1 -b .utf8
153
154
155%build
156make -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
160
161
162%install
163[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
164make -f unix/Makefile prefix=$RPM_BUILD_ROOT%{_prefix} MANDIR=$RPM_BUILD_ROOT/%{_mandir}/man1 INSTALL="cp -p" install
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)
173%license LICENSE
174%doc README BUGS INSTALL
175%{_bindir}/*
176%{_mandir}/*/*
177
178
179%changelog
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
187* Sun Sep 13 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 6.0-6
188- re-imported Patch1-29 from rawhide.
189
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
194* Sun Feb  8 2015 IWAI, Masaharu <iwaim.sub@gmail.com> 6.0-4
195- add Patch130 for CVE-2014-9636 (heap overflow)
196
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
203* Thu Jul 03 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 6.0-2
204- add patch202 to support ja_JP.utf8
205
206* Thu May 22 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 6.0-1
207- update to 6.0
208- replace nls patch.
209
210* Tue Apr  5 2011 IWAI, Masaharu <iwai@alib.jp> 5.52-3vl6
211- build on current VineSeed
212
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
Note: See TracBrowser for help on using the repository browser.