packages: libmemcached/libmemcached.spec - add static_libs bcond - no *.la ...

lisu lisu at pld-linux.org
Tue Jan 19 17:01:25 CET 2010


Author: lisu                         Date: Tue Jan 19 16:01:25 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- add static_libs bcond
- no *.la files in static

---- Files affected:
packages/libmemcached:
   libmemcached.spec (1.10 -> 1.11) 

---- Diffs:

================================================================
Index: packages/libmemcached/libmemcached.spec
diff -u packages/libmemcached/libmemcached.spec:1.10 packages/libmemcached/libmemcached.spec:1.11
--- packages/libmemcached/libmemcached.spec:1.10	Tue Jan 19 16:06:15 2010
+++ packages/libmemcached/libmemcached.spec	Tue Jan 19 17:01:16 2010
@@ -1,4 +1,8 @@
 # $Revision$, $Date$
+#
+# Conditional build
+%bcond_without  static_libs	# don't build static library
+#
 Summary:	memcached client library
 Summary(pl.UTF-8):	Blblioteka kliencka memcached
 Name:		libmemcached
@@ -62,6 +66,7 @@
 %{__autoheader}
 %{__automake}
 %configure \
+	%{?with_static_libs:--enable-static} \
 	--with-memcached=no # disable memcached detection, we're not doing tests
 %{__make}
 
@@ -109,9 +114,11 @@
 %{_pkgconfigdir}/libmemcached.pc
 %{_mandir}/man3/*.3*
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/lib*.la
+%{_libdir}/lib*.a
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -119,6 +126,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.11  2010/01/19 16:01:16  lisu
+- add static_libs bcond
+- no *.la files in static
+
 Revision 1.10  2010/01/19 15:06:15  lisu
 - 0.37
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/libmemcached/libmemcached.spec?r1=1.10&r2=1.11&f=u



More information about the pld-cvs-commit mailing list