Sophie

Sophie

distrib > Mandriva > 2009.0 > x86_64 > by-pkgid > 862d316ef1e03f6edd0e1bcc1a3588a6 > files > 3

zip-3.0-1mdv2009.0.src.rpm

%define name zip
%define version 3.0
%define release %mkrel 1
%define filever %(echo %version|sed s/\\\\\.//)

Name: %{name}
Summary: A file compression and packaging utility compatible with PKZIP
Version: %{version}
Release: %{release}
License: BSD-like
Group: Archiving/Compression
URL: http://www.info-zip.org/pub/infozip/
Source0: http://dfn.dl.sourceforge.net/sourceforge/infozip/%{name}%{filever}.zip
Patch0: zip-2.3-unforce-cflags.patch
Patch1: zip-2.3-noninteractivepassword+testencrypedfile.patch
BuildRequires: bzip2-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
The zip program is a compression and file packaging utility. Zip is analogous
to a combination of the UNIX tar and compress commands and is compatible with
PKZIP (a compression and file packaging utility for MS-DOS systems).

Install the zip package if you need to compress files using the zip program.

This version support crypto encryption.

%prep

%setup -q -n %{name}%{filever}
%patch0 -p1 -b .cflags
%patch1 -p0 -b .pass

%build
make -ef unix/Makefile prefix=%{prefix} CC="gcc %{optflags} -D_FILE_OFFSET_BITS=64" generic_gcc

%install
rm -rf %{buildroot}

mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1

%makeinstall -f unix/Makefile MANDIR=%{buildroot}%{_mandir}/man1 INSTALL=install

%clean
rm -fr %{buildroot}

%files
%defattr(-,root,root)
%doc BUGS CHANGES INSTALL README TODO WHATSNEW WHERE LICENSE
%attr(0755,root,root) %{_bindir}/*
%{_mandir}/man1/*


%changelog
* Mon Aug 18 2008 Oden Eriksson <oeriksson@mandriva.com> 3.0-1mdv2009.0
+ Revision: 273212
- 3.0
- rediffed P1
- drop S1, zcrypt is included
- fix url

* Mon Feb 25 2008 Olivier Blin <oblin@mandriva.com> 2.32-2mdv2008.1
+ Revision: 174802
- build with _FILE_OFFSET_BITS=64 (#37178)
- restore BuildRoot

  + Thierry Vignaud <tvignaud@mandriva.com>
    - kill re-definition of %%buildroot on Pixel's request
    - kill packager tag


* Thu Nov 16 2006 Olivier Blin <oblin@mandriva.com> 2.32-1mdv2007.0
+ Revision: 85007
- fix patchlevel
- rediff patch1
- 2.32
- bunzip2 sources
- Import zip

* Sat Dec 31 2005 Stefan van der Eijk <stefan@eijk.nu> 2.31-2mdk
- %%mkrel
- rebuild
- comment out Packager tag

* Tue Jun 07 2005 Götz Waschk <waschk@mandriva.org> 2.31-1mdk
- drop patch 2, CAN-2004-1010 was fixed upstream
- new version

* Wed Dec 15 2004 Götz Waschk <waschk@linux-mandrake.com> 2.3-13mdk
- add man page symlinks

* Sun Nov 28 2004 Olivier Blin <blino@mandrake.org> 2.3-12mdk
- security update for CAN-2004-1010

* Tue Sep 14 2004 Giuseppe Ghibò <ghibo@mandrakesoft.com> 2.3-11mdk
- Rebuilt.