]> git.pld-linux.org Git - packages/GConf2.git/commitdiff
fix build without static libs
authorJan Palus <atler@pld-linux.org>
Sat, 2 May 2020 11:43:11 +0000 (13:43 +0200)
committerJan Palus <atler@pld-linux.org>
Sat, 2 May 2020 11:43:11 +0000 (13:43 +0200)
GConf2.spec

index 5959c786cf6180279bdc475579631bbe4b49a786..09022149d6565ff7a53453143ab8818f35dc0d38 100644 (file)
@@ -207,7 +207,10 @@ cp examples/*.schemas $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 %find_lang %{name}
 
 # no *.{la,a} for modules - shut up check-files
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/{GConf2,gio/modules}/lib*.{la,a}
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/{GConf2,gio/modules}/lib*.la
+%if %{with static_libs}
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/{GConf2,gio/modules}/lib*.a
+%endif
 # obsoleted by pkg-config
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgconf-2.la
 
This page took 0.607409 seconds and 4 git commands to generate.