[packages/icu] add static_libs bcond
glen
glen at pld-linux.org
Wed Dec 5 09:23:46 CET 2012
commit 84b385488f6d778208c081af4828a5935e3d4b9c
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Dec 5 10:23:43 2012 +0200
add static_libs bcond
icu.spec | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/icu.spec b/icu.spec
index 69420e5..cd84290 100644
--- a/icu.spec
+++ b/icu.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without static_libs # don't build static libraries
+
%define ver %(echo %{version} | tr . _)
Summary: International Components for Unicode
Summary(pl.UTF-8): Międzynarodowe komponenty dla unikodu
@@ -99,7 +103,7 @@ cd source
%configure \
--sbindir=%{_bindir} \
--with-data-packaging=library \
- --enable-static \
+ %{?with_static_libs:--enable-static} \
--disable-samples
%{__make}
@@ -180,6 +184,8 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_datadir}/%{name}/%{version}/mkinstalldirs
%{_mandir}/man1/icu-config.1*
+%if %{with static_libs}
%files -n libicu-static
%defattr(644,root,root,755)
%{_libdir}/libicu*.a
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/icu.git/commitdiff/84b385488f6d778208c081af4828a5935e3d4b9c
More information about the pld-cvs-commit
mailing list