]> git.pld-linux.org Git - packages/gdome2.git/blobdiff - gdome2.spec
- added bcond_without static_libs
[packages/gdome2.git] / gdome2.spec
index 6cc8bf12bd87d9dd17547b9edf14ef447fa9e2fc..417ec77562e23fdcc6fd1d22db3048112c64c347 100644 (file)
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without static_libs     # don't build static libraries
+#
 Summary:       DOM level2 library for accessing XML files
 Summary(pl.UTF-8):     Biblioteka dostępu do plików XML, DOM poziom 2
 Name:          gdome2
@@ -126,7 +130,8 @@ echo 'AM_DEFUN([AM_PATH_GLIB], [$3])' >> acinclude.m4
 %{__aclocal}
 %{__autoconf}
 %{__automake}
-%configure
+%configure \
+       %{!?with_static_libs:--disable-static}
 
 %{__make}
 
@@ -159,6 +164,8 @@ rm -rf $RPM_BUILD_ROOT
 %{_aclocaldir}/%{name}.m4
 %{_pkgconfigdir}/%{name}.pc
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/*.a
+%endif
This page took 0.080351 seconds and 4 git commands to generate.