1 # RedHat-style .spec file for Xapian
4 # Tell SuSE's build scripts not to build as root:
7 Summary: The Xapian Search Engine Library
13 Group: Applications
/Databases
14 URL: https
://xapian.org
/
15 Requires: %{name}-libs = %{version}
16 Source: https
://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 a highly adaptable toolkit which allows developers to easily
23 add advanced indexing and search facilities to their own applications.
24 It has built
-in support
for several families of weighting models and
25 also supports a rich
set of boolean query operators.
28 Summary: Xapian search engine libraries.
29 Group: System Environment
/Libraries
32 Xapian is a highly adaptable toolkit which allows developers to easily
33 add advanced indexing and search facilities to their own applications.
34 It has built
-in support
for several families of weighting models and
35 also supports a rich
set of boolean query operators.
37 This package provides the libraries
for applications using Xapian
41 Group: Development
/Libraries
42 Summary: Files needed
for building packages which use Xapian.
43 Requires: %{name}-libs = %{version}
46 Xapian is a highly adaptable toolkit which allows developers to easily
47 add advanced indexing and search facilities to their own applications.
48 It has built
-in support
for several families of weighting models and
49 also supports a rich
set of boolean query operators.
51 This package provides the files needed
for building packages which use
55 %setup -q
-n
%{name}-%{version}
58 # As of 1.1.0, Xapian uses libtool 2.2.x which allows us to override libtool's
59 # sometimes conservative take on which directories are in the default dynamic
60 # linker search path, so we no longer incorrectly try to set rpath for
61 # /usr/lib64. Hence there's no longer a need to run "autoreconf --force" here
62 # and it's better not to as it avoids having to cope with incompatibilities
63 # with older versions of the autotools which older distros have.
69 [ "
%{buildroot}" != "/" ] && rm -rf %{buildroot}
71 # makeinstall doesn't work properly with libtool built libraries
72 make DESTDIR
=%{buildroot} install
73 # Move the docs to the right place
74 mv
%{buildroot}%{_datadir}/doc/%{name} %{buildroot}%{_datadir}/doc/%{name}-devel-%{version}
75 # Copy HACKING now, as "%doc HACKING" would overwrite everything
76 cp HACKING
%{buildroot}%{_datadir}/doc/%{name}-devel-%{version}
77 # Copy the rest while we are in this directory
78 mkdir -p
%{buildroot}%{_datadir}/doc/%{name}-%{version}
79 cp AUTHORS ChangeLog ChangeLog.examples COPYING NEWS PLATFORMS README
%{buildroot}%{_datadir}/doc/%{name}-%{version}
81 %post libs
-p
/sbin
/ldconfig
83 %postun libs
-p
/sbin
/ldconfig
86 [ "
%{buildroot}" != "/" ] && rm -rf %{buildroot}
89 %defattr(-, root
, root
)
90 %{_bindir}/xapian
-tcpsrv
91 %{_bindir}/xapian
-progsrv
93 %{_bindir}/copydatabase
94 %{_bindir}/simpleindex
95 %{_bindir}/simplesearch
96 %{_bindir}/simpleexpand
97 %{_bindir}/xapian
-check
98 %{_bindir}/xapian
-compact
99 %{_bindir}/xapian
-delve
100 %{_bindir}/xapian
-replicate
101 %{_bindir}/xapian
-replicate
-server
102 %{_bindir}/xapian
-metadata
103 %doc %{_datadir}/doc/%{name}-%{version}
104 # man pages may be gzipped, hence the trailing wildcard.
105 %{_mandir}/man1
/xapian
-tcpsrv
.1*
106 %{_mandir}/man1
/xapian
-progsrv
.1*
107 %{_mandir}/man1
/quest
.1*
108 %{_mandir}/man1
/copydatabase
.1*
109 %{_mandir}/man1
/xapian
-check
.1*
110 %{_mandir}/man1
/xapian
-compact
.1*
111 %{_mandir}/man1
/xapian
-delve
.1*
112 %{_mandir}/man1
/xapian
-replicate
.1*
113 %{_mandir}/man1
/xapian
-replicate
-server
.1*
114 %{_mandir}/man1
/xapian
-metadata
.1*
117 %defattr(-, root
, root
)
118 %{_libdir}/libxapian
*.so.
*
121 %defattr(-, root
, root
)
122 %{_bindir}/xapian
-config
123 %{_includedir}/xapian
124 %{_includedir}/xapian.h
125 %{_libdir}/libxapian
*.so
126 %{_libdir}/libxapian
*.a
127 %{_libdir}/libxapian
*.la
128 %{_libdir}/cmake
/xapian
129 %{_libdir}/pkgconfig
/xapian
*.pc
130 %{_datadir}/aclocal
/xapian
*.m4
131 %doc %{_datadir}/doc/%{name}-devel-%{version}
132 # man pages may be gzipped, hence the trailing wildcard.
133 %{_mandir}/man1
/xapian
-config
.1*