]>
Commit | Line | Data |
---|---|---|
910da407 | 1 | %define _rc rc2 |
d9cd41fd | 2 | %define _rel 0.2 |
910da407 | 3 | Summary: Free open-source SQL full-text search engine |
68b62e17 | 4 | Summary(pl.UTF-8): Silnik przeszukiwania pełnotekstowego SQL open-source |
910da407 ER |
5 | Name: sphinx |
6 | Version: 0.9.7 | |
7 | Release: 0.%{_rc}.%{_rel} | |
8 | License: GPL v2 | |
9 | Group: Applications/Databases | |
10 | Source0: http://www.sphinxsearch.com/downloads/%{name}-%{version}-%{_rc}.tar.gz | |
11 | # Source0-md5: 65daf0feb7e276fb3de0aba82cff1d3e | |
d9cd41fd | 12 | Patch0: %{name}-DESTDIR.patch |
910da407 ER |
13 | URL: http://www.sphinxsearch.com/ |
14 | BuildRequires: autoconf | |
15 | BuildRequires: automake | |
16 | BuildRequires: mysql-devel | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | Sphinx is a a standalone search engine, meant to provide fast, | |
21 | size-efficient and relevant fulltext search functions to other | |
22 | applications. Sphinx was specially designed to integrate well with SQL | |
23 | databases and scripting languages. Currently built-in data sources | |
24 | support fetching data either via direct connection to MySQL, or from | |
25 | an XML pipe. | |
26 | ||
68b62e17 | 27 | %description -l pl.UTF-8 |
28 | Sphinx jest samodzielnym silnikiem przeszukującym, dostarczającym | |
29 | innym aplikacjom szybkie, zoptymalizowane rozmiarowo funkcje | |
30 | przeszukiwania pełnotekstowego. Sphinx został specjalnie | |
31 | zaprojektowany z myślą o dobrej integracji z bazami danych SQL oraz | |
32 | językami skryptowymi. Obecnie wbudowane źródła danych wspierają | |
33 | pobieranie danych poprzez bezpośrednie połączenie z MySQL lub | |
34 | z potoku XML. | |
35 | ||
910da407 ER |
36 | %prep |
37 | %setup -q -n %{name}-%{version}-%{_rc} | |
910da407 | 38 | %patch0 -p1 |
910da407 ER |
39 | |
40 | %build | |
41 | %{__aclocal} | |
42 | %{__autoconf} | |
43 | %{__autoheader} | |
44 | %{__automake} | |
d9cd41fd | 45 | CPPFLAGS=-D_FILE_OFFSET_BITS=64 |
910da407 ER |
46 | %configure |
47 | %{__make} | |
48 | ||
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %{__make} install \ | |
53 | DESTDIR=$RPM_BUILD_ROOT | |
54 | ||
55 | rm -f $RPM_BUILD_ROOT%{_sysconfdir}/example.sql | |
56 | mv $RPM_BUILD_ROOT%{_sysconfdir}/sphinx.conf{.dist,} | |
57 | ||
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
63 | %doc doc/sphinx.txt example.sql | |
64 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sphinx.conf | |
65 | %attr(755,root,root) %{_bindir}/indexer | |
66 | %attr(755,root,root) %{_bindir}/search | |
67 | %attr(755,root,root) %{_bindir}/searchd |