diff --git a/libarchive.spec b/libarchive.spec index a1ff273..3e393b6 100644 --- a/libarchive.spec +++ b/libarchive.spec @@ -1,6 +1,6 @@ Name: libarchive Version: 3.0.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A library for handling streaming archive formats Group: System Environment/Libraries @@ -39,12 +39,33 @@ The %{name}-devel package contains libraries and header files for developing applications that use %{name}. +%package -n bsdtar +Summary: bsdtar utility +Group: Applications/File + +%description -n bsdtar +The bsdtar package contains standalone bsdtar utility split off regular +libarchive packages. + + +%package -n bsdcpio +Summary: bsdcpio utility +Group: Applications/File + +%description -n bsdcpio +The bsdcpio package contains standalone bsdcpio utility split off regular +libarchive packages. + + %prep %setup -q -n %{name}-%{version} %build -%configure --disable-static --disable-bsdtar --disable-bsdcpio +%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 make %{?_smp_mflags} @@ -81,8 +102,21 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libarchive.so %{_libdir}/pkgconfig/libarchive.pc +%files -n bsdtar +%defattr(-,root,root,-) +%doc COPYING README NEWS +%{_bindir}/bsdtar + +%files -n bsdcpio +%defattr(-,root,root,-) +%doc COPYING README NEWS +%{_bindir}/bsdcpio + %changelog +* Wed Feb 1 2012 Tomas Bzatek - 3.0.3-2 +- Enable bsdtar and bsdcpio in separate subpackages (#786400) + * Fri Jan 13 2012 Tomas Bzatek - 3.0.3-1 - Update to 3.0.3