zip/zip.spec

65 lines
1.9 KiB
RPMSpec
Raw Normal View History

%define majver %(echo %version | cut -d. -f1)
%define minver %(echo %version | cut -d. -f2)
Name: zip
Version: 3.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: http://downloads.sourceforge.net/project/infozip/Zip3.x%28latest%29/%{version}/zip%{majver}%{minver}.tar.gz
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libbzip2-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.
Install the zip package if you need to compress files using the zip program.
%prep
%setup -n %{name}%{majver}%{minver}
%build
#CFLAGS="%{optflags}" \
make -f unix/Makefile zips CC=%{_host}-gcc
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
make -f unix/Makefile zips CC=%{_host}-gcc install \
prefix=%{buildroot}%{_prefix} \
MANDIR=%{buildroot}%{_mandir}/man1
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%files
%defattr(-,root,root)
%{_bindir}/zip
%{_bindir}/zipcloak
%{_bindir}/zipnote
%{_bindir}/zipsplit
%{_mandir}/man1/zip*.*
%doc BUGS CHANGES LICENSE README TODO WHATSNEW WHERE
%changelog
* Thu Jan 14 2010 Davide Madrisan <davide.madrisan@gmail.com> 3.0-1mamba
- update to 3.0
* Mon May 21 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 2.32-1mamba
- update to 2.32
- group entry fixed
* Mon Nov 08 2004 Davide Madrisan <davide.madrisan@qilinux.it> 2.3-2qilnx
- security fix QSA-2004-052 (CAN-2004-1010)
- added qilinux patch, specfiles updated
* Thu Apr 17 2003 Alessandro Ramazzina <alessandro.ramazzina@qinet.it> 2.3-1qilnx
- creation of zip package