File php5-pecl-memcache.spec of Package php5-pecl-memcache-stable
1
# norootforbuild
2
#
3
%define php_version %(php-config --version 2>/dev/null)
4
5
Name: php5-pecl-memcache
6
Version: 2.2.7
7
Release: 1
8
#
9
Group: Productivity/Networking/Web/Servers
10
License: PHP
11
#
12
BuildRoot: %{_tmppath}/%{name}-%{version}-build
13
BuildRequires: php5-devel zlib-devel
14
Requires: php5 = %{php_version}
15
#
16
URL: http://pecl.php.net/package/memcache
17
Source: http://pecl.php.net/get/memcache-%{version}.tgz
18
Source1: memcache.ini
19
Patch0: memcache-sessiondep.patch
20
#
21
Summary: PHP Memcache client Extension
22
23
%description
24
25
Memcached is a caching daemon designed especially for dynamic web applications
26
to decrease database load by storing objects in memory. This extension allows
27
you to work with memcached through handy OO and procedural interfaces.
28
29
Author:
30
-------
31
Antony Dovgal
32
33
%prep
34
35
%setup -q -n memcache-%{version}
36
37
38
%build
39
40
/usr/bin/phpize
41
42
CFLAGS="%{optflags} -fno-strict-aliasing"
43
CXXFLAGS="%{optflags} -fno-strict-aliasing"
44
%if 0%{?suse_version} > 1000
45
CFLAGS="$CFLAGS -fstack-protector"
46
CXXFLAGS="$CXXFLAGS -fstack-protector"
47
%endif
48
49
export CFLAGS
50
export CXXFLAGS
51
52
%configure --with-libdir=%{_lib}
53
54
%{__make}
55
56
%install
57
58
%makeinstall INSTALL_ROOT="%{buildroot}"
59
60
%{__mkdir_p} %{buildroot}%{_sysconfdir}/php5/conf.d
61
%{__install} -m 644 %{S:1} %{buildroot}%{_sysconfdir}/php5/conf.d/memcache.ini
62
chmod -x README CREDITS
63
64
%clean
65
66
%{__rm} -rf %{buildroot}
67
68
%files
69
%defattr(-,root,root,-)
70
%doc README CREDITS example.php
71
%config(noreplace) %{_sysconfdir}/php5/conf.d/memcache.ini
72
%{_libdir}/php5/extensions/memcache.so
73
74
%changelog
75