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

Difference Between Revision 12 and internetx:php5:extensions / php5-redis

[-] Added php-pecl-redis.changes
x
 
1
@@ -0,0 +1,30 @@
2
+-------------------------------------------------------------------
3
+Fri Jan 12 13:34:17 UTC 2018 - cs@linux-administrator.com
4
+
5
+- update to release 3.1.6
6
+
7
+-------------------------------------------------------------------
8
+Mon Jul 17 06:08:57 UTC 2017 - cs@linux-administrator.com
9
+
10
+- update to release 3.1.3
11
+
12
+-------------------------------------------------------------------
13
+Sun Apr  2 13:28:48 UTC 2017 - cs@linux-administrator.com
14
+
15
+- update to release 3.1.2
16
+
17
+-------------------------------------------------------------------
18
+Fri Feb 10 11:45:43 UTC 2017 - cs@linux-administrator.com
19
+
20
+- update to release 3.1.1
21
+
22
+-------------------------------------------------------------------
23
+Thu Dec 15 07:30:15 UTC 2016 - cs@linux-administrator.com
24
+
25
+- update to release 3.1.0
26
+
27
+-------------------------------------------------------------------
28
+Thu Aug 18 12:52:20 UTC 2016 - cs@linux-administrator.com
29
+
30
+- initial import
31
+
32
[+] Deleted php5-redis.changes ^
[-] Added php-pecl-redis.spec ^
201
 
