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

xapian-core.spec [new file with mode: 0644]

diff --git a/xapian-core.spec b/xapian-core.spec
new file mode 100644 (file)
index 0000000..f2c80a0
--- /dev/null
@@ -0,0 +1,139 @@
+# Conditional build:
+%bcond_without apidocs         # do not build and package API docs
+#
+Summary:       The Xapian Probabilistic Information Retrieval Library
+Name:          xapian-core
+Version:       1.0.4
+Release:       0.1
+License:       GPL
+Group:         Applications/Databases
+URL:           http://www.xapian.org/
+Source0:       http://www.oligarchy.co.uk/xapian/%{version}/%{name}-%{version}.tar.gz
+Patch0:                %{name}-gcc43.patch
+# Source0-md5: 57cd26fb4a3677bfe05d4c9df5012357
+BuildRequires: libstdc++-devel
+BuildRequires: zlib-devel
+Requires:      %{name}-libs = %{version}-%{release}
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Xapian is an Open Source Probabilistic Information Retrieval Library.
+It offers a highly adaptable toolkit that allows developers to easily
+add advanced indexing and search facilities to applications.
+
+%package apidocs
+Summary:       Xapian API documentation
+Group:         Documentation
+
+%description apidocs
+API and internal documentation for Xapian library.
+
+%package libs
+Summary:       Xapian search engine libraries
+Group:         Development/Libraries
+
+%description libs
+Xapian is an Open Source Probabilistic Information Retrieval
+framework. It offers a highly adaptable toolkit that allows developers
+to easily add advanced indexing and search facilities to applications.
+This package provides the libraries for applications using Xapian
+functionality.
+
+%package devel
+Summary:       Files needed for building packages which use Xapian
+Group:         Development/Libraries
+Requires:      %{name}-libs = %{version}-%{release}
+Requires:      libstdc++-devel
+Requires:      zlib-devel
+
+%description devel
+Xapian is an Open Source Probabilistic Information Retrieval
+framework. It offers a highly adaptable toolkit that allows developers
+to easily add advanced indexing and search facilities to applications.
+This package provides the files needed for building packages which use
+Xapian.
+
+%prep
+%setup -q
+%patch0 -p0
+
+cp -a examples _examples
+rm -f _examples/Makefile*
+
+%build
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+       docdir=%{_docdir}/%{name}-apidocs-%{version} \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%{__make} -C docs install \
+       docdir=%{_docdir}/%{name}-apidocs-%{version} \
+       DESTDIR=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a ChangeLog.examples _examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%post  libs -p /sbin/ldconfig
+%postun        libs -p /sbin/ldconfig
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS COPYING ChangeLog HACKING INSTALL NEWS PLATFORMS README
+%attr(755,root,root) %{_bindir}/xapian-tcpsrv
+%attr(755,root,root) %{_bindir}/xapian-progsrv
+%attr(755,root,root) %{_bindir}/quartzcheck
+%attr(755,root,root) %{_bindir}/quartzcompact
+%attr(755,root,root) %{_bindir}/quartzdump
+%attr(755,root,root) %{_bindir}/quest
+%attr(755,root,root) %{_bindir}/delve
+%attr(755,root,root) %{_bindir}/copydatabase
+%attr(755,root,root) %{_bindir}/simpleindex
+%attr(755,root,root) %{_bindir}/simplesearch
+%attr(755,root,root) %{_bindir}/simpleexpand
+%attr(755,root,root) %{_bindir}/xapian-compact
+%attr(755,root,root) %{_bindir}/xapian-check
+%attr(755,root,root) %{_bindir}/xapian-inspect
+%{_mandir}/man1/xapian-check.1*
+%{_mandir}/man1/xapian-inspect.1*
+%{_mandir}/man1/copydatabase.1*
+%{_mandir}/man1/delve.1*
+%{_mandir}/man1/quartzcheck.1*
+%{_mandir}/man1/quartzcompact.1*
+%{_mandir}/man1/quartzdump.1*
+%{_mandir}/man1/quest.1*
+%{_mandir}/man1/xapian-compact.1*
+%{_mandir}/man1/xapian-config.1*
+%{_mandir}/man1/xapian-progsrv.1*
+%{_mandir}/man1/xapian-tcpsrv.1*
+
+%files libs
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libxapian.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libxapian.so.15
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/xapian-config
+%{_includedir}/xapian
+%{_includedir}/xapian.h
+%{_libdir}/libxapian.so
+%{_libdir}/libxapian.a
+%{_libdir}/libxapian.la
+%{_aclocaldir}/xapian.m4
+
+%{_examplesdir}/%{name}-%{version}
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%doc %{_docdir}/%{name}-apidocs-%{version}/apidoc.pdf
+%doc %{_docdir}/%{name}-apidocs-%{version}/*.html
+%doc %{_docdir}/%{name}-apidocs-%{version}/apidoc
+%endif
This page took 0.066606 seconds and 4 git commands to generate.