]> git.pld-linux.org Git - packages/sphinx.git/blame - sphinx.spec
- new
[packages/sphinx.git] / sphinx.spec
CommitLineData
910da407
ER
1# TODO
2# - make mysql Storage Engine
3%define _rc rc2
4%define _rel 0.1
5Summary: Free open-source SQL full-text search engine
6Name: sphinx
7Version: 0.9.7
8Release: 0.%{_rc}.%{_rel}
9License: GPL v2
10Group: Applications/Databases
11Source0: http://www.sphinxsearch.com/downloads/%{name}-%{version}-%{_rc}.tar.gz
12# Source0-md5: 65daf0feb7e276fb3de0aba82cff1d3e
13Patch0: %{name}-offset_t.patch
14Patch1: %{name}-DESTDIR.patch
15URL: http://www.sphinxsearch.com/
16BuildRequires: autoconf
17BuildRequires: automake
18BuildRequires: mysql-devel
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
22Sphinx is a a standalone search engine, meant to provide fast,
23size-efficient and relevant fulltext search functions to other
24applications. Sphinx was specially designed to integrate well with SQL
25databases and scripting languages. Currently built-in data sources
26support fetching data either via direct connection to MySQL, or from
27an 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
47rm -rf $RPM_BUILD_ROOT
48
49%{__make} install \
50 DESTDIR=$RPM_BUILD_ROOT
51
52rm -f $RPM_BUILD_ROOT%{_sysconfdir}/example.sql
53mv $RPM_BUILD_ROOT%{_sysconfdir}/sphinx.conf{.dist,}
54
55%clean
56rm -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
This page took 0.062556 seconds and 4 git commands to generate.