Logoj0ke.net Open Build Service > Projects > internetx:php7:EL7 > php-pecl-memcached > Changes
Sign Up | Log In

Changes of Revision 5

[+] Deleted php-pecl-memcached-dev.changes
[-] Added php-pecl-memcached-php7.changes ^
 
1
@@ -0,0 +1,5 @@
2
+-------------------------------------------------------------------
3
+Tue Feb 21 13:18:38 UTC 2017 - cs@linux-administrator.com
4
+
5
+- update to release 3.0.3
6
+
7
[+] Deleted php-pecl-memcached-dev.spec ^
[-] Added php-pecl-memcached-php7.spec ^
201
 
1
@@ -0,0 +1,539 @@
2
+# remirepo spec file for php-pecl-memcached
3
+# With SCL compatibility, from:
4
+#
5
+# Fedora spec file for php-pecl-memcached
6
+#
7
+# Copyright (c) 2009-2017 Remi Collet
8
+# License: CC-BY-SA
9
+# http://creativecommons.org/licenses/by-sa/4.0/
10
+#
11
+# Please, preserve the changelog entries
12
+#
13
+%if 0%{?scl:1}
14
+%global sub_prefix %{scl_prefix}
15
+%scl_package         php-pecl-memcached
16
+%else
17
+%global _root_prefix %{_prefix}
18
+%endif
19
+
20
+%global with_fastlz 1
21
+%global with_igbin  1
22
+%global with_zts    0%{!?_without_zts:%{?__ztsphp:1}}
23
+%global with_tests  0%{!?_without_tests:1}
24
+%global pecl_name   memcached
25
+# After 40-igbinary, 40-json, 40-msgpack
26
+%global ini_name    50-%{pecl_name}.ini
27
+
28
+Summary:      Extension to work with the Memcached caching daemon
29
+Name:         %{?sub_prefix}php-pecl-memcached
30
+Version:      3.0.3
31
+Release:      1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
32
+License:      PHP
33
+Group:        Development/Languages
34
+URL:          http://pecl.php.net/package/%{pecl_name}
35
+
36
+Source0:      http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
37
+
38
+BuildRequires: %{?scl_prefix}php-devel >= 7
39
+BuildRequires: %{?scl_prefix}php-pear
40
+BuildRequires: %{?scl_prefix}php-json
41
+%if %{with_igbin}
42
+BuildRequires: %{?sub_prefix}php-pecl-igbinary-devel
43
+%endif
44
+%ifnarch ppc64
45
+BuildRequires: %{?sub_prefix}php-pecl-msgpack-devel
46
+%endif
47
+BuildRequires: zlib-devel
48
+BuildRequires: cyrus-sasl-devel
49
+%if %{with_fastlz}
50
+BuildRequires: fastlz-devel
51
+%endif
52
+%if %{with_tests}
53
+BuildRequires: memcached
54
+%endif
55
+
56
+BuildRequires: libevent-devel >= 2.0.2
57
+# To ensure use of libmemcached-last for --enable-memcached-protocol
58
+BuildRequires: libmemcached-devel  >= 1.0.16
59
+
60
+Requires:     %{?scl_prefix}php(zend-abi) = %{php_zend_api}
61
+Requires:     %{?scl_prefix}php(api) = %{php_core_api}
62
+Requires:     %{?scl_prefix}php-json%{?_isa}
63
+%if %{with_igbin}
64
+Requires:     %{?sub_prefix}php-pecl-igbinary%{?_isa}
65
+%endif
66
+%ifnarch ppc64
67
+Requires:     %{?sub_prefix}php-pecl-msgpack%{?_isa}
68
+%endif
69
+%{?_sclreq:Requires: %{?scl_prefix}runtime%{?_sclreq}%{?_isa}}
70
+
71
+Provides:     %{?scl_prefix}php-%{pecl_name}               = %{version}
72
+Provides:     %{?scl_prefix}php-%{pecl_name}%{?_isa}       = %{version}
73
+Provides:     %{?scl_prefix}php-pecl(%{pecl_name})         = %{version}
74
+Provides:     %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version}
75
+%if "%{?scl_prefix}" != "%{?sub_prefix}"
76
+Provides:     %{?scl_prefix}php-pecl-%{pecl_name}          = %{version}-%{release}
77
+Provides:     %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa}  = %{version}-%{release}
78
+%endif
79
+
80
+%if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel}
81
+# Other third party repo stuff
82
+Obsoletes:     php53-pecl-%{pecl_name}  <= %{version}
83
+Obsoletes:     php53u-pecl-%{pecl_name} <= %{version}
84
+Obsoletes:     php54-pecl-%{pecl_name}  <= %{version}
85
+Obsoletes:     php54w-pecl-%{pecl_name} <= %{version}
86
+%if "%{php_version}" > "5.5"
87
+Obsoletes:     php55u-pecl-%{pecl_name} <= %{version}
88
+Obsoletes:     php55w-pecl-%{pecl_name} <= %{version}
89
+%endif
90
+%if "%{php_version}" > "5.6"
91
+Obsoletes:     php56u-pecl-%{pecl_name} <= %{version}
92
+Obsoletes:     php56w-pecl-%{pecl_name} <= %{version}
93
+%endif
94
+%if "%{php_version}" > "7.0"
95
+Obsoletes:     php70u-pecl-%{pecl_name} <= %{version}
96
+Obsoletes:     php70w-pecl-%{pecl_name} <= %{version}
97
+%endif
98
+%if "%{php_version}" > "7.1"
99
+Obsoletes:     php71u-pecl-%{pecl_name} <= %{version}
100
+Obsoletes:     php71w-pecl-%{pecl_name} <= %{version}
101
+%endif
102
+%endif
103
+
104
+%if 0%{?fedora} < 20 && 0%{?rhel} < 7
105
+# Filter private shared
106
+%{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so$}
107
+%{?filter_setup}
108
+%endif
109
+
110
+
111
+%description
112
+This extension uses libmemcached library to provide API for communicating
113
+with memcached servers.
114
+
115
+memcached is a high-performance, distributed memory object caching system,
116
+generic in nature, but intended for use in speeding up dynamic web 
117
+applications by alleviating database load.
118
+
119
+It also provides a session handler (memcached). 
120
+
121
+Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')%{?scl: as Software Collection (%{scl} by %{?scl_vendor}%{!?scl_vendor:rh})}.
122
+
123
+
124
+%prep 
125
+%setup -c -q
126
+mv %{pecl_name}-%{version} NTS
127
+
128
+# Don't install/register tests
129
+sed -e 's/role="test"/role="src"/' \
130
+    %{?_licensedir:-e '/LICENSE/s/role="doc"/role="src"/' } \
131
+    -i package.xml
132
+
133
+cd NTS
134
+
135
+%if %{with_fastlz}
136
+rm -r fastlz
137
+sed -e '/name=.fastlz/d' -i ../package.xml
138
+%endif
139
+
140
+# Check version as upstream often forget to update this
141
+extver=$(sed -n '/#define PHP_MEMCACHED_VERSION/{s/.* "//;s/".*$//;p}' php_memcached.h)
142
+if test "x${extver}" != "x%{version}%{?gh_date:-dev}%{?intver}"; then
143
+   : Error: Upstream HTTP version is now ${extver}, expecting %{version}%{?prever}%{?gh_date:-dev}.
144
+   : Update the pdover macro and rebuild.
145
+   exit 1
146
+fi
147
+cd ..
148
+
149
+cat > %{ini_name} << 'EOF'
150
+; Enable %{pecl_name} extension module
151
+extension=%{pecl_name}.so
152
+
153
+; ----- Options to use the memcached session handler
154
+
155
+; RPM note : save_handler and save_path are defined
156
+; for mod_php, in /etc/httpd/conf.d/php.conf
157
+; for php-fpm, in %{_sysconfdir}/php-fpm.d/*conf
158
+
159
+;  Use memcache as a session handler
160
+;session.save_handler=memcached
161
+;  Defines a comma separated list of server urls to use for session storage
162
+;session.save_path="localhost:11211"
163
+
164
+; ----- Configuration options
165
+; http://php.net/manual/en/memcached.configuration.php
166
+
167
+EOF
168
+
169
+# default options with description from upstream
170
+cat NTS/memcached.ini >>%{ini_name}
171
+
172
+%if %{with_zts}
173
+cp -r NTS ZTS
174
+%endif
175
+
176
+
177
+%build
178
+%{?dtsenable}
179
+
180
+# only needed for SCL
181
+export PKG_CONFIG_PATH=%{_libdir}/pkgconfig
182
+
183
+peclconf() {
184
+%configure \
185
+%if %{with_igbin}
186
+           --enable-memcached-igbinary \
187
+%endif
188
+           --enable-memcached-json \
189
+           --enable-memcached-sasl \
190
+%ifnarch ppc64
191
+           --enable-memcached-msgpack \
192
+%endif
193
+%if 0
194
+           --disable-memcached-protocol \
195
+%else
196
+           --enable-memcached-protocol \
197
+%endif
198
+%if %{with_fastlz}
199
+           --with-system-fastlz \
200
+%endif
201
Added memcached-3.0.3.tgz ^
Deleted php-memcached-3.0.0-6ace07d.tar.gz ^
Deleted php-memcached-3.0.0-de6b9b5.tar.gz ^