File zip.spec of Package zip
#
# spec file for package zip (Version 2.32)
#
# Copyright (c) 2008 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/
#
# norootforbuild
Name: zip
License: BSD 3-Clause
Group: Productivity/Archiving/Compression
Provides: crzip
Obsoletes: crzip
AutoReqProv: on
Version: 2.32
Release: 75
Summary: File compression program
Url: http://www.info-zip.org/
Source: %name-%version.tar.bz2
Patch1: zip-2.3-tempfile.patch
Patch2: zip-2.3-iso8859_2.patch
Patch3: zip-2.3-nonexec-stack.patch
Patch4: zip-2.3-optflags.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Zip is a compression and file packaging utility. It is compatible with
PKZIP(tm) 2.04g (Phil Katz ZIP) for MS-DOS systems.
Authors:
--------
Info-ZIP <zip-bugs@lists.wku.edu>
%prep
%setup -q
%patch1 -p1
%patch2
%patch3
%patch4 -p1
%build
make -f unix/Makefile prefix=/usr CC="gcc $RPM_OPT_FLAGS -DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" generic_gcc
%install
mkdir -p $RPM_BUILD_ROOT/usr/bin
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
make install -f unix/Makefile BINDIR=$RPM_BUILD_ROOT/usr/bin MANDIR=$RPM_BUILD_ROOT%{_mandir}/man1
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc BUGS CHANGES INSTALL LICENSE MANUAL README TODO WHATSNEW WHERE
%doc %{_mandir}/man1/zip.1.gz
/usr/bin/zip
/usr/bin/zipcloak
/usr/bin/zipnote
/usr/bin/zipsplit
%changelog
* Fri Aug 03 2007 dmueller@suse.de
- update to 2.32:
* fixed -R operation to match the supplied file patterns
* handle cases where -x, -R, and -i patterns are mixed
* added some directory-search speedups
* fixed bug when encrypting large uncompressible files
* fixed selection of files to delete by date
* added -MM option where each input file pattern must
match at least one file and all input files must be readable
* added check for when Zip tries to exceed seek limit in output file
* minor changes to compile with Visual C++ 2005
* added support for Unix FIFOs (named pipes)
* other minor fixes
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Dec 15 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 Oct 31 2005 dmueller@suse.de
- build with non-executable stack
* Mon Jul 18 2005 rommel@suse.de
- update to version 2.31 (has the crypto stuff previously in zip-2.3.patch,
obsoletes zip-longpath.patch, a few more fixes)
* Mon Apr 25 2005 meissner@suse.de
- correctly use RPM_OPT_FLAGS.
* Thu Dec 02 2004 rommel@suse.de
- reworked zip-longpath.patch, missing free's after malloc
* Thu Nov 11 2004 rommel@suse.de
- added zip-longpath.patch (Bugzilla #47932)
* Fri Jan 09 2004 adrian@suse.de
- build as user
* Wed Sep 18 2002 ro@suse.de
- removed bogus self-provides
* Thu Jan 24 2002 grimmer@suse.de
- added zip-2.3-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>)
* Wed Jan 23 2002 okir@suse.de
- Fixed tempfile race
* Mon Jun 18 2001 schwab@suse.de
- Fix cpp directives inside macro call.
* Thu Dec 14 2000 grimmer@suse.de
- added encryption patch
- bzipped sources
- now Provides and Obsoletes crzip
* Wed Mar 01 2000 schwab@suse.de
- /usr/man -> /usr/share/man
* Fri Dec 17 1999 grimmer@suse.de
- Update to 2.3
- Spec file cleanups
* Mon Sep 13 1999 bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Mon Feb 22 1999 grimmer@suse.de
- New version (2.2)
- specfile updates
- added french PAC-info
* Thu Feb 06 1997 rj@suse.de
- Version 2.01:
- ownerships changed
- some cosmetic changes