Imported Upstream version 0.7.7
[platform/upstream/libsolv.git] / package / libsolv.spec.in
index ca649e8..cd56c67 100644 (file)
@@ -24,7 +24,7 @@
 %bcond_with bz2
 %bcond_with xz
 %endif
-%if 0%{?sle_version} >= 150000 || 0%{?suse_version} >= 1500
+%if 0%{?is_opensuse} && (0%{?sle_version} >= 150000 || 0%{?suse_version} >= 1500)
 %bcond_without zstd
 %else
 %bcond_with zstd
@@ -207,6 +207,7 @@ Perl bindings for libsolv.
 %setup -q
 
 %build
+%global _lto_cflags %{?_lto_cflags} -ffat-lto-objects
 export CFLAGS="%{optflags}"
 export CXXFLAGS="$CFLAGS"
 
@@ -221,7 +222,7 @@ CMAKE_FLAGS="-DMAGEIA=1"
 CMAKE_FLAGS="-DSUSE=1"
 %endif
 
-cmake  $CMAKE_FLAGS \
+cmake . $CMAKE_FLAGS \
        -DCMAKE_INSTALL_PREFIX=%{_prefix} \
        -DLIB=%{_lib} \
        -DCMAKE_VERBOSE_MAKEFILE=TRUE \
@@ -257,10 +258,6 @@ ln -s repo2solv %{buildroot}/%{_bindir}/repo2solv.sh
 %py3_compile %{buildroot}/%{python3_sitearch}
 %endif
 %endif
-%if %{with static}
-# we want to leave the .a file untouched
-export NO_BRP_STRIP_DEBUG=true
-%endif
 
 %check
 make ARGS=--output-on-failure test