forked from pool/xapian-core
- updated to 1.2.7 please forward to factory once accepted - needed for software-center OBS-URL: https://build.opensuse.org/request/show/82003 OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=33
164 lines
5.0 KiB
RPMSpec
164 lines
5.0 KiB
RPMSpec
#
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
Name: xapian-core
|
|
Version: 1.2.7
|
|
Release: 0
|
|
License: GPL
|
|
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
|
|
Source1: %{name}-rpmlintrc
|
|
BuildRequires: fdupes
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: libuuid-devel
|
|
BuildRequires: zlib-devel
|
|
Requires: %{name}-libs = %{version}
|
|
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++
|
|
Provides: xapian-core-libs
|
|
|
|
%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: gcc-c++
|
|
Requires: libxapian22 = %{version}
|
|
Requires: zlib-devel
|
|
Requires: libuuid-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
|
|
|
|
%package doc
|
|
Summary: Documentation for Xapian-core libraries
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{name} = %{version}
|
|
|
|
%description doc
|
|
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
|
|
|
|
%package examples
|
|
Summary: Examples for Xapian-core libraries
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{name} = %{version}
|
|
|
|
%description examples
|
|
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
|
|
|
|
%build
|
|
%configure --docdir=%{_docdir}/%{name}/
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%makeinstall docdatadir=%{_docdir}/%{name}
|
|
rm -rf examples/{.libs,.deps,.dirstamp,*.o,quest,delve,simplesearch,simpleexpand,simpleindex,copydatabase}
|
|
cp -vr \
|
|
AUTHORS COPYING ChangeLog ChangeLog.examples \
|
|
HACKING INSTALL NEWS PLATFORMS README examples \
|
|
%{buildroot}%{_docdir}/%{name}/
|
|
find . -name \*.spec -delete
|
|
fdupes %{buildroot}%{_defaultdocdir}/%{name}
|
|
|
|
%post -n libxapian22 -p /sbin/ldconfig
|
|
|
|
%postun -n libxapian22 -p /sbin/ldconfig
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-, root, root)
|
|
%{_bindir}/xapian-tcpsrv
|
|
%{_bindir}/xapian-progsrv
|
|
%{_bindir}/quest
|
|
%{_bindir}/delve
|
|
%{_bindir}/copydatabase
|
|
%{_bindir}/simpleindex
|
|
%{_bindir}/simplesearch
|
|
%{_bindir}/simpleexpand
|
|
%{_bindir}/xapian-compact
|
|
%{_bindir}/xapian-check
|
|
%{_bindir}/xapian-inspect
|
|
%{_bindir}/xapian-chert-update
|
|
%{_bindir}/xapian-metadata
|
|
%{_bindir}/xapian-replicate
|
|
%{_bindir}/xapian-replicate-server
|
|
%{_mandir}/man1/xapian-check.1*
|
|
%{_mandir}/man1/xapian-inspect.1*
|
|
%{_mandir}/man1/copydatabase.1*
|
|
%{_mandir}/man1/delve.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*
|
|
%{_mandir}/man1/xapian-chert-update.1*
|
|
%{_mandir}/man1/xapian-metadata.1*
|
|
%{_mandir}/man1/xapian-replicate.1*
|
|
%{_mandir}/man1/xapian-replicate-server.1*
|
|
|
|
%files -n libxapian22
|
|
%defattr(-, root, root)
|
|
%{_libdir}/libxapian.so.*
|
|
|
|
%files -n libxapian-devel
|
|
%defattr(-, root, root)
|
|
%{_bindir}/xapian-config
|
|
%{_includedir}/xapian
|
|
%{_includedir}/xapian.h
|
|
%{_libdir}/libxapian.so
|
|
%{_libdir}/libxapian.a
|
|
%{_libdir}/libxapian.la
|
|
%{_datadir}/aclocal/xapian.m4
|
|
%dir %{_libdir}/cmake/
|
|
%{_libdir}/cmake/xapian/
|
|
|
|
%files doc
|
|
%defattr(-, root, root)
|
|
%doc %{_docdir}/%{name}/*.html
|
|
%doc %{_docdir}/%{name}/apidoc*
|
|
%dir %{_docdir}/%{name}/
|
|
%doc %{_docdir}/%{name}/AUTHORS
|
|
%doc %{_docdir}/%{name}/COPYING
|
|
%doc %{_docdir}/%{name}/ChangeLog
|
|
%doc %{_docdir}/%{name}/ChangeLog.examples
|
|
%doc %{_docdir}/%{name}/HACKING
|
|
%doc %{_docdir}/%{name}/INSTALL
|
|
%doc %{_docdir}/%{name}/NEWS
|
|
%doc %{_docdir}/%{name}/PLATFORMS
|
|
%doc %{_docdir}/%{name}/README
|
|
|
|
%files examples
|
|
%defattr(-, root, root)
|
|
%doc %{_docdir}/%{name}/examples/
|
|
|
|
%changelog
|