]> git.pld-linux.org Git - packages/xapian-core.git/commitdiff
- static package
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 23 Oct 2008 21:53:57 +0000 (21:53 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    xapian-core.spec -> 1.2

xapian-core.spec

index f2c80a0929e713b65017c79a79e68daa9e23027f..d017a5f0f70f27cddb9d4117c32fe8aa7090a212 100644 (file)
@@ -1,10 +1,11 @@
 # 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/
@@ -53,6 +54,14 @@ to easily add advanced indexing and search facilities to applications.
 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
@@ -61,7 +70,8 @@ cp -a examples _examples
 rm -f _examples/Makefile*
 
 %build
-%configure
+%configure \
+       --%{?with_static_libs:en}%{!?with_static_libs:dis}able-static
 %{__make}
 
 %install
@@ -124,12 +134,17 @@ rm -rf $RPM_BUILD_ROOT
 %{_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)
This page took 0.105351 seconds and 4 git commands to generate.