Sophie

Sophie

distrib > Mageia > 5 > x86_64 > by-pkgid > 16ae0b234bd2d74ff0db4d066a67e0ed > files > 1

p7zip-9.20.1-6.1.mga5.src.rpm

Summary:	7-zip compatible compression program
Name:		p7zip
Version:	9.20.1
%define subrel	1
Release:	%mkrel 6
Source0:	http://prdownloads.sourceforge.net/p7zip/%{name}_%{version}_src_all.tar.bz2
Patch0:		p7zip_9.20.1-CVE-2015-1038.patch
License:	LGPLv2+
Group:		Archiving/Compression
Url:		http://p7zip.sourceforge.net/
%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
highest compression ratio.

%prep
%setup -q -n %{name}_%{version}
%apply_patches
%ifarch x86_64
cp makefile.linux_amd64_asm makefile.machine
%endif
%ifarch %ix86
cp makefile.linux_x86_asm_gcc_4.X makefile.machine
%endif
%ifarch alpha ppc
cp makefile.linux_x86_ppc_alpha_gcc_4.X makefile.machine
%endif
#gw really use our flags:
perl -pi -e "s/-s /%optflags /" makefile.machine
find DOCS -type d|xargs chmod 755
find README ChangeLog TODO DOCS -type f|xargs chmod 644

%build
%make all3

%install
%makeinstall DEST_HOME=%buildroot%_prefix DEST_MAN=%buildroot%_mandir DEST_SHARE=%buildroot%_libdir/%name
chmod -R +w %buildroot
#gw don't package this, it is non-free like unrar
rm -f %buildroot%_libdir/p7zip/Codecs/Rar29.so DOCS/unRarLicense.txt
#gw fix paths in wrapper scripts and man pages
perl -pi -e "s^%buildroot^^" %buildroot%_bindir/* %buildroot%_mandir/man1/*

%files
%doc README ChangeLog TODO DOCS/*
%{_bindir}/7za
%{_bindir}/7zr
%{_bindir}/7z
%_libdir/p7zip
%_mandir/man1/*


%changelog
* Sat Jun 20 2015 luigiwalser <luigiwalser> 9.20.1-6.1.mga5
+ Revision: 836126
- add patch from debian to fix CVE-2015-1038

* Wed Oct 15 2014 umeabot <umeabot> 9.20.1-6.mga5
+ Revision: 746759
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 9.20.1-5.mga5
+ Revision: 683302
- Mageia 5 Mass Rebuild

* Fri Oct 18 2013 umeabot <umeabot> 9.20.1-4.mga4
+ Revision: 508806
- Mageia 4 Mass Rebuild

* Sun Jan 13 2013 umeabot <umeabot> 9.20.1-3.mga3
+ Revision: 362330
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Fri Nov 16 2012 zezinho <zezinho> 9.20.1-2.mga3
+ Revision: 318986
- spec cleanup

  + dams <dams>
    - delete patch

* Wed Jul 13 2011 dams <dams> 9.20.1-1.mga2
+ Revision: 123771
- Update to 9.20.1
- Drop patch

* Mon Mar 07 2011 nanardon <nanardon> 9.13-2.mga1
+ Revision: 65806
- imported package p7zip