Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
php5
:
5.6.21
:
extensions
>
php5-sphinx
> php5-sphinx.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File php5-sphinx.spec of Package php5-sphinx
# norootforbuild %define pkg_name sphinx %define pkg_version 1.3.3 %define php_version %(php-config --version 2>/dev/null) # Name: php5-sphinx Version: %{pkg_version} Release: 1 # License: PHP Group: Productivity/Networking/Web/Servers # BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-build BuildRequires: php5-devel libsphinxclient-devel gcc gcc-c++ Requires: php5 = %{php_version} # URL: http://pecl.php.net/ Source: http://pecl.php.net/package/%{pkg_name}/%{pkg_name}-%{version}.tgz Summary: This extension provides bindings for libsphinxclient, client library for Sphinx %description This extension provides bindings for libsphinxclient, client library for Sphinx. Authors: --------- Antony Dovgal %debug_package %prep %setup -n %{pkg_name}-%{version} %{__mkdir} %{name} %build /usr/bin/phpize pushd %{name} CFLAGS="%{optflags} -fno-strict-aliasing" CXXFLAGS="%{optflags} -fno-strict-aliasing" %if 0%{?suse_version} > 1000 CFLAGS="$CFLAGS -fstack-protector" CXXFLAGS="$CXXFLAGS -fstack-protector" %endif export CFLAGS export CXXFLAGS ../configure --with-sphinx=%{_usr} --with-libdir=%{_lib} %{__make} %{?jobs:-j%jobs} popd %install %makeinstall -C %{name} INSTALL_ROOT=%{buildroot} %{__mkdir} -p %{buildroot}%{_sysconfdir}/php5/conf.d echo "; comment out next line to disable sphinx extension in php" > %{buildroot}%{_sysconfdir}/php5/conf.d/sphinx.ini echo "extension = sphinx.so" >> %{buildroot}%{_sysconfdir}/php5/conf.d/sphinx.ini %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root,-) %{_libdir}/php5/extensions/sphinx.so %config(noreplace) %{_sysconfdir}/php5/conf.d/sphinx.ini %doc CREDITS %changelog * Thu Apr 04 2013 Carsten Schoene <cs@linux-administrator.com> - 1.3.0-1 - update to release 1.3.0 * Sun Apr 09 2012 Carsten Schoene <cs@linux-administrator.com> - 1.2.0-1 - update to release 1.2.0 * Tue Jan 12 2010 Carsten Schoene <cs@linux-administrator.com> - 1.0.3-0 - update to release 1.0.3 - Added support for open(), close(), status() and setOverride() available in sphinx 0.9.9 new API * Sun Dec 20 2009 Carsten Schoene <cs@linux-administrator.com> - 1.0.2-0 - update to release 1.0.2 * Sat Jan 31 2009 Carsten Schoene <cs@linux-administrator.com> - initial build version 1.0.0