]> git.pld-linux.org Git - packages/libmemcached.git/commitdiff
- add static_libs bcond
authorlisu <lisu@pld-linux.org>
Tue, 19 Jan 2010 16:01:16 +0000 (16:01 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- no *.la files in static

Changed files:
    libmemcached.spec -> 1.11

libmemcached.spec

index 3f5b90a2a9073aa276b6435bf361e06e34a47c91..a6fece14dfcb3680bcb07ef46311508cb6342798 100644 (file)
@@ -1,3 +1,7 @@
+#
+# Conditional build
+%bcond_without  static_libs    # don't build static library
+#
 Summary:       memcached client library
 Summary(pl.UTF-8):     Blblioteka kliencka memcached
 Name:          libmemcached
@@ -61,6 +65,7 @@ Statyczna biblioteka memcached.
 %{__autoheader}
 %{__automake}
 %configure \
+       %{?with_static_libs:--enable-static} \
        --with-memcached=no # disable memcached detection, we're not doing tests
 %{__make}
 
@@ -108,6 +113,8 @@ rm -rf $RPM_BUILD_ROOT
 %{_pkgconfigdir}/libmemcached.pc
 %{_mandir}/man3/*.3*
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/lib*.la
+%{_libdir}/lib*.a
+%endif
This page took 0.083709 seconds and 4 git commands to generate.