[SVN] r3028 - in trunk/rpms: . p7zip

svn-commits at rpmforge.net svn-commits at rpmforge.net
Thu Mar 17 00:41:55 CET 2005


Author: thias
Date: 2005-03-17 00:41:53 +0100 (Thu, 17 Mar 2005)
New Revision: 3028

Added:
   trunk/rpms/p7zip/
   trunk/rpms/p7zip/p7zip.spec
Log:
Initial import of p7zip.


Added: trunk/rpms/p7zip/p7zip.spec
===================================================================
--- trunk/rpms/p7zip/p7zip.spec	2005-03-16 15:55:17 UTC (rev 3027)
+++ trunk/rpms/p7zip/p7zip.spec	2005-03-16 23:41:53 UTC (rev 3028)
@@ -0,0 +1,130 @@
+# $Id$
+# Authority: matthias
+
+Summary: Very high compression ratio file archiver
+Name: p7zip
+Version: 4.14.01
+Release: 1
+License: LGPL
+Group: Applications/Archiving
+URL: http://p7zip.sourceforge.net/
+Source: http://dl.sf.net/p7zip/p7zip_%{version}_src.tar.bz2
+Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
+BuildRequires: gcc-c++
+
+%description 
+p7zip is a port of 7za.exe for Unix. 7-Zip is a file archiver with a very high
+compression ratio. The original version can be found at http://www.7-zip.org/.
+
+
+%package plugins
+Summary: Additional plugins for p7zip
+Group: Applications/Archiving
+Requires: %{name} = %{version}
+
+%description plugins
+Additional plugins that can be used with 7z to extend its abilities.
+This package contains also a virtual file system for Midnigth Commander.
+
+
+%prep 
+%setup -n %{name}_%{version}
+
+
+%build
+%ifarch %{ix86}
+%{__cp} -f makefile.linux_x86 makefile.machine
+%endif
+%ifarch x86_64
+%{__cp} -f makefile.linux_amd64 makefile.machine
+%endif
+%ifarch ppc
+%{__cp} -f makefile.linux_ppc makefile.machine
+%endif
+
+# Use optflags
+%{__perl} -pi -e 's|^ALLFLAGS=.*|ALLFLAGS=-Wall %{optflags} -fPIC \\|g' \
+    makefile.machine
+
+%{__make} %{?_smp_mflags} 7z 7za sfx
+
+
+%install 
+%{__rm} -rf %{buildroot}
+
+# Prepare directories
+%{__mkdir_p} %{buildroot}{%{_bindir},%{_libexecdir}/p7zip}
+
+# Install binaries (7za, 7z, 7zCon.sfx and Codecs/Formats)
+%{__cp} -a bin/* %{buildroot}%{_libexecdir}/p7zip/
+
+# Create wrapper scripts, as 7zCon.sfx and Codecs/Formats need to be in the
+# same directory as the binaries, and we don't want them in %{_bindir}.
+%{__cat} > %{buildroot}%{_bindir}/7za << 'EOF'
+#!/bin/sh
+exec %{_libexecdir}/p7zip/7za "$@"
+EOF
+%{__cat} > %{buildroot}%{_bindir}/7z << 'EOF'
+#!/bin/sh
+exec %{_libexecdir}/p7zip/7z "$@"
+EOF
+
+# Since we use "-" defattr, change wrapper scripts to executable now
+%{__chmod} +x %{buildroot}%{_bindir}/*
+
+
+%clean
+%{__rm} -rf %{buildroot}
+
+
+%files 
+%defattr(-, root, root, 0755) 
+%doc ChangeLog README TODO DOCS/*
+%{_bindir}/7za
+%dir %{_libexecdir}/p7zip/
+%{_libexecdir}/p7zip/7za
+%{_libexecdir}/p7zip/7zCon.sfx
+
+%files plugins
+%defattr(-, root, root, 0755) 
+%doc contrib/
+%{_bindir}/7z
+%{_libexecdir}/p7zip/7z
+%{_libexecdir}/p7zip/Codecs/
+%{_libexecdir}/p7zip/Formats/
+
+
+%changelog
+* Thu Mar 17 2005 Matthias Saou <http://freshrpms.net/> 4.14.01-1
+- Spec file cleanup.
+- Fix wrapper scripts : Double quote $@ for filenames with spaces to work.
+- Move files from /usr/share to /usr/libexec.
+- Various other minor changes.
+
+* Mon Jan 24 2005 Marcin Zaj±czkowski <mszpak at wp.pl>
+ - upgraded to 4.14.01
+
+* Sun Jan 16 2005 Marcin Zaj±czkowski <mszpak at wp.pl>
+ - upgraded to 4.14
+
+* Mon Dec 20 2004 Marcin Zaj±czkowski <mszpak at wp.pl>
+ - added 7za script and moved SFX module to {_datadir}/%{name}/ to allow 7za & 7z
+   use it simultaneously
+ - returned to plugins in separate package
+
+* Sat Dec 18 2004 Charles Duffy <cduffy at spamcop.net>
+ - upgraded to 4.13
+ - added 7z (not just 7za) with a shell wrapper
+ - added gcc-c++ to the BuildRequires list
+
+* Sat Nov 20 2004 Marcin Zaj±czkowski <mszpak at wp.pl>
+ - upgraded to 4.12
+ - added virtual file system for Midnight Commander
+
+* Thu Nov 11 2004 Marcin Zaj±czkowski <mszpak at wp.pl>
+ - upgraded to 4.10
+ - plugins support was dropped out from p7zip
+
+* Sun Aug 29 2004 Marcin Zaj±czkowski <mszpak at wp.pl>
+ - initial release
+


Property changes on: trunk/rpms/p7zip/p7zip.spec
___________________________________________________________________
Name: svn:keywords
   + Id




More information about the commits mailing list