2006-12-19 00:18:06 +01:00
|
|
|
#
|
2011-05-08 16:34:33 +02:00
|
|
|
# spec file for package unzip
|
2006-12-19 00:18:06 +01:00
|
|
|
#
|
2011-05-08 16:34:33 +02:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:18:06 +01:00
|
|
|
#
|
2008-09-15 12:33:26 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-05-06 17:18:57 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2006-12-19 00:18:06 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-03-28 05:05:35 +01:00
|
|
|
|
2007-05-06 17:18:57 +02:00
|
|
|
Name: unzip
|
2010-01-14 22:40:30 +01:00
|
|
|
License: BSD3c
|
2007-05-06 17:18:57 +02:00
|
|
|
Group: Productivity/Archiving/Compression
|
2007-12-06 01:40:08 +01:00
|
|
|
AutoReqProv: on
|
- Update to 6.0:
* Support PKWARE ZIP64 extensions, allowing Zip archives and Zip archive
entries larger than 4 GiBytes and more than 65536 entries within a
single Zip archive. This support is currently only available for Unix,
OpenVMS and Win32/Win64.
* Support for bzip2 compression method.
* Support for UTF-8 encoded entry names, both through PKWARE's "General
Purpose Flags Bit 11" indicator and Info-ZIP's new "up" unicode path
extra field. (Currently, on Windows the UTF-8 handling is limited to
the character subset contained in the configured non-unicode "system
code page".)
* Fixed "Time of Creation/Time of Use" vulnerability when setting
attributes of extracted files, for Unix and Unix-like ports.
* Fixed memory leak when processing invalid deflated data.
* Fixed long-standing bug in unshrink (partial_clear), added boundary
checks against invalid compressed data.
* On Unix, keep inherited SGID attribute bit for extracted directories
unless restoration of owner/group id or SUID/SGID/Tacky attributes was
requested.
* On Unix, allow extracted filenames to contain embedded control
characters when explicitly requested by specifying the new command line
option "-^".
* On Unix, support restoration of symbolic link attributes.
* On Unix, support restoration of 32-bit UID/GID data using the new "ux"
IZUNIX3 extra field introduced with Zip 3.0.
* Support symbolic links zipped up on VMS.
* New -D option to suppress restoration of timestamps for extracted
directory entries (on those ports that support setting of directory
timestamps). By specifying "-DD", this new option also allows to
suppress timestamp restoration for ALL extracted files on all UnZip
ports which support restoration of timestamps. On VMS, the default
behaviour is now to skip restoration of directory timestamps; here,
"--D" restores ALL timestamps, "-D" restores none.
* On OS/2, Win32, and Unix, the (previously optional) feature UNIXBACKUP
to allow saving backup copies of overwritten files on extraction is now
enabled by default.
OBS-URL: https://build.opensuse.org/package/show/Archiving/unzip?expand=0&rev=8
2010-05-21 16:47:23 +02:00
|
|
|
Version: 6.00
|
2011-08-06 19:09:45 +02:00
|
|
|
Release: 12
|
2010-07-30 12:45:30 +02:00
|
|
|
%define fileversion 60
|
2007-05-06 17:18:57 +02:00
|
|
|
Summary: A program to unpack compressed files
|
- Update to 6.0:
* Support PKWARE ZIP64 extensions, allowing Zip archives and Zip archive
entries larger than 4 GiBytes and more than 65536 entries within a
single Zip archive. This support is currently only available for Unix,
OpenVMS and Win32/Win64.
* Support for bzip2 compression method.
* Support for UTF-8 encoded entry names, both through PKWARE's "General
Purpose Flags Bit 11" indicator and Info-ZIP's new "up" unicode path
extra field. (Currently, on Windows the UTF-8 handling is limited to
the character subset contained in the configured non-unicode "system
code page".)
* Fixed "Time of Creation/Time of Use" vulnerability when setting
attributes of extracted files, for Unix and Unix-like ports.
* Fixed memory leak when processing invalid deflated data.
* Fixed long-standing bug in unshrink (partial_clear), added boundary
checks against invalid compressed data.
* On Unix, keep inherited SGID attribute bit for extracted directories
unless restoration of owner/group id or SUID/SGID/Tacky attributes was
requested.
* On Unix, allow extracted filenames to contain embedded control
characters when explicitly requested by specifying the new command line
option "-^".
* On Unix, support restoration of symbolic link attributes.
* On Unix, support restoration of 32-bit UID/GID data using the new "ux"
IZUNIX3 extra field introduced with Zip 3.0.
* Support symbolic links zipped up on VMS.
* New -D option to suppress restoration of timestamps for extracted
directory entries (on those ports that support setting of directory
timestamps). By specifying "-DD", this new option also allows to
suppress timestamp restoration for ALL extracted files on all UnZip
ports which support restoration of timestamps. On VMS, the default
behaviour is now to skip restoration of directory timestamps; here,
"--D" restores ALL timestamps, "-D" restores none.
* On OS/2, Win32, and Unix, the (previously optional) feature UNIXBACKUP
to allow saving backup copies of overwritten files on extraction is now
enabled by default.
OBS-URL: https://build.opensuse.org/package/show/Archiving/unzip?expand=0&rev=8
2010-05-21 16:47:23 +02:00
|
|
|
Source: %{name}%{fileversion}.tar.bz2
|
2007-12-06 01:40:08 +01:00
|
|
|
Url: http://www.info-zip.org/
|
- Update to 6.0:
* Support PKWARE ZIP64 extensions, allowing Zip archives and Zip archive
entries larger than 4 GiBytes and more than 65536 entries within a
single Zip archive. This support is currently only available for Unix,
OpenVMS and Win32/Win64.
* Support for bzip2 compression method.
* Support for UTF-8 encoded entry names, both through PKWARE's "General
Purpose Flags Bit 11" indicator and Info-ZIP's new "up" unicode path
extra field. (Currently, on Windows the UTF-8 handling is limited to
the character subset contained in the configured non-unicode "system
code page".)
* Fixed "Time of Creation/Time of Use" vulnerability when setting
attributes of extracted files, for Unix and Unix-like ports.
* Fixed memory leak when processing invalid deflated data.
* Fixed long-standing bug in unshrink (partial_clear), added boundary
checks against invalid compressed data.
* On Unix, keep inherited SGID attribute bit for extracted directories
unless restoration of owner/group id or SUID/SGID/Tacky attributes was
requested.
* On Unix, allow extracted filenames to contain embedded control
characters when explicitly requested by specifying the new command line
option "-^".
* On Unix, support restoration of symbolic link attributes.
* On Unix, support restoration of 32-bit UID/GID data using the new "ux"
IZUNIX3 extra field introduced with Zip 3.0.
* Support symbolic links zipped up on VMS.
* New -D option to suppress restoration of timestamps for extracted
directory entries (on those ports that support setting of directory
timestamps). By specifying "-DD", this new option also allows to
suppress timestamp restoration for ALL extracted files on all UnZip
ports which support restoration of timestamps. On VMS, the default
behaviour is now to skip restoration of directory timestamps; here,
"--D" restores ALL timestamps, "-D" restores none.
* On OS/2, Win32, and Unix, the (previously optional) feature UNIXBACKUP
to allow saving backup copies of overwritten files on extraction is now
enabled by default.
OBS-URL: https://build.opensuse.org/package/show/Archiving/unzip?expand=0&rev=8
2010-05-21 16:47:23 +02:00
|
|
|
Patch0: unzip.dif
|
2007-05-06 17:18:57 +02:00
|
|
|
Patch1: unzip-iso8859_2.patch
|
|
|
|
Patch3: unzip-optflags.patch
|
|
|
|
Patch4: unzip-5.52-filename_too_long.patch
|
|
|
|
Patch5: unzip-no_file_name_translation.patch
|
2007-12-07 20:20:19 +01:00
|
|
|
Patch8: unzip-open_missing_mode.patch
|
2010-05-14 00:15:02 +02:00
|
|
|
Patch10: unzip-5.52-use_librcc.patch
|
2010-09-03 13:00:28 +02:00
|
|
|
Patch11: unzip-no-build-date.patch
|
2011-08-05 14:03:53 +02:00
|
|
|
Patch12: unzip-dont_call_isprint.patch
|
2007-05-06 17:18:57 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-05-14 00:15:02 +02:00
|
|
|
BuildRequires: librcc-devel
|
2011-01-28 15:08:25 +01:00
|
|
|
Suggests: librcc0
|
2006-12-19 00:18:06 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
UnZip is an extraction utility for archives compressed in .zip format
|
|
|
|
(known as "zip files"). Although highly compatible both with PKWARE's
|
|
|
|
PKZIP(tm) and PKUNZIP utilities for MS-DOS and with Info-ZIP's own Zip
|
|
|
|
program, our primary objectives have been portability and non-MS-DOS
|
|
|
|
functionality. This version can also extract encrypted archives.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Info-ZIP <zip-bugs@lists.wku.edu>
|
|
|
|
|
|
|
|
%prep
|
- Update to 6.0:
* Support PKWARE ZIP64 extensions, allowing Zip archives and Zip archive
entries larger than 4 GiBytes and more than 65536 entries within a
single Zip archive. This support is currently only available for Unix,
OpenVMS and Win32/Win64.
* Support for bzip2 compression method.
* Support for UTF-8 encoded entry names, both through PKWARE's "General
Purpose Flags Bit 11" indicator and Info-ZIP's new "up" unicode path
extra field. (Currently, on Windows the UTF-8 handling is limited to
the character subset contained in the configured non-unicode "system
code page".)
* Fixed "Time of Creation/Time of Use" vulnerability when setting
attributes of extracted files, for Unix and Unix-like ports.
* Fixed memory leak when processing invalid deflated data.
* Fixed long-standing bug in unshrink (partial_clear), added boundary
checks against invalid compressed data.
* On Unix, keep inherited SGID attribute bit for extracted directories
unless restoration of owner/group id or SUID/SGID/Tacky attributes was
requested.
* On Unix, allow extracted filenames to contain embedded control
characters when explicitly requested by specifying the new command line
option "-^".
* On Unix, support restoration of symbolic link attributes.
* On Unix, support restoration of 32-bit UID/GID data using the new "ux"
IZUNIX3 extra field introduced with Zip 3.0.
* Support symbolic links zipped up on VMS.
* New -D option to suppress restoration of timestamps for extracted
directory entries (on those ports that support setting of directory
timestamps). By specifying "-DD", this new option also allows to
suppress timestamp restoration for ALL extracted files on all UnZip
ports which support restoration of timestamps. On VMS, the default
behaviour is now to skip restoration of directory timestamps; here,
"--D" restores ALL timestamps, "-D" restores none.
* On OS/2, Win32, and Unix, the (previously optional) feature UNIXBACKUP
to allow saving backup copies of overwritten files on extraction is now
enabled by default.
OBS-URL: https://build.opensuse.org/package/show/Archiving/unzip?expand=0&rev=8
2010-05-21 16:47:23 +02:00
|
|
|
%setup -q -n %{name}%{fileversion}
|
|
|
|
%patch0
|
|
|
|
%patch1
|
2006-12-19 00:18:06 +01:00
|
|
|
%patch3
|
|
|
|
%patch4
|
2007-05-06 17:18:57 +02:00
|
|
|
%patch5
|
2007-12-07 20:20:19 +01:00
|
|
|
%patch8
|
2010-05-14 00:15:02 +02:00
|
|
|
%patch10
|
2010-08-30 22:30:03 +02:00
|
|
|
%patch11
|
2011-08-05 14:03:53 +02:00
|
|
|
%patch12
|
2010-09-03 13:00:28 +02:00
|
|
|
|
2006-12-19 00:18:06 +01:00
|
|
|
%build
|
2011-05-08 16:34:33 +02:00
|
|
|
export RPM_OPT_FLAGS="%optflags \
|
|
|
|
-D_GNU_SOURCE -DRCC_LAZY -DWILD_STOP_AT_DIR \
|
|
|
|
-DLARGE_FILE_SUPPORT -DUNICODE_SUPPORT \
|
|
|
|
-DUNICODE_WCHAR -DUTF8_MAYBE_NATIVE -DNO_LCHMOD \
|
|
|
|
-DDATE_FORMAT=DF_YMD -I. -fstack-protector -fno-strict-aliasing"
|
|
|
|
|
|
|
|
make %{?_smp_mflags} -f unix/Makefile LF2="-ldl" linux_noasm
|
|
|
|
|
|
|
|
%check
|
|
|
|
make -f unix/Makefile check
|
2006-12-19 00:18:06 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
|
2008-12-15 13:17:41 +01:00
|
|
|
for i in unzip funzip unzipsfx; \
|
2006-12-19 00:18:06 +01:00
|
|
|
do install $i $RPM_BUILD_ROOT%{_bindir};done;
|
2008-12-15 13:17:41 +01:00
|
|
|
ln -s unzip $RPM_BUILD_ROOT%{_bindir}/zipinfo
|
2006-12-19 00:18:06 +01:00
|
|
|
install unix/zipgrep $RPM_BUILD_ROOT%{_bindir}
|
|
|
|
for i in man/*.1; \
|
|
|
|
do \
|
|
|
|
install -m 644 $i $RPM_BUILD_ROOT%{_mandir}/man1/
|
|
|
|
done
|
|
|
|
|
|
|
|
%clean
|
2008-09-15 12:33:26 +02:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2006-12-19 00:18:06 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc %{_mandir}/man1/*
|
|
|
|
%doc BUGS COPYING.OLD Contents History.* INSTALL LICENSE README ToDo WHERE
|
|
|
|
%doc *.txt proginfo
|
|
|
|
%{_bindir}/unzip
|
|
|
|
%{_bindir}/funzip
|
|
|
|
%{_bindir}/unzipsfx
|
|
|
|
%{_bindir}/zipinfo
|
|
|
|
%{_bindir}/zipgrep
|
|
|
|
|
2007-05-06 17:18:57 +02:00
|
|
|
%changelog
|