Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
php7
:
7.0.2
:
extensions
>
php7-memcached
> php5-memcached.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File php5-memcached.spec of Package php7-memcached
# norootforbuild %define pkg_name memcached %define src_version 3.0.3 %define pkg_version 3.0.3 %define php_version %(php-config --version 2>/dev/null) # Name: php7-memcached Version: %{pkg_version} Release: 1 # License: PHP Group: Productivity/Networking/Web/Servers # BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-build BuildRequires: php7-devel libmemcached libmemcached-devel gcc gcc-c++ pkg-config BuildRequires: cyrus-sasl-devel Requires: php7 = %{php_version} # URL: http://pecl.php.net/ Source: http://pecl.php.net/package/%{pkg_name}/%{pkg_name}-%{src_version}.tgz Summary: Extension uses libmemcached lib for communicating with memcached servers %description This extension uses libmemcached library to provide API for communicating with memcached servers. Authors: --------- Andrei Zmievski %debug_package %prep %setup -n %{pkg_name}-%{src_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-memcached=%{_usr} --with-libdir=%{_lib} --with-libmemcached-dir=%{_prefix} %{__make} %{?jobs:-j%jobs} popd %install %makeinstall -C %{name} INSTALL_ROOT=%{buildroot} %{__mkdir} -p %{buildroot}%{_sysconfdir}/php7/conf.d echo "; comment out next line to disable memcached extension in php" > %{buildroot}%{_sysconfdir}/php7/conf.d/memcached.ini echo "extension = memcached.so" >> %{buildroot}%{_sysconfdir}/php7/conf.d/memcached.ini %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root,-) %{_libdir}/php7/extensions/memcached.so %config(noreplace) %{_sysconfdir}/php7/conf.d/memcached.ini %doc CREDITS %changelog * Sun Feb 17 2013 Carsten Schoene <cs@linux-administrator.com> - 2.1.0-1 - update to release 2.1.0 * Wed May 05 2010 Carsten Schoene <cs@linux-administrator.com> - 1.0.2-1 - update to release 1.0.2 * Tue Mar 09 2010 Carsten Schoene <cs@linux-administrator.com> - 1.0.1-1 - update to release 1.0.1 * Wed Jul 07 2009 Carsten Schoene <cs@linux-administrator.com> - 1.0.0-1 - update to release 1.0.0 * Fri Jun 05 2009 Carsten Schoene <cs@linux-administrator.com> - update to release 0.2.0 * Tue Mar 31 2009 Carsten Schoene <cs@linux-administrator.com> - update to release 0.1.5 * Tue Feb 17 2009 Carsten Schoene <cs@linux-administrator.com> - update to release 0.1.4 * Fri Feb 06 2009 Carsten Schoene <cs@linux-administrator.com> - update to release 0.1.2 & 0.1.3 * Tue Feb 03 2009 Carsten Schoene <cs@linux-administrator.com> - update to release 0.1.1 * Sat Jan 31 2009 Carsten Schoene <cs@linux-administrator.com> - initial build version 0.1.0