[packages/libwmf] fix build without static libs

atler atler at pld-linux.org
Thu May 21 18:23:22 CEST 2020


commit 2b88747ade384e4abec42d34893a13cc35b11782
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu May 21 18:23:02 2020 +0200

    fix build without static libs

 libwmf.spec | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/libwmf.spec b/libwmf.spec
index 53b972a..89ef851 100644
--- a/libwmf.spec
+++ b/libwmf.spec
@@ -132,7 +132,10 @@ rm -rf $RPM_BUILD_ROOT
 	DESTDIR=$RPM_BUILD_ROOT
 
 # no static modules and *.la for GTK+ loaders - shut up check-files
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/*/loaders/*.{a,la}
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/*/loaders/*.la
+%if %{with static_libs}
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/*/loaders/*.a
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libwmf.git/commitdiff/2b88747ade384e4abec42d34893a13cc35b11782



More information about the pld-cvs-commit mailing list