X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=package%2Flibsolv.spec.in;h=cd56c6744594e7dc108e39db3d04580d0087fba2;hb=f2f190a043324e9ab4fefab6e16577a9a103f5a9;hp=ca649e80beb1531eac6d4bf8345259dfc281692d;hpb=e679b515eddb3dd340fb25620de0160211f40fdc;p=platform%2Fupstream%2Flibsolv.git diff --git a/package/libsolv.spec.in b/package/libsolv.spec.in index ca649e8..cd56c67 100644 --- a/package/libsolv.spec.in +++ b/package/libsolv.spec.in @@ -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