1
@@ -0,0 +1,247 @@
2
+# spec file for php-pecl-redis
3
+#
4
+# Copyright (c) 2012-2014 Remi Collet
5
+# License: CC-BY-SA
6
+# http://creativecommons.org/licenses/by-sa/3.0/
7
+#
8
+# Please, preserve the changelog entries
9
+#
10
+%global php_inidir  %{_sysconfdir}/php.d
11
+%global __pecl      %{_bindir}/pecl
12
+%global __php       %{_bindir}/php
13
+
14
+%global basepkg     php
15
+%global pecl_name   redis
16
+%global with_zts    0%{?__ztsphp:1}
17
+%global with_tests  %{?_with_tests:1}%{!?_with_tests:0}
18
+%global pecl_docdir  %(%{__pecl} config-get doc_dir)
19
+%global with_igbinary 1
20
+%global    pkg_version 3.1.6
21
+
22
+Summary:       Extension for communicating with the Redis key-value store
23
+Name:          %{basepkg}-pecl-redis
24
+Version:       3.1.6
25
+Release:       1%{?dist}
26
+License:       PHP
27
+Group:         Development/Languages
28
+URL:           http://pecl.php.net/package/redis
29
+Source0:       http://pecl.php.net/get/%{pecl_name}-%{pkg_version}.tgz
30
+
31
+BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root
32
+BuildRequires: %{basepkg}-devel, %{basepkg}-pear
33
+%if 0%{?with_igbinary}
34
+BuildRequires: %{basepkg}-pecl-igbinary-devel
35
+%endif
36
+# to run Test suite
37
+%if %{with_tests}
38
+BuildRequires: redis >= 2.6
39
+%endif
40
+
41
+Requires:      php(zend-abi) = %{php_zend_api}
42
+Requires:      php(api) = %{php_core_api}
43
+%if 0%{?with_igbinary}
44
+# php-pecl-igbinary missing php-pecl(igbinary)%{?_isa}
45
+Requires:      php-pecl-igbinary%{?_isa}
46
+%endif
47
+Provides:      php-redis = %{version}-%{release}
48
+Provides:      php-redis%{?_isa} = %{version}-%{release}
49
+Provides:      php-pecl(%{pecl_name}) = %{version}
50
+Provides:      php-pecl(%{pecl_name})%{?_isa} = %{version}
51
+Provides:      php-pecl-%{pecl_name} = %{version}-%{release}
52
+Provides:      php-pecl-%{pecl_name}%{?_isa} = %{version}-%{release}
53
+
54
+%if 0%{?fedora} < 20 && 0%{?rhel} < 7
55
+# Filter private shared object
56
+%{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so$}
57
+%{?filter_setup}
58
+%endif
59
+
60
+
61
+%description
62
+The phpredis extension provides an API for communicating
63
+with the Redis key-value store.
64
+
65
+This Redis client implements most of the latest Redis API.
66
+As method only only works when also implemented on the server side,
67
+some doesn't work with an old redis server version.
68
+
69
+
70
+%prep
71
+%setup -q -c -n %{pecl_name}-%{pkg_version}
72
+
73
+# rename source folder
74
+mv %{pecl_name}-%{pkg_version} nts
75
+
76
+# Sanity check, really often broken
77
+extver=$(sed -n '/#define PHP_REDIS_VERSION/{s/.* "//;s/".*$//;p}' nts/php_redis.h)
78
+if test "x${extver}" != "x%{pkg_version}"; then
79
+   : Error: Upstream extension version is ${extver}, expecting %{pkg_version}.
80
+   exit 1
81
+fi
82
+
83
+%if %{with_zts}
84
+# duplicate for ZTS build
85
+cp -pr nts zts
86
+%endif
87
+
88
+# Drop in the bit of configuration
89
+cat > %{pecl_name}.ini << 'EOF'
90
+; Enable %{pecl_name} extension module
91
+extension = %{pecl_name}.so
92
+
93
+; phpredis can be used to store PHP sessions. 
94
+; To do this, uncomment and configure below
95
+;session.save_handler = %{pecl_name}
96
+;session.save_path = "tcp://host1:6379?weight=1, tcp://host2:6379?weight=2&timeout=2.5, tcp://host3:6379?weight=2"
97
+EOF
98
+
99
+
100
+%build
101
+cd nts
102
+%{_bindir}/phpize
103
+%configure \
104
+    --enable-redis \
105
+    --enable-redis-session \
106
+%if 0%{?with_igbinary}
107
+    --enable-redis-igbinary \
108
+%endif
109
+    --with-php-config=%{_bindir}/php-config
110
+make %{?_smp_mflags}
111
+
112
+%if %{with_zts}
113
+cd ../zts
114
+%{_bindir}/zts-phpize
115
+%configure \
116
+    --enable-redis \
117
+    --enable-redis-session \
118
+%if 0%{?with_igbinary}
119
+    --enable-redis-igbinary \
120
+%endif
121
+    --with-php-config=%{_bindir}/zts-php-config
122
+make %{?_smp_mflags}
123
+%endif
124
+
125
+
126
+%install
127
+# Install the NTS stuff
128
+make -C nts install INSTALL_ROOT=%{buildroot}
129
+install -D -m 644 %{pecl_name}.ini %{buildroot}%{php_inidir}/%{pecl_name}.ini
130
+
131
+%if %{with_zts}
132
+# Install the ZTS stuff
133
+make -C zts install INSTALL_ROOT=%{buildroot}
134
+install -D -m 644 %{pecl_name}.ini %{buildroot}%{php_ztsinidir}/%{pecl_name}.ini
135
+%endif
136
+
137
+# Install the package XML file
138
+install -D -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml
139
+
140
+# Test & Documentation
141
+cd nts
142
+for i in $(grep 'role="doc"' ../package.xml | sed -e 's/^.*name="//;s/".*$//')
143
+do install -Dpm 644 $i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i
144
+done
145
+
146
+
147
+%check
148
+# simple module load test
149
+%{__php} --no-php-ini \
150
+%if 0%{?with_igbinary}
151
+    --define extension=igbinary.so \
152
+%endif
153
+    --define extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \
154
+    --modules | grep %{pecl_name}
155
+
156
+%if %{with_zts}
157
+%{__ztsphp} --no-php-ini \
158
+%if 0%{?with_igbinary}
159
+    --define extension=igbinary.so \
160
+%endif
161
+    --define extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so \
162
+    --modules | grep %{pecl_name}
163
+%endif
164
+
165
+%if %{with_tests}
166
+cd nts/tests
167
+
168
+# this test requires redis >= 2.6.9
169
+# https://github.com/nicolasff/phpredis/pull/333
170
+sed -e s/testClient/SKIP_testClient/ \
171
+    -i TestRedis.php
172
+
173
+# Launch redis server
174
+mkdir -p {run,log,lib}/redis
175
+sed -e "s:/var:$PWD:" \
176
+    -e "/daemonize/s/no/yes/" \
177
+    /etc/redis.conf >redis.conf
178
+# port number to allow 32/64 build at same time
179
+# and avoid conflict with a possible running server
180
+%if 0%{?__isa_bits}
181
+port=$(expr %{__isa_bits} + 6350)
182
+%else
183
+%ifarch x86_64
184
+port=6414
185
+%else
186
+port=6382
187
+%endif
188
+%endif
189
+sed -e "s/6379/$port/" -i redis.conf
190
+sed -e "s/6379/$port/" -i TestRedis.php
191
+%{_sbindir}/redis-server ./redis.conf
192
+
193
+# Run the test Suite
194
+ret=0
195
+%{__php} --no-php-ini \
196
+%if 0%{?with_igbinary}
197
+    --define extension=igbinary.so \
198
+%endif
199
+    --define extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \
200
+    TestRedis.php || ret=1
201
[+] Deleted php5-redis.spec ^
Changed redis-3.0.0.tgz ^
Changed redis-3.1.6.tgz ^