%define name p7zip %define version 4.16 %define release 1mdk Summary: 7-zip compatible compression program Name: %{name} Version: %{version} Release: %{release} Source0: http://prdownloads.sourceforge.net/p7zip/%{name}_%{version}_src.tar.bz2 License: LGPL Group: Archiving/Compression Url: http://p7zip.sourceforge.net/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot ExclusiveArch: %ix86 x86_64 alpha ppc %description p7zip is a port of 7za.exe for Unix. 7-Zip is a file archiver with highest compression ratio. Original version can be found at http://www.7zip.org. %prep %setup -q -n %{name}_%version %ifarch x86_64 cp makefile.linux_amd64 makefile.machine %endif %ifarch %ix86 alpha ppc cp makefile.linux_x86_ppc_alpha makefile.machine %endif perl -pi -e "s/-O2/%optflags/" makefile.glb find README ChangeLog TODO DOCS -type f|xargs chmod 644 %build %make %install rm -rf $RPM_BUILD_ROOT install -m 755 -D bin/7za %buildroot%_bindir/7za %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc README ChangeLog TODO DOCS/* %_bindir/7za %changelog * Fri Apr 8 2005 Götz Waschk <waschk@linux-mandrake.com> 4.16-1mdk - fix build - New release 4.16 * Wed Mar 16 2005 Götz Waschk <waschk@linux-mandrake.com> 4.14.01-2mdk - add docs * Mon Jan 24 2005 Goetz Waschk <waschk@linux-mandrake.com> 4.14.01-1mdk - New release 4.14.01 * Sat Jan 15 2005 waschk@linux-mandrake.com 4.14-1mdk - New release 4.14 * Fri Dec 17 2004 Goetz Waschk <waschk@linux-mandrake.com> 4.13-1mdk - New release 4.13 * Fri Nov 19 2004 Götz Waschk <waschk@linux-mandrake.com> 4.12-1mdk - fix build - drop patch - New release 4.12 * Mon Oct 25 2004 Götz Waschk <waschk@linux-mandrake.com> 4.10-2mdk - don't link statically * Sat Oct 23 2004 Götz Waschk <waschk@linux-mandrake.com> 4.10-1mdk - remove 7z and keep 7za - fix source URL - New release 4.10 * Thu Sep 16 2004 Götz Waschk <waschk@linux-mandrake.com> 0.91-1mdk - initial package