From 320637aa1fc2b388dc9d34387e654f656a37d2ebd8989a2d6f5e9986aec067d9 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Mon, 7 May 2012 08:35:47 +0000 Subject: [PATCH] . OBS-URL: https://build.opensuse.org/package/show/Archiving/libarchive?expand=0&rev=11 --- libarchive.changes | 5 +++++ libarchive.spec | 21 ++------------------- 2 files changed, 7 insertions(+), 19 deletions(-) diff --git a/libarchive.changes b/libarchive.changes index 3cfcc86..89a0b86 100644 --- a/libarchive.changes +++ b/libarchive.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 7 08:35:39 UTC 2012 - werner@suse.de + +- Enforce usage of reentrant versions of libc functions + ------------------------------------------------------------------- Mon Feb 13 18:19:49 UTC 2012 - dvaleev@suse.com diff --git a/libarchive.spec b/libarchive.spec index 20d38b3..695c12b 100644 --- a/libarchive.spec +++ b/libarchive.spec @@ -16,7 +16,6 @@ # - Name: libarchive Version: 2.8.5 Release: 0 @@ -43,7 +42,6 @@ Patch1: libarchive-2.5.5_handle_ENOSYS_from_lutimes.patch Patch2: libarchive-test-fuzz.patch Patch3: libarchive-ignore-sigpipe-in-test-suite.patch - %description Libarchive is a programming library that can create and read several different streaming archive formats, including most popular tar @@ -57,22 +55,18 @@ This package contains the bsdtar cmdline utility. %package -n bsdtar - Summary: Creates and reads several different streaming archive formats Group: Productivity/Archiving/Compression - %description -n bsdtar This package contains the bsdtar cmdline utility. %package -n libarchive2 - # Summary: Library to work with several different streaming archive formats Group: Development/Libraries/C and C++ - %description -n libarchive2 Libarchive is a programming library that can create and read several different streaming archive formats, including most popular tar @@ -128,15 +122,13 @@ methods, or new ways of reading/writing archives. %package -n libarchive-devel - Requires: libacl-devel Requires: libarchive2 = %{version} -Requires: zlib-devel Requires: libbz2-devel +Requires: zlib-devel Summary: Development files for libarchive Group: Development/Libraries/C and C++ - %description -n libarchive-devel Libarchive is a programming library that can create and read several different streaming archive formats, including most popular tar @@ -154,17 +146,15 @@ This package contains the development files. %patch2 -p1 %patch3 -p1 - %build #autoreconf -fi +%global optflags %{optflags} -D_REENTRANT -pipe %configure --disable-static --enable-bsdcpio make %{?_smp_mflags} - %check make check - %install %makeinstall @@ -172,13 +162,10 @@ rm -fv minitar/*.o rm -fv %{buildroot}%{_libdir}/*.la rm "%{buildroot}%{_mandir}/man5/"{tar,cpio,mtree}.5* - %post -n libarchive2 -p /sbin/ldconfig - %postun -n libarchive2 -p /sbin/ldconfig - %files -n bsdtar %defattr(-,root,root) %{_bindir}/bsdtar @@ -186,13 +173,11 @@ rm "%{buildroot}%{_mandir}/man5/"{tar,cpio,mtree}.5* %{_mandir}/man1/* %{_mandir}/man5/* - %files -n libarchive2 %defattr(-,root,root) %{_libdir}/libarchive.so.* %doc COPYING INSTALL NEWS README examples/ - %files -n libarchive-devel %defattr(-,root,root) %{_mandir}/man3/* @@ -200,6 +185,4 @@ rm "%{buildroot}%{_mandir}/man5/"{tar,cpio,mtree}.5* %{_includedir}/archive* %{_libdir}/pkgconfig/libarchive.pc - - %changelog