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

Revision 12491, 10.1 KB checked in by tomop, 6 weeks ago (diff)

updated 6 packages

appstream-data-7-4

libid3tag-0.15.1b-6

openldap-2.4.53-1

p7zip-16.02-1

shotwell-0.30.10-1

unzip-6.0-6

Line 
1%define src_file unzip60
2
3Summary: A utility for unpacking zip files.
4Summary(ja): zip ファイルを展開するユーティリティ
5Name: unzip
6Version: 6.0
7Release: 6%{?_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
75# japanese charset support
76# https://gist.github.com/hamano/573753
77Patch200: unzip-6.0-japanese_charset.patch
78# just ignore -E option, older nls patch use this.
79Patch201: unzip-6.0-ignore-E-option.patch
80# support ja_JP.utf8 locale
81Patch202: unzip-6.0-japanese_charset-utf8.patch
82
83BuildRoot: %{_tmppath}/%{name}-%{version}-root
84BuildRequires:  bzip2-devel, gcc
85
86%description
87The unzip utility is used to list, test, or extract files from a zip
88archive.  Zip archives are commonly found on MS-DOS systems.  The zip
89utility, included in the zip package, creates zip archives.  Zip and
90unzip are both compatible with archives created by PKWARE(R)'s PKZIP
91for MS-DOS, but the programs' options and default behaviors do differ
92in some respects.
93
94Install the unzip package if you need to list, test or extract files from
95a zip archive.
96
97%description -l ja
98unzip ユーティリティは,zip アーカイブ内のファイルを一覧表示したり,
99テスト/展開する為に使うユーティリティです.zip アーカイブは MS-DOS
100システムで一般的に使われます.
101zip パッケージに含まれる zip プログラムは zip アーカイブを
102作成するのに使います.
103zip と unzip は PKWARE(R) の MS-DOS 用 PKZIP で作成された zip アーカイブに
104対応していますが,デフォルトの動作やプログラムオプション等一部が
105異なります.
106
107# debuginfo is empty.
108#debug_package
109
110
111%prep
112%setup -q -n %{src_file}
113%patch1 -p1
114%patch2 -p1
115%patch3 -p1
116%patch4 -p1
117%patch5 -p1
118%patch6 -p1
119%patch7 -p1
120%patch8 -p1
121%patch9 -p1
122%patch10 -p1
123%patch11 -p1
124%patch12 -p1
125%patch13 -p1
126%patch14 -p1
127%patch15 -p1
128%patch16 -p1
129%patch17 -p1
130%patch18 -p1
131%patch19 -p1
132%patch20 -p1
133%patch21 -p1
134%patch22 -p1
135%patch23 -p1
136%patch24 -p1
137%patch25 -p1
138
139%patch26 -p1
140%patch27 -p1
141%patch28 -p1
142%patch29 -p1
143
144%patch200 -p1 -b .jp
145%patch201 -p1 -b .ignore-E
146%patch202 -p1 -b .utf8
147
148ln -s unix/Makefile Makefile
149
150
151%build
152make LOCAL_UNZIP="-D_FILE_OFFSET_BITS=64 -DNO_LCHMOD -D_MBCS -DNO_WORKING_ISPRINT" linux_noasm
153
154
155%install
156[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
157make prefix=$RPM_BUILD_ROOT%{_prefix} MANDIR=$RPM_BUILD_ROOT/%{_mandir}/man1 install LF2=""
158
159
160%clean
161[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
162
163
164%files
165%defattr(-,root,root)
166%license LICENSE
167%doc README BUGS INSTALL
168%{_bindir}/*
169%{_mandir}/*/*
170
171
172%changelog
173* Sun Sep 13 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 6.0-6
174- re-imported Patch1-29 from rawhide.
175
176* Sun May 19 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 6.0-5
177- imported Patch17-18, 21-24 from rawhide.
178- replaced Patch100-120 to rawhide's one.
179
180* Sun Feb  8 2015 IWAI, Masaharu <iwaim.sub@gmail.com> 6.0-4
181- add Patch130 for CVE-2014-9636 (heap overflow)
182
183* Sun Jan 18 2015 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>  6.0-3
184- add Patch100 for fix CVE-2014-8139 (crc-overflow)
185- add Patch110 for fix CVE-2014-8140 (test-compr-eb)
186- add Patch120 for fix CVE-2014-8141 (getzip64data)
187- add Patch9-12 from fc22
188
189* Thu Jul 03 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 6.0-2
190- add patch202 to support ja_JP.utf8
191
192* Thu May 22 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 6.0-1
193- update to 6.0
194- replace nls patch.
195
196* Tue Apr  5 2011 IWAI, Masaharu <iwai@alib.jp> 5.52-3vl6
197- build on current VineSeed
198
199* Wed Apr 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 5.52-2
200- spec in utf-8
201- add NLS patch
202
203* Wed Apr 09 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 5.52-1
204- new upstream release
205- add patch13 from fc8
206- update patches to fit new release & drop old patches
207- with new versioning polity
208
209* Wed Apr 09 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 5.51-11vl4
210- fix changelog typo
211
212* Wed Apr 09 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 5.51-10vl4
213- update patch100 to fix ppc issue (it was patch5, from rhel4)
214- renumber patchs
215- add patch 2,3 to support big archive (from rhel4)
216- with new versioning polity
217
218* Fri Mar 21 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 5.51-9vl1.1
219- add patch5 for fix CVE-2005-4667
220- add patch6 for fix CVE-2008-0888
221- add Vendor/Distribution tag
222
223* Tue May 10 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.51-9vl1
224- new upstream release
225- based on 5.51-9 Fedora development
226  * Thu Feb 10 2005 Ivana Varekova <varekova@redhat.com> 5.51-9
227  - fix the other problem with unpacking zipfiles containing symlinks
228    (bug #134073)
229  * Thu Feb 03 2005 Ivana Varekova <varekova@redhat.com> 5.51-8
230  - fix segfault with unpacking of zipfiles containing dangling symlinks
231    (bug #134073)
232  * Thu Dec 02 2004 Lon Hohberger <lhh@redhat.com> 5.51-5
233  - Fix segfault on extraction of symlinks
234  * Mon Jun 21 2004 Lon Hohberger <lhh@redhat.com> 5.51-4
235  - Extend max file/archive size to 2^32-8193 (4294959103) bytes
236  * Tue Jun 08 2004 Lon Hohberger <lhh@redhat.com> 5.51-1.1
237  - Update to 5.51; remove dotdot patch.
238
239* Tue Sep 23 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.50-5vl2
240- merged patch1 from Vine Linux 2.6 updates
241  - Thu Aug 28 2003 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.50-4vl3
242  - replace patch1 from RedHat (RHSA-2003:199-02).
243
244  - Fri Jul 18 2003 Kunio Murasawa <murasawa@fa2.so-net.ne.jp> 5.50-4vl2
245  - added patch1 from Redhat (RHSA-2003:199-01)
246
247
248* Sun Dec  1 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 5.50-5vl1
249- modified changelog section :-P (merge rawhidee changelogs)
250
251  - Sun Dec  1 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.50-4vl2
252  - rebuild with new toolchains
253
254  - Sun May 26 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.50-4vl1
255  - based on 5.50-4 from Rawhide
256  - previous Vine version was 5.41-3vl1:
257
258  - Tue Dec 26 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
259  - 5.41-3vl1
260  - based on 5.41-3 from Rawhide
261  - added Japanese summary and description
262  - use better macros
263
264* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
265- automated rebuild
266
267* Thu May 23 2002 Tim Powers <timp@redhat.com>
268- automated rebuild
269
270* Thu Apr 25 2002 Trond Eivind Glomsr︰ <teg@redhat.com> 5.50-3
271- Rebuild
272
273* Tue Apr  2 2002 Trond Eivind Glomsr︰ <teg@redhat.com> 5.50-2
274- Make it not strip
275
276* Wed Mar 13 2002 Trond Eivind Glomsr︰ <teg@redhat.com> 5.50-1
277- 5.50
278
279* Thu Feb 21 2002 Trond Eivind Glomsr︰ <teg@redhat.com> 5.42-3
280- Rebuild
281
282* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
283- automated rebuild
284
285* Mon May 21 2001 Trond Eivind Glomsr︰ <teg@redhat.com>
286- 5.42
287- Don't strip binaries explicitly
288- build without assembly, it doesn't seem to increase performance
289- make it respect RPM_OPT_FLAGS, define _GNU_SOURCE
290- use %%{_tmppath}
291- "License:" replaces "Copyright:"
292- Update URL
293- include zipgrep
294- COPYING doesn't exist anymore, include LICENSE instead
295
296* Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
297- automatic rebuild
298
299* Sun Jun 11 2000 BIll Nottingham <notting@redhat.com>
300- rebuild in new env.; FHS fixes.
301
302* Tue Apr 18 2000 Bernhard Rosenkraenzer <bero@redhat.com>
303- 4.51 (an acceptable license at last...)
304
305* Thu Feb  3 2000 Bill Nottingham <notting@redhat.com>
306- handle compressed man pages
307
308* Fri Jul 30 1999 Bill Nottingham <notting@redhat.com>
309- update to 5.40
310
311* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
312- auto rebuild in the new build environment (release 5)
313
314* Thu Dec 17 1998 Michael Maher <mike@redhat.com>
315- built for 6.0
316
317* Tue Aug 11 1998 Jeff Johnson <jbj@redhat.com>
318- build root
319
320* Mon Apr 27 1998 Prospector System <bugs@redhat.com>
321- translations modified for de, fr, tr
322
323* Tue Oct 21 1997 Erik Troan <ewt@redhat.com>
324- builds on non i386 platforms
325
326* Mon Oct 20 1997 Otto Hammersmith <otto@redhat.com>
327- updated the version
328
329* Thu Jul 10 1997 Erik Troan <ewt@redhat.com>
330- built against glibc
331
Note: See TracBrowser for help on using the repository browser.