From 2d432213644bab761e60d0ef1d872d8c1b7a12c74d8871efcc721679b3439d99 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 4 Jan 2021 21:48:19 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Base:System/libcap?expand=0&rev=51 --- libcap.spec | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/libcap.spec b/libcap.spec index 5fcc69b..a7c2ab0 100644 --- a/libcap.spec +++ b/libcap.spec @@ -92,10 +92,8 @@ libcap. %autopatch -p1 %build -%global _lto_cflags %{_lto_cflags} -ffat-lto-objects -%global buildvariables RAISE_SETFCAP=no prefix=%{_prefix} lib=%{_lib} SHARED=yes \ - LIBDIR=%{_libdir} SBINDIR=%{_sbindir} PKGCONFIGDIR=%{_libdir}/pkgconfig/ \ - INCDIR=%{_includedir} MANDIR=%{_mandir} SHARED=yes DEBUG="-g %{optflags}" +%global _lto_cflags %{nil} +%global buildvariables RAISE_SETFCAP=no prefix=%{_prefix} lib=%{_lib} SHARED=yes LIBDIR=%{_libdir} SBINDIR=%{_sbindir} PKGCONFIGDIR=%{_libdir}/pkgconfig/ INCDIR=%{_includedir} MANDIR=%{_mandir} SHARED=yes COPTS="%{optflags}" make %{buildvariables} @@ -108,7 +106,7 @@ rm %{buildroot}%{_libdir}/libcap.a %fdupes -s %{buildroot} %check -make test +make %{buildvariables} test %post -n libcap2 -p /sbin/ldconfig %postun -n libcap2 -p /sbin/ldconfig