]> git.pld-linux.org Git - packages/ewl.git/blobdiff - ewl.spec
- bcond static_libs
[packages/ewl.git] / ewl.spec
index c72cae10f4d155b13c193b61035035dc7d81fde8..f55a66c0b64993219c532f322a5ab0f215cc70ac 100644 (file)
--- a/ewl.spec
+++ b/ewl.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without static_libs     # don't build static library
+#
 Summary:       Enlightenment Widget Library
 Summary(pl):   Biblioteka widgetów Enlightenmenta (Enlightenment Widget Library)
 Name:          ewl
@@ -70,7 +74,8 @@ Statyczna biblioteka EWL.
 %{__autoconf}
 %{__autoheader}
 %{__automake}
-%configure
+%configure \
+       %{!?with_static_libs:--disable-static}
 %{__make}
 
 %install
@@ -107,6 +112,8 @@ rm -rf $RPM_BUILD_ROOT
 %{_pkgconfigdir}/ewl.pc
 %{_aclocaldir}/ewl.m4
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libewl.a
+%endif
This page took 0.05703 seconds and 4 git commands to generate.