forked from pool/xapian-core
OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=25
125 lines
3.6 KiB
RPMSpec
125 lines
3.6 KiB
RPMSpec
#
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
Name: xapian-core
|
|
Version: 1.2.4
|
|
Release: 0
|
|
License: GPLv2+
|
|
Summary: The Xapian Probabilistic Information Retrieval Library
|
|
Url: http://www.xapian.org/
|
|
Group: Productivity/Databases/Servers
|
|
Source: http://www.oligarchy.co.uk/xapian/%{version}/%{name}-%{version}.tar.gz
|
|
BuildRequires: gcc-c++
|
|
%if 0%{?suse_version} == 0 || 0%{?suse_version} >= 1030
|
|
BuildRequires: libuuid-devel
|
|
%else
|
|
BuildRequires: e2fsprogs-devel
|
|
%endif
|
|
BuildRequires: zlib-devel
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%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 -n libxapian22
|
|
Summary: Xapian search engine libraries
|
|
Group: Development/Libraries/C and C++
|
|
|
|
%description -n libxapian22
|
|
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 -n libxapian-devel
|
|
Summary: Files needed for building packages which use Xapian
|
|
Group: Development/Libraries/C and C++
|
|
Requires: libxapian22 = %{version}
|
|
Requires: gcc-c++
|
|
%if 0%{?suse_version} == 0 || 0%{?suse_version} >= 1030
|
|
BuildRequires: libuuid-devel
|
|
%else
|
|
BuildRequires: e2fsprogs-devel
|
|
%endif
|
|
Requires: zlib-devel
|
|
|
|
%description -n libxapian-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.
|
|
|
|
%debug_package
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%configure --docdir=%{_docdir}/%{name}/ --disable-static
|
|
%__make %{?smp_mflags}
|
|
|
|
%install
|
|
%__make DESTDIR="%{buildroot}" docdatadir="%{_docdir}/%{name}" install
|
|
rm -rf examples/{.libs,.deps}
|
|
rm -rf %{buildroot}%{_docdir}/%{name}/examples/{.dirstamp,*.o}
|
|
|
|
%post -n libxapian22 -p /sbin/ldconfig
|
|
|
|
%postun -n libxapian22 -p /sbin/ldconfig
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-, root, root)
|
|
%doc AUTHORS ChangeLog COPYING HACKING NEWS PLATFORMS README
|
|
%{_bindir}/copydatabase
|
|
%{_bindir}/delve
|
|
%{_bindir}/quest
|
|
%{_bindir}/simpleexpand
|
|
%{_bindir}/simpleindex
|
|
%{_bindir}/simplesearch
|
|
%{_bindir}/xapian-check
|
|
%{_bindir}/xapian-chert-update
|
|
%{_bindir}/xapian-compact
|
|
%{_bindir}/xapian-inspect
|
|
%{_bindir}/xapian-metadata
|
|
%{_bindir}/xapian-progsrv
|
|
%{_bindir}/xapian-replicate
|
|
%{_bindir}/xapian-replicate-server
|
|
%{_bindir}/xapian-tcpsrv
|
|
%{_mandir}/man1/copydatabase.1*
|
|
%{_mandir}/man1/delve.1*
|
|
%{_mandir}/man1/quest.1*
|
|
%{_mandir}/man1/xapian-check.1*
|
|
%{_mandir}/man1/xapian-chert-update.1*
|
|
%{_mandir}/man1/xapian-compact.1*
|
|
%{_mandir}/man1/xapian-config.1*
|
|
%{_mandir}/man1/xapian-inspect.1*
|
|
%{_mandir}/man1/xapian-metadata.1*
|
|
%{_mandir}/man1/xapian-progsrv.1*
|
|
%{_mandir}/man1/xapian-replicate.1*
|
|
%{_mandir}/man1/xapian-replicate-server.1*
|
|
%{_mandir}/man1/xapian-tcpsrv.1*
|
|
|
|
%files -n libxapian22
|
|
%defattr(-, root, root)
|
|
%{_libdir}/libxapian.so.*
|
|
|
|
%files -n libxapian-devel
|
|
%defattr(-, root, root)
|
|
%doc ChangeLog.examples
|
|
%{_bindir}/xapian-config
|
|
%{_includedir}/xapian/
|
|
%{_includedir}/xapian.h
|
|
%{_libdir}/libxapian.la
|
|
%{_libdir}/libxapian.so
|
|
%{_datadir}/aclocal/xapian.m4
|
|
%dir %{_libdir}/cmake
|
|
%{_libdir}/cmake/xapian/
|
|
|
|
%changelog
|