swt2c / rpms / p7zip

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