-
Notifications
You must be signed in to change notification settings - Fork 0
/
sphinx.spec
45 lines (33 loc) · 839 Bytes
/
sphinx.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Summary: Sphinx full-text search engine
Name: sphinx
Version: 0.9.9
Release: r1566
License: GPL
Group: Development
BuildRoot: /tmp/sphinx-%{version}-svn-%{release}
Source: http://sphinxsearch.com/downloads/sphinx-%{version}-svn-%{release}.tar.gz
URL: http://sphinxsearch.com/
BuildRequires: mysql-devel
Requires: mysql
%description
Sphinx is a free, open-source full-text search engine,
designed with indexing database content in mind.
%prep
%setup -n sphinx-%{version}-svn-%{release}
%build
CPPFLAGS="-D_FILE_OFFSET_BITS=64"
export CPPFLAGS
%configure
make
%install
mkdir -p $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT/%{_libdir}/sphinx
cp -R -p api $RPM_BUILD_ROOT/%{_libdir}/sphinx
%files
/usr/bin/*
%{_libdir}/sphinx
%config /etc/*
%doc INSTALL doc/sphinx.*
%clean
rm -rf $RPM_BUILD_ROOT