Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
php5
:
extensions
>
php5-redis
> php5-redis.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File php5-redis.spec of Package php5-redis (Revision 8)
Currently displaying revision
8
,
show latest
# norootforbuild %define pkg_name redis %define php_version %(php-config --version 2>/dev/null || echo PHPCONFIG_NOT_FOUND) %define pkg_version 3.1.3 # BuildPreReq: coreutils awk Name: php5-redis Version: 3.1.3 Release: 1 License: BSD Group: Productivity/Networking/Web/Servers BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-build BuildRequires: php-devel Requires: php5 = %{php_version} URL: http://pecl.php.net/package/redis Source: %{pkg_name}-%{pkg_version}.tgz Summary: API for redis communication %description This extension provides an API for communicating with Redis servers. %debug_package %prep %setup -n %{pkg_name}-%{pkg_version} %build %{_bindir}/phpize 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-redis=%{_usr} \ --with-php-config=%{_bindir}/php-config || cat config.log %{__make} %{?jobs:-j%jobs} %install %__install -D -m0755 modules/redis.so %{buildroot}`php-config --extension-dir`/redis.so %{__mkdir} -p %{buildroot}%{_sysconfdir}/php5/conf.d echo "; comment out next line to disable redis extension in php" > %{buildroot}%{_sysconfdir}/php5/conf.d/redis.ini echo 'extension = redis.so' >> %{buildroot}%{_sysconfdir}/php5/conf.d/redis.ini %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root,-) %{_libdir}/php5/extensions/redis.so %config(noreplace) %{_sysconfdir}/php5/conf.d/redis.ini %changelog * Thu Jun 12 2008 Carsten Schoene <cs@linux-administrator.com> - initial package build