1 # RedHat-style .spec file for Xapian
4 # Tell SuSE's build scripts not to build as root:
7 Summary: The Xapian Probabilistic Information Retrieval Library
13 Group: Applications
/Databases
14 URL: https
://xapian.org
/
15 Requires: %{name}-libs = %{version}
16 Source: http
://www.oligarchy.co.uk
/xapian
/%{version}/%{name}-%{version}.tar.xz
17 # May need e2fsprogs-devel instead of libuuid-devel on older platforms
18 BuildRequires
: gcc
-c
++ zlib
-devel libuuid
-devel
19 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n
)
22 Xapian is an Open
Source Probabilistic Information Retrieval Library. It
23 offers a highly adaptable toolkit that allows developers to easily add advanced
24 indexing and search facilities to applications.
27 Summary: Xapian search engine libraries.
28 Group: System Environment
/Libraries
31 Xapian is an Open
Source Probabilistic Information Retrieval framework. It
32 offers a highly adaptable toolkit that allows developers to easily add advanced
33 indexing and search facilities to applications. This package provides the
34 libraries
for applications using Xapian functionality.
37 Group: Development
/Libraries
38 Summary: Files needed
for building packages which use Xapian.
39 Requires: %{name}-libs = %{version}
42 Xapian is an Open
Source Probabilistic Information Retrieval framework. It
43 offers a highly adaptable toolkit that allows developers to easily add advanced
44 indexing and search facilities to applications. This package provides the
45 files needed
for building packages which use Xapian.
48 %setup -q
-n
%{name}-%{version}
51 # As of 1.1.0, Xapian uses libtool 2.2.x which allows us to override libtool's
52 # sometimes conservative take on which directories are in the default dynamic
53 # linker search path, so we no longer incorrectly try to set rpath for
54 # /usr/lib64. Hence there's no longer a need to run "autoreconf --force" here
55 # and it's better not to as it avoids having to cope with incompatibilities
56 # with older versions of the autotools which older distros have.
62 [ "
%{buildroot}" != "/" ] && rm -rf %{buildroot}
64 # makeinstall doesn't work properly with libtool built libraries
65 make DESTDIR
=%{buildroot} install
66 # Move the docs to the right place
67 mv
%{buildroot}%{_datadir}/doc/%{name} %{buildroot}%{_datadir}/doc/%{name}-devel-%{version}
68 # Copy HACKING now, as "%doc HACKING" would overwrite everything
69 cp HACKING
%{buildroot}%{_datadir}/doc/%{name}-devel-%{version}
70 # Copy the rest while we are in this directory
71 mkdir -p
%{buildroot}%{_datadir}/doc/%{name}-%{version}
72 cp AUTHORS ChangeLog ChangeLog.examples COPYING NEWS PLATFORMS README
%{buildroot}%{_datadir}/doc/%{name}-%{version}
74 %post libs
-p
/sbin
/ldconfig
76 %postun libs
-p
/sbin
/ldconfig
79 [ "
%{buildroot}" != "/" ] && rm -rf %{buildroot}
82 %defattr(-, root
, root
)
83 %{_bindir}/xapian
-tcpsrv
84 %{_bindir}/xapian
-progsrv
86 %{_bindir}/copydatabase
87 %{_bindir}/simpleindex
88 %{_bindir}/simplesearch
89 %{_bindir}/simpleexpand
90 %{_bindir}/xapian
-check
91 %{_bindir}/xapian
-compact
92 %{_bindir}/xapian
-delve
93 %{_bindir}/xapian
-replicate
94 %{_bindir}/xapian
-replicate
-server
95 %{_bindir}/xapian
-metadata
96 %doc %{_datadir}/doc/%{name}-%{version}
97 # man pages may be gzipped, hence the trailing wildcard.
98 %{_mandir}/man1
/xapian
-tcpsrv
.1*
99 %{_mandir}/man1
/xapian
-progsrv
.1*
100 %{_mandir}/man1
/quest
.1*
101 %{_mandir}/man1
/copydatabase
.1*
102 %{_mandir}/man1
/xapian
-check
.1*
103 %{_mandir}/man1
/xapian
-compact
.1*
104 %{_mandir}/man1
/xapian
-delve
.1*
105 %{_mandir}/man1
/xapian
-replicate
.1*
106 %{_mandir}/man1
/xapian
-replicate
-server
.1*
107 %{_mandir}/man1
/xapian
-metadata
.1*
110 %defattr(-, root
, root
)
111 %{_libdir}/libxapian
*.so.
*
114 %defattr(-, root
, root
)
115 %{_bindir}/xapian
-config
116 %{_includedir}/xapian
117 %{_includedir}/xapian.h
118 %{_libdir}/libxapian
*.so
119 %{_libdir}/libxapian
*.a
120 %{_libdir}/libxapian
*.la
121 %{_libdir}/cmake
/xapian
122 %{_libdir}/pkgconfig
/xapian
*.pc
123 %{_datadir}/aclocal
/xapian
*.m4
124 %doc %{_datadir}/doc/%{name}-devel-%{version}
125 # man pages may be gzipped, hence the trailing wildcard.
126 %{_mandir}/man1
/xapian
-config
.1*