From 5075323f16dfc5e1b6a5a416e2fbce360d938eb14a4493461f03902b9dec7975 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Wed, 19 Feb 2020 10:15:38 +0000 Subject: [PATCH] Accepting request 776242 from home:namtrac:branches:Archiving - Switch back to cmake build now that cmake-mini exists, this will no longer create a build-cycle. OBS-URL: https://build.opensuse.org/request/show/776242 OBS-URL: https://build.opensuse.org/package/show/Archiving/libarchive?expand=0&rev=97 --- libarchive.changes | 6 ++++++ libarchive.spec | 24 +++++++++--------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/libarchive.changes b/libarchive.changes index ba7821f..b74ba67 100644 --- a/libarchive.changes +++ b/libarchive.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Feb 18 14:46:07 UTC 2020 - Ismail Dönmez + +- Switch back to cmake build now that cmake-mini exists, this will + no longer create a build-cycle. + ------------------------------------------------------------------- Wed Feb 12 08:34:50 UTC 2020 - Ismail Dönmez diff --git a/libarchive.spec b/libarchive.spec index 0f6a795..8552dff 100644 --- a/libarchive.spec +++ b/libarchive.spec @@ -29,6 +29,7 @@ %bcond_without openssl %bcond_without ext2fs %endif + Name: libarchive Version: 3.4.2 Release: 0 @@ -42,12 +43,14 @@ Source2: libarchive.keyring Source1000: baselibs.conf Patch1: lib-suffix.patch Patch2: fix-soversion.patch +BuildRequires: cmake BuildRequires: libacl-devel BuildRequires: libbz2-devel BuildRequires: liblz4-devel BuildRequires: libtool BuildRequires: libxml2-devel BuildRequires: libzstd-devel +BuildRequires: ninja BuildRequires: pkgconfig BuildRequires: xz-devel BuildRequires: zlib-devel @@ -164,27 +167,18 @@ Static library for libarchive %autopatch -p1 %build -export CFLAGS="%{optflags} -D_REENTRANT -pipe" -export CXXFLAGS="$CFLAGS" -%configure \ - --disable-silent-rules \ -%if %{without static_libs} - --disable-static \ -%endif - --enable-bsdcpio - -# lzma mt detection is broken -sed -i -e "/HAVE_LZMA_STREAM_ENCODER_MT/d" config.h - -make %{?_smp_mflags} +%define __builder ninja +%cmake +%cmake_build %check -make %{?_smp_mflags} check +%ctest %install -%make_install +%cmake_install find %{buildroot} -type f -name "*.la" -delete -print +rm "%{buildroot}%{_libdir}/libarchive.a" rm "%{buildroot}%{_mandir}/man5/"{tar,cpio,mtree}.5* sed -i -e '/Libs.private/d' %{buildroot}%{_libdir}/pkgconfig/libarchive.pc