Name: libarchive Summary: A library for handling streaming archive formats Version: 2.8.4 Release: 5%{?_dist_release} Group: System Environment/Libraries License: BSD URL: http://code.google.com/p/libarchive/ Source0: http://libarchive.googlecode.com/files/%{name}-%{version}.tar.gz Patch10: 0003-Patch-from-upstream-rev-2516.patch Patch11: 0004-Patch-from-upstream-rev-2514.patch Patch12: 0005-Patch-from-upstream-rev-2520.patch Patch13: 0006-Patch-from-upstream-rev-2521.patch Patch20: 0007-Ignore-ENOSYS-error-when-setting-up-xattrs.-Closes-5.patch # security fix Patch100: libarchive-2.8.4-CVE-2011-1777.patch Patch110: libarchive-2.8.4-CVE-2011-1778.patch BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: zlib-devel BuildRequires: bzip2-devel BuildRequires: libacl-devel BuildRequires: libattr-devel BuildRequires: openssl-devel BuildRequires: libxml2-devel BuildRequires: xz-devel BuildRequires: sharutils Vendor: Project Vine Distribution: Vine Linux %description Libarchive is a programming library that can create and read several different streaming archive formats, including most popular tar variants, several cpio formats, and both BSD and GNU ar variants. It can also write shar archives and read ISO9660 CDROM images and ZIP archives. %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %setup -q %patch10 -p1 -b .rev-2516 %patch11 -p1 -b .rev-2514 %patch12 -p1 -b .rev-2520 %patch13 -p1 -b .rev-2521 %patch20 -p1 -b .ENOSYS # security fix %patch100 -p1 -b .CVE-2011-1777 %patch110 -p1 -b .CVE-2011-1778 %build %configure \ --disable-static \ --disable-bsdtar --disable-bsdcpio make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT #iconv -f latin1 -t utf-8 < NEWS > NEWS.utf8; cp NEWS.utf8 NEWS find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' find $RPM_BUILD_ROOT -name cpio.5 -exec rm -f {} ';' find $RPM_BUILD_ROOT -name mtree.5 -exec rm -f {} ';' find $RPM_BUILD_ROOT -name tar.5 -exec rm -f {} ';' %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc COPYING README NEWS %{_libdir}/*.so.* %files devel %defattr(-,root,root,-) %doc %{_includedir}/* %{_mandir}/*/* %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %changelog * Fri May 4 2012 Satoshi IWAMOTO 2.8.4-5 - add patch100 for fix CVE-2011-1777 - add patch110 for fix CVE-2011-1778 - add patch10 - 20 from debian (upstream fixes) - add Vendor/Distri Tags * Thu May 19 2011 Yoji TOYODA 2.8.4-4 - add BuildRequires: openssl-devel, libxml2-devel * Thu May 19 2011 Daisuke SUZUKI 2.8.4-3 - rebuild against liblzma.so.5 * Sun Sep 26 2010 Yoji TOYODA 2.8.4-2 - rebuild with rpm-4.8.1 for pkg-config file * Sun Sep 5 2010 Ryoichi INAGAKI 2.8.4-1 - new upstream release * Wed Apr 14 2010 Ryoichi INAGAKI 2.8.3-1 - new upstream release - built with new toolchain * Wed Apr 8 2008 Ryoichi INAGAKI 2.6.0-1 - new upstream release * Wed Apr 2 2008 Ryoichi INAGAKI 2.4.14-1vl5 - Build for Vine Linux * Wed Mar 18 2008 Tomas Bzatek 2.4.14-1 - Initial packaging