[packages/enchant] fix build without static libs
atler
atler at pld-linux.org
Sun Jan 24 00:39:48 CET 2021
commit 04ee05cfe6b03be940db6be048f630984647c445
Author: Jan Palus <atler at pld-linux.org>
Date: Sun Jan 24 00:39:05 2021 +0100
fix build without static libs
enchant.spec | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/enchant.spec b/enchant.spec
index e720a98..8265a1c 100644
--- a/enchant.spec
+++ b/enchant.spec
@@ -223,7 +223,8 @@ rm -rf $RPM_BUILD_ROOT
DESTDIR=$RPM_BUILD_ROOT
# useless - modules loaded through libgmodule
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/enchant/*.{la,a}
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/enchant/*.la
+%{?with_static_libs:%{__rm} $RPM_BUILD_ROOT%{_libdir}/enchant/*.a}
# obsoleted by pkg-config
%{__rm} $RPM_BUILD_ROOT%{_libdir}/libenchant.la
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/enchant.git/commitdiff/04ee05cfe6b03be940db6be048f630984647c445
More information about the pld-cvs-commit
mailing list