Search
j0ke.net Open Build Service
>
Projects
>
server:search
>
sphinx
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 3
[-]
[+]
Added
sphinx.spec
@@ -0,0 +1,78 @@ +# +# spec file for package sphinx (Version 0.9.7) +# +# Copyright (c) 2006--2007 SUSE LINUX Products GmbH, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + +Name: sphinx +Version: 0.9.8.1 +Release: 0 +%define pkg_version 0.9.8.1 +# +License: GNU General Public License version 2 (GPL v2) +Group: Productivity/Databases/Servers +# +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: gcc-c++ mysql-devel postgresql-devel +# +Url: http://sphinxsearch.com/ +Source: http://sphinxsearch.com/downloads/%{name}-%{pkg_version}.tar.gz +# +Summary: Free open-source SQL full-text search engine + +%description +Sphinx is a full-text search engine, distributed under GPL version 2. +Commercial licensing is also available upon request. + +Generally, it's a standalone search engine, meant to provide fast, +size-efficient and relevant fulltext search functions to other +applications. Sphinx was specially designed to integrate well with SQL +databases and scripting languages. Currently built-in data source +drivers support fetching data either via direct connection to MySQL, +PostgreSQL, or from a pipe in a custom XML format. + +As for the name, Sphinx is an acronym which is officially decoded as +SQL Phrase Index. Yes, I know about CMU's Sphinx project. + + +%debug_package +%prep +%setup -q -n "%{name}-%{pkg_version}" +find -type d -name CVS -print0 | xargs -r0 rm -rf + +%build +sh -x bootstrap +%configure --sysconfdir=%{_sysconfdir}/%{name}/ --with-mysql --with-pgsql +%__make + +%install +%makeinstall +%__cp -v %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf{.dist,} +for i in indexer search searchd ; do + %__mv %{buildroot}%{_bindir}/{,%{name}-}$i +done + +%clean +%__rm -rf "%{buildroot}" + +%files +%defattr(-,root,root,-) +%config %dir %{_sysconfdir}/%{name} +%config %{_sysconfdir}/%{name}/example.sql +%config(noreplace) %{_sysconfdir}/%{name}/sphinx.conf +%config %{_sysconfdir}/%{name}/sphinx.conf.dist +%config %{_sysconfdir}/%{name}/sphinx-min.conf.dist +%{_bindir}/spelldump +%{_bindir}/sphinx-indexer +%{_bindir}/sphinx-search +%{_bindir}/sphinx-searchd +%doc COPYING api/ contrib/ +%doc doc/*.html doc/*.css doc/*.txt + +%changelog