]> git.pld-linux.org Git - packages/fsplib.git/blobdiff - fsplib.spec
- added bcond without static_libs
[packages/fsplib.git] / fsplib.spec
index 029f7f678101357860e8284ac02ef82be4f878c8..c2cb4e5f6abd9c6c020bbe39a8da18b696cf4b57 100644 (file)
@@ -1,3 +1,4 @@
+%bcond_without static_libs     # don't build static library
 Summary:       fsp library
 Summary(pl):   Biblioteka fsp
 Name:          fsplib
@@ -66,7 +67,8 @@ autoreconf -i
 %{__autoconf}
 %{__automake}
 %configure \
-       --enable-shared
+       --enable-shared \
+       %{!?with_static_libs:--disable-static}
 %{__make}
 
 %install
@@ -92,6 +94,8 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/lib*.la
 %{_includedir}/*
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
+%endif
This page took 0.027136 seconds and 4 git commands to generate.