Author: glen                         Date: Thu Oct 23 21:54:03 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- static package

---- Files affected:
SPECS:
   xapian-core.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SPECS/xapian-core.spec
diff -u SPECS/xapian-core.spec:1.1 SPECS/xapian-core.spec:1.2
--- SPECS/xapian-core.spec:1.1  Thu Oct 23 23:21:36 2008
+++ SPECS/xapian-core.spec      Thu Oct 23 23:53:57 2008
@@ -1,11 +1,12 @@
 # $Revision$, $Date$
 # Conditional build:
 %bcond_without apidocs         # do not build and package API docs
+%bcond_without static_libs     # don't build static library
 #
 Summary:       The Xapian Probabilistic Information Retrieval Library
 Name:          xapian-core
 Version:       1.0.4
-Release:       0.1
+Release:       0.2
 License:       GPL
 Group:         Applications/Databases
 URL:           http://www.xapian.org/
@@ -54,6 +55,14 @@
 This package provides the files needed for building packages which use
 Xapian.
 
+%package static
+Summary:       Static Xapian library
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static Xapian library.
+
 %prep
 %setup -q
 %patch0 -p0
@@ -62,7 +71,8 @@
 rm -f _examples/Makefile*
 
 %build
-%configure
+%configure \
+       --%{?with_static_libs:en}%{!?with_static_libs:dis}able-static
 %{__make}
 
 %install
@@ -125,12 +135,17 @@
 %{_includedir}/xapian
 %{_includedir}/xapian.h
 %{_libdir}/libxapian.so
-%{_libdir}/libxapian.a
 %{_libdir}/libxapian.la
 %{_aclocaldir}/xapian.m4
 
 %{_examplesdir}/%{name}-%{version}
 
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libxapian.a
+%endif
+
 %if %{with apidocs}
 %files apidocs
 %defattr(644,root,root,755)
@@ -145,5 +160,8 @@
 All persons listed below can be reached at <cvs_login>
 
 $Log$
+Revision 1.2  2008/10/23 21:53:57  glen
+- static package
+
 Revision 1.1  2008/10/23 21:21:36  glen
 - based on SuSE spec
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/xapian-core.spec?r1=1.1&r2=1.2&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to