SPECS: sphinx.spec - created php-sphinx

glen glen at pld-linux.org
Thu May 24 10:58:54 CEST 2007


Author: glen                         Date: Thu May 24 08:58:54 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- created php-sphinx

---- Files affected:
SPECS:
   sphinx.spec (1.10 -> 1.11) 

---- Diffs:

================================================================
Index: SPECS/sphinx.spec
diff -u SPECS/sphinx.spec:1.10 SPECS/sphinx.spec:1.11
--- SPECS/sphinx.spec:1.10	Tue May 15 15:10:56 2007
+++ SPECS/sphinx.spec	Thu May 24 10:58:46 2007
@@ -1,6 +1,6 @@
 # $Revision$, $Date$
 #  TODO
-# - packages for PHP/Python/Ruby API
+# - packages for Python/Ruby API
 #
 # Conditional build:
 %bcond_without	pgsql		# without pgsql support
@@ -9,7 +9,7 @@
 Summary(pl.UTF-8):	Silnik przeszukiwania pełnotekstowego SQL open-source
 Name:		sphinx
 Version:	0.9.7
-Release:	0.3
+Release:	0.4
 License:	GPL v2
 Group:		Applications/Databases
 Source0:	http://www.sphinxsearch.com/downloads/%{name}-%{version}.tar.gz
@@ -41,6 +41,14 @@
 pobieranie danych poprzez bezpośrednie połączenie z MySQL lub z potoku
 XML.
 
+%package -n php-sphinx
+Summary:	PHP API for Sphinx
+Group:		Libraries
+Requires:	php-common >= 4:5.0.4
+
+%description -n php-sphinx
+PHP API for Sphinx.
+
 %prep
 %setup -q
 %patch0 -p1
@@ -58,8 +66,7 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_sbindir}
-install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/rc.d/init.d}
+install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/rc.d/init.d,%{_datadir}/php}
 
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
@@ -69,6 +76,8 @@
 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/searchd
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
 
+cp -a api/sphinxapi.php $RPM_BUILD_ROOT%{_datadir}/php
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -81,12 +90,18 @@
 %attr(755,root,root) %{_sbindir}/searchd
 %attr(754,root,root) /etc/rc.d/init.d/%{name}
 
+%files -n php-sphinx
+%{_datadir}/php/sphinxapi.php
+
 %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.11  2007/05/24 08:58:46  glen
+- created php-sphinx
+
 Revision 1.10  2007/05/15 13:10:56  glen
 - add initscript (NFY) and moved searchd to sbindir
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/sphinx.spec?r1=1.10&r2=1.11&f=u



More information about the pld-cvs-commit mailing list