/[packages]/cauldron/php-memcached/current/SPECS/php-memcached.spec
ViewVC logotype

Contents of /cauldron/php-memcached/current/SPECS/php-memcached.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1450047 - (show annotations) (download)
Sun Oct 6 23:30:06 2019 UTC (2 months, 1 week ago) by mokraemer
File size: 2046 byte(s)
new version 3.1.4
1 %define modname memcached
2 %define dirname %{modname}
3 %define soname %{modname}.so
4 %define inifile A91_%{modname}.ini
5
6 Summary: A libmemcached library interface for PHP
7 Name: php-%{modname}
8 Version: 3.1.4
9 Release: %mkrel 1
10 Group: Development/PHP
11 License: PHP License
12 URL: http://pecl.php.net/package/memcached
13 Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
14 Source1: %{modname}.ini
15 # https://github.com/php-memcached-dev/php-memcached/commit/8bfdbcc9063dafcb25fdb1d1705e07ee027d7379
16 # Edited to remove .travis.yml hunk
17 BuildRequires: pkgconfig(libmemcached) >= 1.0.17
18 BuildRequires: fastlz-devel
19 BuildRequires: event-devel
20 BuildRequires: php-devel >= 3:7.3.0
21 BuildRequires: dos2unix
22 BuildRequires: php-igbinary
23 BuildRequires: php-msgpack
24 Requires: php-session
25 Requires: php >= 3:7.3.0
26 Requires: php-igbinary
27 Requires: php-msgpack
28
29 %description
30 This extension uses libmemcached library to provide API for communicating with
31 memcached servers.
32
33 %prep
34 %setup -q -n %{modname}-%{version}
35 [ "../package.xml" != "/" ] && mv ../package.xml .
36
37 cp %{SOURCE1} %{inifile}
38
39 find . -type d -exec chmod 755 {} \;
40 find . -type f -exec chmod 644 {} \;
41
42 # strip away annoying ^M
43 find -type f | grep -v ".gif" | grep -v ".png" | grep -v ".jpg" | xargs dos2unix
44
45 %autopatch -p1
46
47 %build
48 %serverbuild
49
50 phpize
51 %configure2_5x --with-libdir=%{_lib} \
52 --enable-%{modname}=shared,%{_prefix} \
53 --with-zlib-dir=%{_prefix} \
54 --enable-memcached-protocol \
55 --enable-memcached-session \
56 --enable-memcached-json \
57 --enable-memcached-igbinary \
58 --enable-memcached-msgpack \
59 --with-system-fastlz
60
61 %make_build
62 mv modules/*.so .
63
64 %install
65 install -d %{buildroot}%{_libdir}/php/extensions
66 install -d %{buildroot}%{_sysconfdir}/php.d
67
68 install -m0755 %{soname} %{buildroot}%{_libdir}/php/extensions/
69 install -m0644 %{inifile} %{buildroot}%{_sysconfdir}/php.d/%{inifile}
70
71 %files
72 %doc CREDITS ChangeLog memcached-api.php package.xml
73 %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/php.d/%{inifile}
74 %attr(0755,root,root) %{_libdir}/php/extensions/%{soname}
75
76
77

  ViewVC Help
Powered by ViewVC 1.1.26