unzip/unzip.spec

89 lines
2.7 KiB
RPMSpec
Raw Permalink Normal View History

%define src_ver %(echo %version | tr -d .)
Name: unzip
Version: 6.0
Release: 1mamba
Summary: A file compression and packaging utility compatible with PKZIP
Group: Applications/Archiving
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.info-zip.org/pub/infozip/
Source: ftp://ftp.info-zip.org/pub/infozip/src/unzip%{src_ver}.tgz
Patch0: %{name}-5.51-rpmoptflags.patch
Patch1: %{name}-5.51-link-segv.patch
Patch2: %{name}-5.52-can-2005-2475.patch
Patch3: %{name}-5.52-CVE-2005-4667.patch
Patch4: %{name}-6.0-iconv.patch
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%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.
%prep
%setup -q -n unzip%{src_ver}
#%patch0 -p1
#%patch1 -p1
#%patch2 -p1 -b .can-2005-2475
#%patch3 -p1 -b .can-2005-4667
%patch4 -p1
ln -sf unix/Makefile Makefile
sed -i "s|CC=gcc |CC=%{_host}-gcc |" Makefile
sed -i "s|LD=gcc |LD=%{_host}-gcc |" Makefile
sed -i "s|AS=gcc |AS=%{_host}-gcc |" Makefile
%build
%make linux_noasm LF2="" CC=%{_host}-gcc
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeoldinstall \
LF2="" \
MANDIR=%{buildroot}%{_mandir}/man1
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/*
%{_mandir}/man1/*
%doc README BUGS LICENSE
%changelog
* Wed Apr 27 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 6.0-1mamba
- update to 6.0
* Tue Mar 11 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 5.52-5mamba
- specfile updated
* Fri Mar 03 2006 Davide Madrisan <davide.madrisan@qilinux.it> 5.52-4qilnx
- security update for CVE-2005-4667
* Wed Oct 05 2005 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 5.52-3qilnx
- spec file fixed and updated
* Mon Oct 03 2005 Davide Madrisan <davide.madrisan@qilinux.it> 5.52-2qilnx
- security fix QSA-2005-112 (CAN-2005-2475)
* Wed Aug 03 2005 Davide Madrisan <davide.madrisan@qilinux.it> 5.52-1qilnx
- update to version 5.52 by autospec
* Mon Apr 18 2005 Davide Madrisan <davide.madrisan@qilinux.it> 5.51-1qilnx
- update to version 5.51 by autospec
- fixed manpages path
- fix several problem with unpacking zipfiles containing symlinks
* Mon Jul 14 2003 Silvan Calarco <silvan.calarco@qinet.it> 5.50-1qilnx
- creation of unzip package