]>
Commit | Line | Data |
---|---|---|
46bfcba0 | 1 | # TODO |
b8b1e75a | 2 | # - packages for Python/Ruby API |
f1ac865a JB |
3 | # |
4 | # Conditional build: | |
47dcdbdb | 5 | %bcond_without pgsql # without pgsql support |
6 | # | |
910da407 | 7 | Summary: Free open-source SQL full-text search engine |
68b62e17 | 8 | Summary(pl.UTF-8): Silnik przeszukiwania pełnotekstowego SQL open-source |
910da407 ER |
9 | Name: sphinx |
10 | Version: 0.9.7 | |
b8b1e75a | 11 | Release: 0.4 |
910da407 ER |
12 | License: GPL v2 |
13 | Group: Applications/Databases | |
bf041ce6 | 14 | Source0: http://www.sphinxsearch.com/downloads/%{name}-%{version}.tar.gz |
f0d3f9e7 | 15 | # Source0-md5: 32f2b7e98d8485c86108851d52c5cef4 |
d9cd41fd | 16 | Patch0: %{name}-DESTDIR.patch |
cf28692c | 17 | Source1: sphinx.init |
910da407 ER |
18 | URL: http://www.sphinxsearch.com/ |
19 | BuildRequires: autoconf | |
20 | BuildRequires: automake | |
21 | BuildRequires: mysql-devel | |
3bdbac33 | 22 | %{?with_pgsql:BuildRequires: postgresql-devel} |
47dcdbdb | 23 | Requires: mysql-libs |
910da407 ER |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
27 | Sphinx is a a standalone search engine, meant to provide fast, | |
28 | size-efficient and relevant fulltext search functions to other | |
29 | applications. Sphinx was specially designed to integrate well with SQL | |
30 | databases and scripting languages. Currently built-in data sources | |
31 | support fetching data either via direct connection to MySQL, or from | |
32 | an XML pipe. | |
33 | ||
68b62e17 | 34 | %description -l pl.UTF-8 |
35 | Sphinx jest samodzielnym silnikiem przeszukującym, dostarczającym | |
36 | innym aplikacjom szybkie, zoptymalizowane rozmiarowo funkcje | |
37 | przeszukiwania pełnotekstowego. Sphinx został specjalnie | |
38 | zaprojektowany z myślą o dobrej integracji z bazami danych SQL oraz | |
39 | językami skryptowymi. Obecnie wbudowane źródła danych wspierają | |
3bdbac33 ER |
40 | pobieranie danych poprzez bezpośrednie połączenie z MySQL lub z potoku |
41 | XML. | |
68b62e17 | 42 | |
b8b1e75a ER |
43 | %package -n php-sphinx |
44 | Summary: PHP API for Sphinx | |
56d91f88 | 45 | Summary(pl.UTF-8): API PHP dla Sphinksa |
b8b1e75a ER |
46 | Group: Libraries |
47 | Requires: php-common >= 4:5.0.4 | |
48 | ||
49 | %description -n php-sphinx | |
50 | PHP API for Sphinx. | |
51 | ||
56d91f88 JB |
52 | %description -n php-sphinx -l pl.UTF-8 |
53 | API PHP dla Sphinksa. | |
54 | ||
910da407 | 55 | %prep |
bf041ce6 | 56 | %setup -q |
910da407 | 57 | %patch0 -p1 |
910da407 ER |
58 | |
59 | %build | |
60 | %{__aclocal} | |
61 | %{__autoconf} | |
62 | %{__autoheader} | |
63 | %{__automake} | |
d9cd41fd | 64 | CPPFLAGS=-D_FILE_OFFSET_BITS=64 |
46bfcba0 | 65 | %configure \ |
47dcdbdb | 66 | %{?with_pgsql:--with-pgsql} \ |
67 | --with-mysql | |
910da407 ER |
68 | %{__make} |
69 | ||
70 | %install | |
71 | rm -rf $RPM_BUILD_ROOT | |
b8b1e75a | 72 | install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/rc.d/init.d,%{_datadir}/php} |
910da407 ER |
73 | |
74 | %{__make} install \ | |
75 | DESTDIR=$RPM_BUILD_ROOT | |
76 | ||
77 | rm -f $RPM_BUILD_ROOT%{_sysconfdir}/example.sql | |
78 | mv $RPM_BUILD_ROOT%{_sysconfdir}/sphinx.conf{.dist,} | |
cf28692c ER |
79 | mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/searchd |
80 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} | |
910da407 | 81 | |
b8b1e75a ER |
82 | cp -a api/sphinxapi.php $RPM_BUILD_ROOT%{_datadir}/php |
83 | ||
910da407 ER |
84 | %clean |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
87 | %files | |
88 | %defattr(644,root,root,755) | |
89 | %doc doc/sphinx.txt example.sql | |
90 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sphinx.conf | |
91 | %attr(755,root,root) %{_bindir}/indexer | |
92 | %attr(755,root,root) %{_bindir}/search | |
cf28692c ER |
93 | %attr(755,root,root) %{_sbindir}/searchd |
94 | %attr(754,root,root) /etc/rc.d/init.d/%{name} | |
b8b1e75a ER |
95 | |
96 | %files -n php-sphinx | |
56d91f88 | 97 | %defattr(644,root,root,755) |
b8b1e75a | 98 | %{_datadir}/php/sphinxapi.php |