2008-03-19 09:16:09 +00:00
|
|
|
Name: libarchive
|
2013-03-28 15:13:55 +00:00
|
|
|
Version: 3.1.2
|
2013-07-22 12:16:42 +00:00
|
|
|
Release: 5%{?dist}
|
2012-10-03 11:22:24 +00:00
|
|
|
Summary: A library for handling streaming archive formats
|
2008-03-19 09:16:09 +00:00
|
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
License: BSD
|
2013-03-28 15:13:55 +00:00
|
|
|
URL: http://www.libarchive.org/
|
2013-06-24 12:18:27 +00:00
|
|
|
Source0: http://www.libarchive.org/downloads/%{name}-%{version}.tar.gz
|
2008-03-19 09:16:09 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
2009-05-12 12:38:37 +00:00
|
|
|
|
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: sharutils
|
2008-03-19 09:16:09 +00:00
|
|
|
BuildRequires: zlib-devel
|
|
|
|
BuildRequires: bzip2-devel
|
2009-07-27 13:39:58 +00:00
|
|
|
BuildRequires: xz-devel
|
2013-01-17 11:08:39 +00:00
|
|
|
BuildRequires: lzo-devel
|
2008-12-09 10:33:03 +00:00
|
|
|
BuildRequires: e2fsprogs-devel
|
|
|
|
BuildRequires: libacl-devel
|
|
|
|
BuildRequires: libattr-devel
|
2009-05-12 12:38:37 +00:00
|
|
|
BuildRequires: openssl-devel
|
2010-01-06 14:07:33 +00:00
|
|
|
BuildRequires: libxml2-devel
|
2013-01-14 16:20:29 +00:00
|
|
|
BuildRequires: automake autoconf libtool
|
2009-05-12 12:38:37 +00:00
|
|
|
|
2010-06-30 15:50:33 +00:00
|
|
|
|
2013-03-28 15:13:55 +00:00
|
|
|
# CVE-2013-0211 libarchive: read buffer overflow on 64-bit systems
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=927105
|
|
|
|
Patch0: libarchive-3.1.3-CVE-2013-0211_read_buffer_overflow.patch
|
|
|
|
|
2013-06-30 17:49:33 +00:00
|
|
|
Patch1: libarchive-3.1.2-testsuite.patch
|
2013-03-28 15:13:55 +00:00
|
|
|
|
2008-03-19 09:16:09 +00:00
|
|
|
%description
|
2012-10-03 11:22:24 +00:00
|
|
|
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
|
2008-03-19 09:16:09 +00:00
|
|
|
read ISO9660 CDROM images and ZIP archives.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries
|
2011-11-15 15:26:41 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2008-03-19 09:16:09 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
2012-02-01 13:36:46 +00:00
|
|
|
%package -n bsdtar
|
2012-10-03 11:22:24 +00:00
|
|
|
Summary: Manipulate tape archives
|
2012-02-01 13:36:46 +00:00
|
|
|
Group: Applications/File
|
2013-06-24 12:38:40 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2012-02-01 13:36:46 +00:00
|
|
|
|
|
|
|
%description -n bsdtar
|
|
|
|
The bsdtar package contains standalone bsdtar utility split off regular
|
|
|
|
libarchive packages.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n bsdcpio
|
2012-10-03 11:22:24 +00:00
|
|
|
Summary: Copy files to and from archives
|
2012-02-01 13:36:46 +00:00
|
|
|
Group: Applications/File
|
2013-06-24 12:38:40 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2012-02-01 13:36:46 +00:00
|
|
|
|
|
|
|
%description -n bsdcpio
|
|
|
|
The bsdcpio package contains standalone bsdcpio utility split off regular
|
|
|
|
libarchive packages.
|
|
|
|
|
|
|
|
|
2008-03-19 09:16:09 +00:00
|
|
|
%prep
|
2012-01-13 13:25:51 +00:00
|
|
|
%setup -q -n %{name}-%{version}
|
2013-03-28 15:13:55 +00:00
|
|
|
%patch0 -p1 -b .CVE-2013-0211
|
2013-06-30 17:49:33 +00:00
|
|
|
# fix bugs in testsuite
|
|
|
|
# ~> upstream ~> 26629c191a & b539b2e597 & 9caa49246
|
|
|
|
%patch1 -p1 -b .fix-testsuite
|
2008-03-19 09:16:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
2013-01-14 16:20:29 +00:00
|
|
|
build/autogen.sh
|
2012-02-01 13:36:46 +00:00
|
|
|
%configure --disable-static --disable-rpath
|
|
|
|
# remove rpaths
|
|
|
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
2013-06-30 17:49:33 +00:00
|
|
|
|
|
|
|
test -z "$V" && verbose_make="V=1"
|
|
|
|
make %{?_smp_mflags} $verbose_make
|
2008-03-19 09:16:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
|
|
|
|
|
|
|
|
2013-06-30 17:49:33 +00:00
|
|
|
%check
|
2013-07-22 12:16:42 +00:00
|
|
|
run_testsuite()
|
|
|
|
{
|
|
|
|
LD_LIBRARY_PATH=`pwd`/.libs make check -j1
|
|
|
|
res=$?
|
|
|
|
echo $res
|
|
|
|
if [ $res -ne 0 ]; then
|
|
|
|
# error happened - try to extract in koji as much info as possible
|
|
|
|
cat test-suite.log
|
|
|
|
echo "========================="
|
|
|
|
err=`cat test-suite.log | grep "Details for failing tests" | cut -d: -f2`
|
|
|
|
for i in $err; do
|
|
|
|
find $i -printf "%p\n ~> a: %a\n ~> c: %c\n ~> t: %t\n ~> %s B\n"
|
|
|
|
echo "-------------------------"
|
|
|
|
cat $i/*.log
|
|
|
|
done
|
|
|
|
return 1
|
|
|
|
else
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
run_testsuite
|
|
|
|
%ifarch ppc
|
|
|
|
# On a ppc/ppc64 is some race condition causing 'make check' fail on ppc
|
|
|
|
# when both 32 and 64 builds are done in parallel on the same machine in
|
|
|
|
# koji. Try to run once again if failed.
|
|
|
|
test $? -ne 0 && run_testsuite
|
|
|
|
%endif
|
2013-06-30 17:49:33 +00:00
|
|
|
|
2008-03-19 09:16:09 +00:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
2013-06-30 17:49:33 +00:00
|
|
|
|
2008-03-19 09:16:09 +00:00
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING README NEWS
|
2013-01-14 16:20:29 +00:00
|
|
|
%{_libdir}/libarchive.so.13*
|
2012-10-03 11:22:24 +00:00
|
|
|
%{_mandir}/*/cpio.*
|
|
|
|
%{_mandir}/*/mtree.*
|
|
|
|
%{_mandir}/*/tar.*
|
2008-03-19 09:16:09 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc
|
2011-11-15 15:26:41 +00:00
|
|
|
%{_includedir}/*.h
|
2012-10-03 11:22:24 +00:00
|
|
|
%{_mandir}/*/archive*
|
|
|
|
%{_mandir}/*/libarchive*
|
2011-11-15 15:26:41 +00:00
|
|
|
%{_libdir}/libarchive.so
|
|
|
|
%{_libdir}/pkgconfig/libarchive.pc
|
2008-03-19 09:16:09 +00:00
|
|
|
|
2012-02-01 13:36:46 +00:00
|
|
|
%files -n bsdtar
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING README NEWS
|
|
|
|
%{_bindir}/bsdtar
|
2012-10-03 11:22:24 +00:00
|
|
|
%{_mandir}/*/bsdtar*
|
2012-02-01 13:36:46 +00:00
|
|
|
|
|
|
|
%files -n bsdcpio
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING README NEWS
|
|
|
|
%{_bindir}/bsdcpio
|
2012-10-03 11:22:24 +00:00
|
|
|
%{_mandir}/*/bsdcpio*
|
2012-02-01 13:36:46 +00:00
|
|
|
|
2008-03-19 09:16:09 +00:00
|
|
|
|
|
|
|
%changelog
|
2013-07-22 12:16:42 +00:00
|
|
|
* Mon Jul 22 2013 Pavel Raiskup <praiskup@redhat.com> - 3.1.2-5
|
|
|
|
- try to workaround racy testsuite fail
|
|
|
|
|
2013-06-30 17:49:33 +00:00
|
|
|
* Sun Jun 30 2013 Pavel Raiskup <praiskup@redhat.com> - 3.1.2-4
|
|
|
|
- enable testsuite in the %%check phase
|
|
|
|
|
2013-06-24 12:38:40 +00:00
|
|
|
* Mon Jun 24 2013 Pavel Raiskup <praiskup@redhat.com> - 3.1.2-3
|
|
|
|
- bsdtar/bsdcpio should require versioned libarchive
|
|
|
|
|
2013-04-03 15:33:10 +00:00
|
|
|
* Wed Apr 3 2013 Tomas Bzatek <tbzatek@redhat.com> - 3.1.2-2
|
|
|
|
- Remove libunistring-devel build require
|
|
|
|
|
2013-03-28 15:13:55 +00:00
|
|
|
* Thu Mar 28 2013 Tomas Bzatek <tbzatek@redhat.com> - 3.1.2-1
|
|
|
|
- Update to 3.1.2
|
|
|
|
- Fix CVE-2013-0211: read buffer overflow on 64-bit systems (#927105)
|
|
|
|
|
2013-02-14 04:02:02 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2013-01-14 16:20:29 +00:00
|
|
|
* Mon Jan 14 2013 Tomas Bzatek <tbzatek@redhat.com> - 3.1.1-1
|
|
|
|
- Update to 3.1.1
|
|
|
|
- NEWS seems to be valid UTF-8 nowadays
|
|
|
|
|
2012-10-03 11:22:24 +00:00
|
|
|
* Wed Oct 03 2012 Pavel Raiskup <praiskup@redhat.com> - 3.0.4-3
|
|
|
|
- better install manual pages for libarchive/bsdtar/bsdcpio (# ... )
|
|
|
|
- several fedora-review fixes ...:
|
|
|
|
- Source0 has moved to github.com
|
|
|
|
- remove trailing white spaces
|
|
|
|
- repair summary to better describe bsdtar/cpiotar utilities
|
|
|
|
|
2012-07-19 19:15:26 +00:00
|
|
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-05-07 10:25:26 +00:00
|
|
|
* Mon May 7 2012 Tomas Bzatek <tbzatek@redhat.com> - 3.0.4-1
|
|
|
|
- Update to 3.0.4
|
|
|
|
|
2012-02-01 13:36:46 +00:00
|
|
|
* Wed Feb 1 2012 Tomas Bzatek <tbzatek@redhat.com> - 3.0.3-2
|
|
|
|
- Enable bsdtar and bsdcpio in separate subpackages (#786400)
|
|
|
|
|
2012-01-13 13:25:51 +00:00
|
|
|
* Fri Jan 13 2012 Tomas Bzatek <tbzatek@redhat.com> - 3.0.3-1
|
|
|
|
- Update to 3.0.3
|
|
|
|
|
2012-01-13 07:22:23 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.0-0.3.a
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-11-15 15:26:41 +00:00
|
|
|
* Tue Nov 15 2011 Rex Dieter <rdieter@fedoraproject.org> 3.0.0-0.2.a
|
|
|
|
- track files/sonames closer, so abi bumps aren't a surprise
|
|
|
|
- tighten subpkg deps via %%_isa
|
|
|
|
|
2011-11-14 15:44:22 +00:00
|
|
|
* Mon Nov 14 2011 Tomas Bzatek <tbzatek@redhat.com> - 3.0.0-0.1.a
|
|
|
|
- Update to 3.0.0a (alpha release)
|
|
|
|
|
2011-09-05 08:45:34 +00:00
|
|
|
* Mon Sep 5 2011 Tomas Bzatek <tbzatek@redhat.com> - 2.8.5-1
|
|
|
|
- Update to 2.8.5
|
|
|
|
|
2011-02-08 04:38:28 +00:00
|
|
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.4-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2011-01-13 12:38:30 +00:00
|
|
|
* Thu Jan 13 2011 Tomas Bzatek <tbzatek@redhat.com> - 2.8.4-2
|
|
|
|
- Rebuild for new xz-libs
|
|
|
|
|
2010-06-30 15:50:33 +00:00
|
|
|
* Wed Jun 30 2010 Tomas Bzatek <tbzatek@redhat.com> - 2.8.4-1
|
|
|
|
- Update to 2.8.4
|
|
|
|
|
|
|
|
* Fri Jun 25 2010 Tomas Bzatek <tbzatek@redhat.com> - 2.8.3-2
|
|
|
|
- Fix ISO9660 reader data type mismatches (#597243)
|
|
|
|
|
2010-03-16 14:32:21 +00:00
|
|
|
* Tue Mar 16 2010 Tomas Bzatek <tbzatek@redhat.com> - 2.8.3-1
|
|
|
|
- Update to 2.8.3
|
|
|
|
|
2010-03-08 14:56:21 +00:00
|
|
|
* Mon Mar 8 2010 Tomas Bzatek <tbzatek@redhat.com> - 2.8.1-1
|
|
|
|
- Update to 2.8.1
|
|
|
|
|
2010-02-05 10:29:24 +00:00
|
|
|
* Fri Feb 5 2010 Tomas Bzatek <tbzatek@redhat.com> - 2.8.0-1
|
|
|
|
- Update to 2.8.0
|
|
|
|
|
2010-01-06 14:07:33 +00:00
|
|
|
* Wed Jan 6 2010 Tomas Bzatek <tbzatek@redhat.com> - 2.7.902a-1
|
|
|
|
- Update to 2.7.902a
|
|
|
|
|
2009-08-21 14:14:28 +00:00
|
|
|
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 2.7.1-2
|
|
|
|
- rebuilt with new openssl
|
|
|
|
|
2009-08-07 11:47:21 +00:00
|
|
|
* Fri Aug 7 2009 Tomas Bzatek <tbzatek@redhat.com> 2.7.1-1
|
|
|
|
- Update to 2.7.1
|
|
|
|
- Drop deprecated lzma dependency, libxz handles both formats
|
|
|
|
|
2009-07-27 13:39:58 +00:00
|
|
|
* Mon Jul 27 2009 Tomas Bzatek <tbzatek@redhat.com> 2.7.0-3
|
|
|
|
- Enable XZ compression format
|
|
|
|
|
2009-07-25 05:18:51 +00:00
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-05-12 12:38:37 +00:00
|
|
|
* Tue May 12 2009 Tomas Bzatek <tbzatek@redhat.com> 2.7.0-1
|
|
|
|
- Update to 2.7.0
|
|
|
|
|
2009-03-06 10:22:51 +00:00
|
|
|
* Fri Mar 6 2009 Tomas Bzatek <tbzatek@redhat.com> 2.6.2-1
|
|
|
|
- Update to 2.6.2
|
|
|
|
|
2009-02-25 13:41:02 +00:00
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2009-02-16 14:18:20 +00:00
|
|
|
* Mon Feb 16 2009 Tomas Bzatek <tbzatek@redhat.com> 2.6.1-1
|
|
|
|
- Update to 2.6.1
|
|
|
|
|
2009-01-08 10:33:03 +00:00
|
|
|
* Thu Jan 8 2009 Tomas Bzatek <tbzatek@redhat.com> 2.6.0-1
|
|
|
|
- Update to 2.6.0
|
|
|
|
|
2008-12-15 16:24:46 +00:00
|
|
|
* Mon Dec 15 2008 Tomas Bzatek <tbzatek@redhat.com> 2.5.904a-1
|
|
|
|
- Update to 2.5.904a
|
|
|
|
|
2008-12-09 10:33:03 +00:00
|
|
|
* Tue Dec 9 2008 Tomas Bzatek <tbzatek@redhat.com> 2.5.903a-2
|
|
|
|
- Add LZMA support
|
|
|
|
|
2008-12-08 16:20:40 +00:00
|
|
|
* Mon Dec 8 2008 Tomas Bzatek <tbzatek@redhat.com> 2.5.903a-1
|
|
|
|
- Update to 2.5.903a
|
|
|
|
|
2008-07-22 12:38:12 +00:00
|
|
|
* Tue Jul 22 2008 Tomas Bzatek <tbzatek@redhat.com> 2.5.5-1
|
|
|
|
- Update to 2.5.5
|
|
|
|
|
2008-04-02 09:02:41 +00:00
|
|
|
* Wed Apr 2 2008 Tomas Bzatek <tbzatek@redhat.com> 2.4.17-1
|
|
|
|
- Update to 2.4.17
|
|
|
|
|
2013-06-24 12:18:27 +00:00
|
|
|
* Wed Mar 19 2008 Tomas Bzatek <tbzatek@redhat.com> 2.4.14-1
|
2008-03-19 09:16:09 +00:00
|
|
|
- Initial packaging
|