]>
Commit | Line | Data |
---|---|---|
910da407 ER |
1 | # TODO |
2 | # - make mysql Storage Engine | |
3 | %define _rc rc2 | |
4 | %define _rel 0.1 | |
5 | Summary: Free open-source SQL full-text search engine | |
6 | Name: sphinx | |
7 | Version: 0.9.7 | |
8 | Release: 0.%{_rc}.%{_rel} | |
9 | License: GPL v2 | |
10 | Group: Applications/Databases | |
11 | Source0: http://www.sphinxsearch.com/downloads/%{name}-%{version}-%{_rc}.tar.gz | |
12 | # Source0-md5: 65daf0feb7e276fb3de0aba82cff1d3e | |
13 | Patch0: %{name}-offset_t.patch | |
14 | Patch1: %{name}-DESTDIR.patch | |
15 | URL: http://www.sphinxsearch.com/ | |
16 | BuildRequires: autoconf | |
17 | BuildRequires: automake | |
18 | BuildRequires: mysql-devel | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | Sphinx is a a standalone search engine, meant to provide fast, | |
23 | size-efficient and relevant fulltext search functions to other | |
24 | applications. Sphinx was specially designed to integrate well with SQL | |
25 | databases and scripting languages. Currently built-in data sources | |
26 | support fetching data either via direct connection to MySQL, or from | |
27 | an XML pipe. | |
28 | ||
29 | %prep | |
30 | %setup -q -n %{name}-%{version}-%{_rc} | |
31 | %ifnarch %{x8664} alpha | |
32 | # he uses off_t for 8 bit pointers. at least i686 has off_t 4 bit | |
33 | # it could break code but at least it compiles now. | |
34 | %patch0 -p1 | |
35 | %endif | |
36 | %patch1 -p1 | |
37 | ||
38 | %build | |
39 | %{__aclocal} | |
40 | %{__autoconf} | |
41 | %{__autoheader} | |
42 | %{__automake} | |
43 | %configure | |
44 | %{__make} | |
45 | ||
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %{__make} install \ | |
50 | DESTDIR=$RPM_BUILD_ROOT | |
51 | ||
52 | rm -f $RPM_BUILD_ROOT%{_sysconfdir}/example.sql | |
53 | mv $RPM_BUILD_ROOT%{_sysconfdir}/sphinx.conf{.dist,} | |
54 | ||
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
60 | %doc doc/sphinx.txt example.sql | |
61 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sphinx.conf | |
62 | %attr(755,root,root) %{_bindir}/indexer | |
63 | %attr(755,root,root) %{_bindir}/search | |
64 | %attr(755,root,root) %{_bindir}/searchd |