forked from pool/unzip
Accepting request 185653 from Archiving
- split the rcc dependency into a spec file of it's own, we don't need that complexity during build causing cycles like this: unzip -> librcc -> libproxy -> libXau -> xorg-x11-proto-devel -> docbook-xsl-stylesheets OBS-URL: https://build.opensuse.org/request/show/185653 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/unzip?expand=0&rev=31
This commit is contained in:
commit
ffd46a9d98
8
pre_checkin.sh
Normal file
8
pre_checkin.sh
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
|
||||||
|
cp unzip.spec unzip-rcc.spec
|
||||||
|
cp unzip.changes unzip-rcc.changes
|
||||||
|
|
||||||
|
sed -i -e 's,Name: .*,Name: unzip-rcc,' unzip-rcc.spec
|
||||||
|
sed -i -e 's,%bcond_with rcc,%bcond_without rcc,' unzip-rcc.spec
|
||||||
|
|
295
unzip-rcc.changes
Normal file
295
unzip-rcc.changes
Normal file
@ -0,0 +1,295 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Aug 2 13:55:08 UTC 2013 - coolo@suse.com
|
||||||
|
|
||||||
|
- split the rcc dependency into a spec file of it's own, we don't
|
||||||
|
need that complexity during build causing cycles like this:
|
||||||
|
unzip -> librcc -> libproxy -> libXau -> xorg-x11-proto-devel -> docbook-xsl-stylesheets
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Apr 5 10:07:44 UTC 2013 - idonmez@suse.com
|
||||||
|
|
||||||
|
- Cleanup spec file
|
||||||
|
- Add Source URL, see https://en.opensuse.org/SourceUrls
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Aug 5 13:57:24 CEST 2011 - pth@suse.de
|
||||||
|
|
||||||
|
- Don't call isprint (bnc#620483).
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 23 14:21:44 UTC 2011 - lnussel@suse.de
|
||||||
|
|
||||||
|
- remove use of __DATE__ from correct file
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat May 07 23:16:45 UTC 2011 - idoenmez@novell.com
|
||||||
|
|
||||||
|
- Sync our compile time flags with Debian except Acorn stuff, this enables
|
||||||
|
UTF-8, saves an unrelated warning about lchmod being not implemented.
|
||||||
|
- Enable make check
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 28 13:50:13 UTC 2011 - lnussel@suse.de
|
||||||
|
|
||||||
|
- use dlopen for librcc0. A direct requires causes lots of other
|
||||||
|
packages to get installed such as aspell which bloats a minimal
|
||||||
|
install.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Aug 30 19:44:17 UTC 2010 - cristian.rodriguez@opensuse.org
|
||||||
|
|
||||||
|
- Do not include build host specific info like build dates In
|
||||||
|
binaries.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jun 25 18:21:34 CEST 2010 - pth@suse.de
|
||||||
|
|
||||||
|
- Doing open(O_WRONLY) and then fdopen("w+") will now fail with
|
||||||
|
"Invalid Argument" whereas former glibcs would succeed. So now
|
||||||
|
do open(O_RDWR).
|
||||||
|
- Print error message when open(2) fails.
|
||||||
|
- Add debugging traces in open_outfile.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri May 21 16:39:24 CEST 2010 - pth@suse.de
|
||||||
|
|
||||||
|
- 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.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 10 16:39:20 UTC 2010 - pth@suse.de
|
||||||
|
|
||||||
|
- Use librcc to convert russian/slavic file names (bnc#540598).
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Dec 6 17:51:30 CET 2009 - jengelh@.medozas.de
|
||||||
|
|
||||||
|
- enable parallel building
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Dec 9 15:53:53 CET 2008 - schwab@suse.de
|
||||||
|
|
||||||
|
- Fix last change.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Sep 15 12:32:57 CEST 2008 - ro@suse.de
|
||||||
|
|
||||||
|
- use hardlink instead of softlink
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Feb 4 13:29:27 CET 2008 - pth@suse.de
|
||||||
|
|
||||||
|
- Add patch to fix erroneous freeing of buffers (bnc#358425)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Dec 7 12:52:06 CET 2007 - pth@suse.de
|
||||||
|
|
||||||
|
- Pass file mode when calling open with O_CREAT.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Dec 3 13:24:27 CET 2007 - pth@suse.de
|
||||||
|
|
||||||
|
- Add patch to extend the maximum file/archive size to 2^32-8193
|
||||||
|
(4294959103) bytes.
|
||||||
|
- Add patch to fix CVE-2005-2475 (bnc#274156)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jun 21 17:34:10 CEST 2007 - adrian@suse.de
|
||||||
|
|
||||||
|
- fix changelog entry order
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu May 3 15:25:39 CEST 2007 - pth@suse.de
|
||||||
|
|
||||||
|
- Add patch from Takashi Iwai that adds a new option (-S) to
|
||||||
|
unzip and infozip that disables file name translation (bnc#267901).
|
||||||
|
- Recompress tarball with bzip2
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 27 02:30:41 CET 2006 - mls@suse.de
|
||||||
|
|
||||||
|
- converted neededforbuild to BuildRequires
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 26 15:28:44 CET 2006 - pth@suse.de
|
||||||
|
|
||||||
|
- Reject file names that are too long (bnc#140304)
|
||||||
|
- Use stack protector.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 20 17:41:23 CET 2006 - schwab@suse.de
|
||||||
|
|
||||||
|
- Don't strip binaries.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 15 11:31:51 CET 2005 - pth@suse.de
|
||||||
|
|
||||||
|
- Compile with (limited) large file support. This will support
|
||||||
|
single files exceeding 2 GB as long as the archive stays below
|
||||||
|
that theshold.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 13 22:46:31 CEST 2005 - rommel@suse.de
|
||||||
|
|
||||||
|
- update to version 5.52 (bnc#67279)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Aug 7 15:03:23 CEST 2004 - rommel@suse.de
|
||||||
|
|
||||||
|
- update to version 5.51
|
||||||
|
(fixes old security bugs, adds PKWARE's compression code Deflate64)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 19 18:36:21 CEST 2004 - ro@suse.de
|
||||||
|
|
||||||
|
- added -fno-strict-aliasing
|
||||||
|
- really use RPM_OPT_FLAGS
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jan 11 13:00:23 CET 2004 - adrian@suse.de
|
||||||
|
|
||||||
|
- build as user
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 23 16:53:44 CEST 2003 - rommel@suse.de
|
||||||
|
|
||||||
|
- replaced fix for ../ exploit with a fix both for
|
||||||
|
the ../ exploit and '/' exploit (Bugzilla #29311)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jul 3 12:57:38 CEST 2003 - rommel@suse.de
|
||||||
|
|
||||||
|
- added fix for ../ exploit (Bugzilla #27667)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 17 14:42:19 CET 2003 - rommel@suse.de
|
||||||
|
|
||||||
|
- fixed Summary: to be more verbose about what this package does
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Sep 18 00:57:21 CEST 2002 - ro@suse.de
|
||||||
|
|
||||||
|
- removed bogus self-provides
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jul 5 11:09:32 CEST 2002 - kukuk@suse.de
|
||||||
|
|
||||||
|
- Use %ix86 macro
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Mar 11 2002 - rommel@suse.de
|
||||||
|
|
||||||
|
- Update to 5.50
|
||||||
|
- took over parts of pmladek's patch (see below)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 24 13:43:46 CET 2002 - grimmer@suse.de
|
||||||
|
|
||||||
|
- added unzip-5.42-iso8859_2.patch to fix coding conversion
|
||||||
|
between Microsoft and Linux file names
|
||||||
|
(originally from http://www.axis.cz/linux/zip_unzip.php3,
|
||||||
|
enhanced to support both ISO8859-1 and ISO8859-2 by Petr Mladek
|
||||||
|
<pmladek@suse.cz>)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Apr 9 13:42:07 CEST 2001 - grimmer@suse.de
|
||||||
|
|
||||||
|
- Update to 5.42
|
||||||
|
- file list fixes (new license file, documentation renames)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Dec 13 17:49:59 CET 2000 - grimmer@suse.de
|
||||||
|
|
||||||
|
- Update to 5.41 (now includes decryption support)
|
||||||
|
- now Provides and Obsoletes crunzip
|
||||||
|
- bzipped sources
|
||||||
|
- use BuildRoot
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 29 18:33:38 CET 2000 - schwab@suse.de
|
||||||
|
|
||||||
|
- Add support for ia64.
|
||||||
|
- /usr/man -> /usr/share/man
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Dec 22 16:19:18 MET 1999 - grimmer@suse.de
|
||||||
|
|
||||||
|
- Added "Conflicts: crzip" to spec file
|
||||||
|
- cleaned up Provides: tag
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Dec 17 16:40:10 MET 1999 - grimmer@suse.de
|
||||||
|
|
||||||
|
- Spec file cleanups
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Nov 27 15:03:07 MET 1999 - kukuk@suse.de
|
||||||
|
|
||||||
|
- Use linux_noasm Makefile target on SPARC
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Sep 13 17:23:57 CEST 1999 - bs@suse.de
|
||||||
|
|
||||||
|
- ran old prepare_spec on spec file to switch to new prepare_spec.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Sep 8 16:34:57 CEST 1999 - uli@suse.de
|
||||||
|
|
||||||
|
- uses target linux_noasm for PPC
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Feb 24 09:42:16 MET 1999 - grimmer@suse.de
|
||||||
|
|
||||||
|
- new version (5.40)
|
||||||
|
- specfile modifications
|
||||||
|
- added french description
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 11 14:29:14 MET 1999 - ro@suse.de
|
||||||
|
|
||||||
|
- use target linux_noasm for alpha
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 23 15:03:52 MET 1998 - rj@suse.de
|
||||||
|
|
||||||
|
- version 5.32
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 6 11:56:09 CET 1997 - rj@suse.de
|
||||||
|
|
||||||
|
- version 5.12
|
||||||
|
- new test/changes/plist files
|
||||||
|
|
159
unzip-rcc.spec
Normal file
159
unzip-rcc.spec
Normal file
@ -0,0 +1,159 @@
|
|||||||
|
#
|
||||||
|
# spec file for package unzip-rcc
|
||||||
|
#
|
||||||
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%bcond_without rcc
|
||||||
|
|
||||||
|
# NOTE: unzip.spec is the major file, if you want to update unzip-rcc.spec
|
||||||
|
# call pre_checkin.sh after editing unzip.spec
|
||||||
|
|
||||||
|
Name: unzip-rcc
|
||||||
|
%define _name unzip
|
||||||
|
Version: 6.00
|
||||||
|
Release: 0
|
||||||
|
%define fileversion 60
|
||||||
|
Summary: A program to unpack compressed files
|
||||||
|
License: BSD-3-Clause
|
||||||
|
Group: Productivity/Archiving/Compression
|
||||||
|
Url: http://www.info-zip.org/
|
||||||
|
Source: http://sourceforge.net/projects/infozip/files/UnZip%206.x%20%28latest%29/UnZip%206.0/%{_name}%{fileversion}.tar.gz
|
||||||
|
Source1: pre_checkin.sh
|
||||||
|
Patch0: unzip.dif
|
||||||
|
Patch1: unzip-iso8859_2.patch
|
||||||
|
Patch3: unzip-optflags.patch
|
||||||
|
Patch4: unzip-5.52-filename_too_long.patch
|
||||||
|
Patch5: unzip-no_file_name_translation.patch
|
||||||
|
Patch8: unzip-open_missing_mode.patch
|
||||||
|
Patch10: unzip-5.52-use_librcc.patch
|
||||||
|
Patch11: unzip-no-build-date.patch
|
||||||
|
Patch12: unzip-dont_call_isprint.patch
|
||||||
|
%if %{with rcc}
|
||||||
|
BuildRequires: librcc-devel
|
||||||
|
Suggests: librcc0
|
||||||
|
Provides: %{_name} = %{version}
|
||||||
|
%define update_weight 20
|
||||||
|
%define _suffix rcc
|
||||||
|
%else
|
||||||
|
%define update_weight 10
|
||||||
|
%define _suffix plain
|
||||||
|
%endif
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildRequires: update-alternatives
|
||||||
|
Requires: update-alternatives
|
||||||
|
Recommends: %{_name}-doc
|
||||||
|
|
||||||
|
%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.
|
||||||
|
|
||||||
|
%package doc
|
||||||
|
Summary: Documentation files for unzip
|
||||||
|
Group: Productivity/Archiving/Compression
|
||||||
|
|
||||||
|
%description doc
|
||||||
|
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.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{_name}%{fileversion}
|
||||||
|
%patch0
|
||||||
|
%patch1
|
||||||
|
%patch3
|
||||||
|
%patch4
|
||||||
|
%patch5
|
||||||
|
%patch8
|
||||||
|
%if %{with rcc}
|
||||||
|
%patch10
|
||||||
|
%endif
|
||||||
|
%patch11
|
||||||
|
%patch12
|
||||||
|
|
||||||
|
%build
|
||||||
|
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
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
||||||
|
mkdir -p %{buildroot}{%{_bindir},%{_mandir}/man1}
|
||||||
|
for i in unzip funzip unzipsfx; do
|
||||||
|
install $i "%{buildroot}%{_bindir}/$i-"%{_suffix}
|
||||||
|
done
|
||||||
|
ln -s unzip %{buildroot}%{_bindir}/zipinfo
|
||||||
|
install unix/zipgrep "%{buildroot}%{_bindir}/zipgrep-"%{_suffix}
|
||||||
|
for i in unzip funzip unzipsfx zipgrep; do
|
||||||
|
touch %{buildroot}%{_sysconfdir}/alternatives/$i
|
||||||
|
ln -s %{_sysconfdir}/alternatives/$i %{buildroot}%_bindir/$i
|
||||||
|
done
|
||||||
|
|
||||||
|
# do not have the docu in both packages
|
||||||
|
%if %{without rcc}
|
||||||
|
for i in man/*.1; do
|
||||||
|
install -m 644 $i %{buildroot}%{_mandir}/man1/
|
||||||
|
done
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%post
|
||||||
|
for bin in unzip funzip unzipsfx zipgrep; do
|
||||||
|
/usr/sbin/update-alternatives --install %{_bindir}/$bin $bin "%{_bindir}/$bin-"%{_suffix} %{update_weight}
|
||||||
|
done
|
||||||
|
|
||||||
|
%preun
|
||||||
|
if [ "$1" = 0 ] ; then
|
||||||
|
for bin in unzip funzip unzipsfx zipgrep; do
|
||||||
|
/usr/sbin/update-alternatives --remove $bin "%{_bindir}/$bin"-%{_suffix}
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%ghost %_sysconfdir/alternatives/unzip
|
||||||
|
%{_bindir}/unzip
|
||||||
|
%{_bindir}/unzip-%{_suffix}
|
||||||
|
%ghost %_sysconfdir/alternatives/funzip
|
||||||
|
%{_bindir}/funzip
|
||||||
|
%{_bindir}/funzip-%{_suffix}
|
||||||
|
%ghost %_sysconfdir/alternatives/unzipsfx
|
||||||
|
%{_bindir}/unzipsfx
|
||||||
|
%{_bindir}/unzipsfx-%{_suffix}
|
||||||
|
%{_bindir}/zipinfo
|
||||||
|
%ghost %_sysconfdir/alternatives/zipgrep
|
||||||
|
%{_bindir}/zipgrep
|
||||||
|
%{_bindir}/zipgrep-%{_suffix}
|
||||||
|
|
||||||
|
%if %{without rcc}
|
||||||
|
%files doc
|
||||||
|
%doc %{_mandir}/man1/*
|
||||||
|
%doc BUGS Contents History.* LICENSE README ToDo WHERE
|
||||||
|
%doc *.txt proginfo
|
||||||
|
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%changelog
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Aug 2 13:55:08 UTC 2013 - coolo@suse.com
|
||||||
|
|
||||||
|
- split the rcc dependency into a spec file of it's own, we don't
|
||||||
|
need that complexity during build causing cycles like this:
|
||||||
|
unzip -> librcc -> libproxy -> libXau -> xorg-x11-proto-devel -> docbook-xsl-stylesheets
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Apr 5 10:07:44 UTC 2013 - idonmez@suse.com
|
Fri Apr 5 10:07:44 UTC 2013 - idonmez@suse.com
|
||||||
|
|
||||||
|
85
unzip.spec
85
unzip.spec
@ -16,7 +16,13 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%bcond_with rcc
|
||||||
|
|
||||||
|
# NOTE: unzip.spec is the major file, if you want to update unzip-rcc.spec
|
||||||
|
# call pre_checkin.sh after editing unzip.spec
|
||||||
|
|
||||||
Name: unzip
|
Name: unzip
|
||||||
|
%define _name unzip
|
||||||
Version: 6.00
|
Version: 6.00
|
||||||
Release: 0
|
Release: 0
|
||||||
%define fileversion 60
|
%define fileversion 60
|
||||||
@ -24,7 +30,8 @@ Summary: A program to unpack compressed files
|
|||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Productivity/Archiving/Compression
|
Group: Productivity/Archiving/Compression
|
||||||
Url: http://www.info-zip.org/
|
Url: http://www.info-zip.org/
|
||||||
Source: http://sourceforge.net/projects/infozip/files/UnZip%206.x%20%28latest%29/UnZip%206.0/%{name}%{fileversion}.tar.gz
|
Source: http://sourceforge.net/projects/infozip/files/UnZip%206.x%20%28latest%29/UnZip%206.0/%{_name}%{fileversion}.tar.gz
|
||||||
|
Source1: pre_checkin.sh
|
||||||
Patch0: unzip.dif
|
Patch0: unzip.dif
|
||||||
Patch1: unzip-iso8859_2.patch
|
Patch1: unzip-iso8859_2.patch
|
||||||
Patch3: unzip-optflags.patch
|
Patch3: unzip-optflags.patch
|
||||||
@ -34,9 +41,20 @@ Patch8: unzip-open_missing_mode.patch
|
|||||||
Patch10: unzip-5.52-use_librcc.patch
|
Patch10: unzip-5.52-use_librcc.patch
|
||||||
Patch11: unzip-no-build-date.patch
|
Patch11: unzip-no-build-date.patch
|
||||||
Patch12: unzip-dont_call_isprint.patch
|
Patch12: unzip-dont_call_isprint.patch
|
||||||
|
%if %{with rcc}
|
||||||
BuildRequires: librcc-devel
|
BuildRequires: librcc-devel
|
||||||
Suggests: librcc0
|
Suggests: librcc0
|
||||||
|
Provides: %{_name} = %{version}
|
||||||
|
%define update_weight 20
|
||||||
|
%define _suffix rcc
|
||||||
|
%else
|
||||||
|
%define update_weight 10
|
||||||
|
%define _suffix plain
|
||||||
|
%endif
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildRequires: update-alternatives
|
||||||
|
Requires: update-alternatives
|
||||||
|
Recommends: %{_name}-doc
|
||||||
|
|
||||||
%description
|
%description
|
||||||
UnZip is an extraction utility for archives compressed in .zip format
|
UnZip is an extraction utility for archives compressed in .zip format
|
||||||
@ -45,15 +63,28 @@ 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
|
program, our primary objectives have been portability and non-MS-DOS
|
||||||
functionality. This version can also extract encrypted archives.
|
functionality. This version can also extract encrypted archives.
|
||||||
|
|
||||||
|
%package doc
|
||||||
|
Summary: Documentation files for unzip
|
||||||
|
Group: Productivity/Archiving/Compression
|
||||||
|
|
||||||
|
%description doc
|
||||||
|
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.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}%{fileversion}
|
%setup -q -n %{_name}%{fileversion}
|
||||||
%patch0
|
%patch0
|
||||||
%patch1
|
%patch1
|
||||||
%patch3
|
%patch3
|
||||||
%patch4
|
%patch4
|
||||||
%patch5
|
%patch5
|
||||||
%patch8
|
%patch8
|
||||||
|
%if %{with rcc}
|
||||||
%patch10
|
%patch10
|
||||||
|
%endif
|
||||||
%patch11
|
%patch11
|
||||||
%patch12
|
%patch12
|
||||||
|
|
||||||
@ -70,25 +101,59 @@ make %{?_smp_mflags} -f unix/Makefile LF2="-ldl" linux_noasm
|
|||||||
make -f unix/Makefile check
|
make -f unix/Makefile check
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
||||||
mkdir -p %{buildroot}{%{_bindir},%{_mandir}/man1}
|
mkdir -p %{buildroot}{%{_bindir},%{_mandir}/man1}
|
||||||
for i in unzip funzip unzipsfx; \
|
for i in unzip funzip unzipsfx; do
|
||||||
do install $i %{buildroot}%{_bindir};done;
|
install $i "%{buildroot}%{_bindir}/$i-"%{_suffix}
|
||||||
|
done
|
||||||
ln -s unzip %{buildroot}%{_bindir}/zipinfo
|
ln -s unzip %{buildroot}%{_bindir}/zipinfo
|
||||||
install unix/zipgrep %{buildroot}%{_bindir}
|
install unix/zipgrep "%{buildroot}%{_bindir}/zipgrep-"%{_suffix}
|
||||||
for i in man/*.1; \
|
for i in unzip funzip unzipsfx zipgrep; do
|
||||||
do \
|
touch %{buildroot}%{_sysconfdir}/alternatives/$i
|
||||||
|
ln -s %{_sysconfdir}/alternatives/$i %{buildroot}%_bindir/$i
|
||||||
|
done
|
||||||
|
|
||||||
|
# do not have the docu in both packages
|
||||||
|
%if %{without rcc}
|
||||||
|
for i in man/*.1; do
|
||||||
install -m 644 $i %{buildroot}%{_mandir}/man1/
|
install -m 644 $i %{buildroot}%{_mandir}/man1/
|
||||||
done
|
done
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%post
|
||||||
|
for bin in unzip funzip unzipsfx zipgrep; do
|
||||||
|
/usr/sbin/update-alternatives --install %{_bindir}/$bin $bin "%{_bindir}/$bin-"%{_suffix} %{update_weight}
|
||||||
|
done
|
||||||
|
|
||||||
|
%preun
|
||||||
|
if [ "$1" = 0 ] ; then
|
||||||
|
for bin in unzip funzip unzipsfx zipgrep; do
|
||||||
|
/usr/sbin/update-alternatives --remove $bin "%{_bindir}/$bin"-%{_suffix}
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc %{_mandir}/man1/*
|
%ghost %_sysconfdir/alternatives/unzip
|
||||||
%doc BUGS COPYING.OLD Contents History.* INSTALL LICENSE README ToDo WHERE
|
|
||||||
%doc *.txt proginfo
|
|
||||||
%{_bindir}/unzip
|
%{_bindir}/unzip
|
||||||
|
%{_bindir}/unzip-%{_suffix}
|
||||||
|
%ghost %_sysconfdir/alternatives/funzip
|
||||||
%{_bindir}/funzip
|
%{_bindir}/funzip
|
||||||
|
%{_bindir}/funzip-%{_suffix}
|
||||||
|
%ghost %_sysconfdir/alternatives/unzipsfx
|
||||||
%{_bindir}/unzipsfx
|
%{_bindir}/unzipsfx
|
||||||
|
%{_bindir}/unzipsfx-%{_suffix}
|
||||||
%{_bindir}/zipinfo
|
%{_bindir}/zipinfo
|
||||||
|
%ghost %_sysconfdir/alternatives/zipgrep
|
||||||
%{_bindir}/zipgrep
|
%{_bindir}/zipgrep
|
||||||
|
%{_bindir}/zipgrep-%{_suffix}
|
||||||
|
|
||||||
|
%if %{without rcc}
|
||||||
|
%files doc
|
||||||
|
%doc %{_mandir}/man1/*
|
||||||
|
%doc BUGS Contents History.* LICENSE README ToDo WHERE
|
||||||
|
%doc *.txt proginfo
|
||||||
|
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user