]> git.pld-linux.org Git - packages/ctemplate.git/commitdiff
add static_libs bcond auto/th/ctemplate-2.2-1
authorElan Ruusamäe <glen@delfi.ee>
Wed, 13 May 2015 14:51:10 +0000 (17:51 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 13 May 2015 14:51:10 +0000 (17:51 +0300)
ctemplate.spec

index 7ec071e721f829218714fe684d27fca7e9c8807c..76fe5cf83f09127ef9eb6a35a11685353422f27f 100644 (file)
@@ -1,6 +1,7 @@
 #
 # Conditional build:
 %bcond_without tests           # build without tests
+%bcond_without static_libs     # don't build static libraries
 
 Summary:       Simple and powerful template language for C++
 Name:          ctemplate
@@ -80,6 +81,7 @@ Statyczna biblioteka CTemplate.
 %{__automake}
 export PTHREAD_LIBS="-lpthread"
 %configure \
+       %{!?with_static_libs:--disable-static} \
        --disable-silent-rules
 %{__make}
 %{?with_test:%{__make} check}
@@ -119,10 +121,12 @@ rm -rf $RPM_BUILD_ROOT
 %{_pkgconfigdir}/libctemplate.pc
 %{_pkgconfigdir}/libctemplate_nothreads.pc
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libctemplate.a
 %{_libdir}/libctemplate_nothreads.a
+%endif
 
 %files doc
 %defattr(644,root,root,755)
This page took 0.045244 seconds and 4 git commands to generate.