SPECS: sphinx.spec (NEW) - new

glen glen at pld-linux.org
Tue Mar 13 09:59:24 CET 2007


Author: glen                         Date: Tue Mar 13 08:59:24 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new

---- Files affected:
SPECS:
   sphinx.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/sphinx.spec
diff -u /dev/null SPECS/sphinx.spec:1.1
--- /dev/null	Tue Mar 13 09:59:24 2007
+++ SPECS/sphinx.spec	Tue Mar 13 09:59:19 2007
@@ -0,0 +1,75 @@
+# $Revision$, $Date$
+# TODO
+# - make mysql Storage Engine
+%define		_rc		rc2
+%define		_rel	0.1
+Summary:	Free open-source SQL full-text search engine
+Name:		sphinx
+Version:	0.9.7
+Release:	0.%{_rc}.%{_rel}
+License:	GPL v2
+Group:		Applications/Databases
+Source0:	http://www.sphinxsearch.com/downloads/%{name}-%{version}-%{_rc}.tar.gz
+# Source0-md5:	65daf0feb7e276fb3de0aba82cff1d3e
+Patch0:		%{name}-offset_t.patch
+Patch1:		%{name}-DESTDIR.patch
+URL:		http://www.sphinxsearch.com/
+BuildRequires:	autoconf
+BuildRequires:	automake
+BuildRequires:	mysql-devel
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Sphinx is a 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 sources
+support fetching data either via direct connection to MySQL, or from
+an XML pipe.
+
+%prep
+%setup -q -n %{name}-%{version}-%{_rc}
+%ifnarch %{x8664} alpha
+# he uses off_t for 8 bit pointers. at least i686 has off_t 4 bit
+# it could break code but at least it compiles now.
+%patch0 -p1
+%endif
+%patch1 -p1
+
+%build
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+rm -f $RPM_BUILD_ROOT%{_sysconfdir}/example.sql
+mv $RPM_BUILD_ROOT%{_sysconfdir}/sphinx.conf{.dist,}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc doc/sphinx.txt example.sql
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sphinx.conf
+%attr(755,root,root) %{_bindir}/indexer
+%attr(755,root,root) %{_bindir}/search
+%attr(755,root,root) %{_bindir}/searchd
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2007/03/13 08:59:19  glen
+- new
+
================================================================


More information about the pld-cvs-commit mailing list