You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
p7zip/p7zip.spec

222 lines
6.5 KiB

Summary: Very high compression ratio file archiver
Name: p7zip
Version: 4.61
Release: 2%{?dist}
18 years ago
# Files under C/Compress/Lzma/ are dual LGPL or CPL
License: LGPLv2 and (LGPLv2+ or CPL)
Group: Applications/Archiving
URL: http://p7zip.sourceforge.net/
# RAR sources removed since their license is incompatible with the LGPL
#Source: http://dl.sf.net/p7zip/p7zip_%{version}_src_all.tar.bz2
# VERSION=
# tar xjvf p7zip_${VERSION}_src_all.tar.bz2
18 years ago
# rm -rf p7zip_${VERSION}/CPP/7zip/{Archive,Compress,Crypto}/Rar*
# rm -f p7zip_${VERSION}/DOCS/unRarLicense.txt
19 years ago
# tar --numeric-owner -cjvf p7zip_${VERSION}_src_all-norar.tar.bz2 p7zip_${VERSION}
Source: p7zip_%{version}_src_all-norar.tar.bz2
Patch0: p7zip_4.61-norar.patch
17 years ago
Patch1: p7zip_4.58-install.patch
18 years ago
Patch2: p7zip_4.51-nostrip.patch
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
%ifarch %{ix86}
BuildRequires: nasm
%endif
%ifarch x86_64
BuildRequires: yasm
%endif
%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
18 years ago
Requires: %{name} = %{version}-%{release}
%description plugins
Additional plugins that can be used with 7z to extend its abilities.
This package contains also a virtual file system for Midnight Commander.
%prep
18 years ago
%setup -q -n %{name}_%{version}
%patch0 -p1 -b .norar
%patch1 -p1 -b .install
%patch2 -p1 -b .nostrip
# Move docs early so that they don't get installed by "make install" and we
# can include them in %%doc
%{__mv} DOCS docs
%{__mv} ChangeLog README TODO docs/
# And fix useless executable bit while we're at it
find docs -type f -exec chmod -x {} \;
find contrib -type f -exec chmod -x {} \;
19 years ago
%build
%ifarch %{ix86}
%{__cp} -f makefile.linux_x86_asm_gcc_4.X makefile.machine
%endif
%ifarch x86_64
%{__cp} -f makefile.linux_amd64_asm makefile.machine
%endif
%ifarch ppc ppc64
%{__cp} -f makefile.linux_x86_ppc_alpha_gcc_4.X makefile.machine
%endif
# Don't use _smp_mflags since the build sometimes fails with it (as of 4.44)
%{__make} %{?_smp_mflags} all2 \
OPTFLAGS="%{optflags}" \
DEST_HOME=%{_prefix} \
DEST_BIN=%{_bindir} \
DEST_SHARE=%{_libexecdir}/p7zip \
DEST_MAN=%{_mandir}
%install
%{__rm} -rf %{buildroot}
%{__make} install \
DEST_DIR=%{buildroot} \
DEST_HOME=%{_prefix} \
DEST_BIN=%{_bindir} \
DEST_SHARE=%{_libexecdir}/p7zip \
DEST_MAN=%{_mandir}
%clean
%{__rm} -rf %{buildroot}
%files
18 years ago
%defattr(-,root,root,-)
%doc docs/*
%{_bindir}/7za
%dir %{_libexecdir}/p7zip/
%{_libexecdir}/p7zip/7za
%{_libexecdir}/p7zip/7zCon.sfx
%{_mandir}/man1/7za.1*
%exclude %{_mandir}/man1/7zr.1*
%files plugins
18 years ago
%defattr(-,root,root,-)
%doc contrib/
%{_bindir}/7z
%{_libexecdir}/p7zip/7z
%{_libexecdir}/p7zip/7z.so
#{_libexecdir}/p7zip/Codecs/
#{_libexecdir}/p7zip/Formats/
%{_mandir}/man1/7z.1*
%changelog
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.61-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Tue Dec 23 2008 Matthias Saou <http://freshrpms.net/> 4.61-1
- Update to 4.61.
- Update norar patch.
- Use asm for x86 too (nasm).
17 years ago
* Wed Jun 18 2008 Matthias Saou <http://freshrpms.net/> 4.58-1
- Update to 4.58.
- Update norar patch.
- Update install patch.
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org>
- Autorebuild for GCC 4.3
* Wed Aug 22 2007 Matthias Saou <http://freshrpms.net/> 4.51-3
- Rebuild for new BuildID feature.
* Thu Aug 9 2007 Matthias Saou <http://freshrpms.net/> 4.51-2
- Update License field some more (LGPL+ to LGPLv2+).
18 years ago
* Sun Aug 5 2007 Matthias Saou <http://freshrpms.net/> 4.51-1
- Update to 4.51.
- Update License field.
* Tue Jun 19 2007 Matthias Saou <http://freshrpms.net/> 4.47-1
- Update to 4.47.
- Include now required patch to exclude removed Rar bits from makefiles.
- Switch to using "make install" for installation... so patch and hack.
- Use the asm makefile for x86_64, so build require yasm for it too.
- Add ppc64 to the main %%ifarch.
- Remove no longer included Codecs and Formats dirs (7z.so replaces them?).
- Remove our wrapper scripts, since the install script creates its own.
* Thu Mar 1 2007 Matthias Saou <http://freshrpms.net/> 4.44-2
- Remove _smp_mflags since some builds fail with suspicious errors.
18 years ago
* Thu Mar 1 2007 Matthias Saou <http://freshrpms.net/> 4.44-1
- Update to 4.44.
19 years ago
* Mon Aug 28 2006 Matthias Saou <http://freshrpms.net/> 4.42-2
- FC6 rebuild.
19 years ago
* Thu Jun 29 2006 Matthias Saou <http://freshrpms.net/> 4.42-1
- Update to 4.42.
* Tue May 2 2006 Matthias Saou <http://freshrpms.net/> 4.39-1
- Update to 4.39.
- Remove no longer needed gcc 4.1 patch.
- Use the gcc_4.X makefile.
- Remove RAR licensed files and RAR license itself (#190277).
19 years ago
* Mon Mar 6 2006 Matthias Saou <http://freshrpms.net/> 4.30-3
- FC5 rebuild.
* Thu Feb 9 2006 Matthias Saou <http://freshrpms.net/> 4.30-2
- Rebuild for new gcc/glibc.
- Include gcc 4.1 patch for extra qualification errors.
19 years ago
* Mon Nov 28 2005 Matthias Saou <http://freshrpms.net/> 4.30-1
- Update to 4.30.
* Thu Oct 27 2005 Matthias Saou <http://freshrpms.net/> 4.29-3
- Double quote args passed inside the shell scripts, to fix #171480.
* Mon Oct 10 2005 Matthias Saou <http://freshrpms.net/> 4.29-2
20 years ago
- Update to 4.29.
20 years ago
* Sun Jun 05 2005 Dag Wieers <dag@wieers.com> - 4.20-1
- Updated to release 4.20.
* Sun Apr 10 2005 Dag Wieers <dag@wieers.com> - 4.16-1
- Moved inline scripts to %%prep stage.
- Removed quotes for $@ as it should not be necessary.
* 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@wp.pl>
- upgraded to 4.14.01
* Sun Jan 16 2005 Marcin Zajączkowski <mszpak@wp.pl>
- upgraded to 4.14
* Mon Dec 20 2004 Marcin Zajączkowski <mszpak@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@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@wp.pl>
- upgraded to 4.12
- added virtual file system for Midnight Commander
* Thu Nov 11 2004 Marcin Zajączkowski <mszpak@wp.pl>
- upgraded to 4.10
- plugins support was dropped out from p7zip
* Sun Aug 29 2004 Marcin Zajączkowski <mszpak@wp.pl>
- initial release