14
14
%global pecl_name apcu_bc
15
15
%global ext_name apc
16
16
%global apcver %(%{_bindir }/php -r 'echo (phpversion("apcu")?:0);' 2> /dev/null || echo 65536)
17
- %global with_zts 0%{! ?_without_zts:%{?__ztsphp:1}}
18
17
# After 40-apcu.ini
19
18
%global ini_name 50-%{ext_name }.ini
20
19
%global php php71u
21
20
21
+ %bcond_without zts
22
+
22
23
Name: %{php }-pecl-apcu-bc
23
24
Summary: APCu Backwards Compatibility Module
24
25
Version: 1.0.3
@@ -97,7 +98,7 @@ if test "x${extver}" != "x%{version}%{?prever}%{?gh_date:dev}"; then
97
98
fi
98
99
popd
99
100
100
- %if %{with_zts }
101
+ %if %{with zts }
101
102
# duplicate for ZTS build
102
103
cp -pr NTS ZTS
103
104
%endif
@@ -119,7 +120,7 @@ pushd NTS
119
120
make %{?_smp_mflags }
120
121
popd
121
122
122
- %if %{with_zts }
123
+ %if %{with zts }
123
124
pushd ZTS
124
125
%{_bindir }/zts-phpize
125
126
%configure \
135
136
make -C NTS install INSTALL_ROOT=%{buildroot }
136
137
install -D -m 644 %{ini_name } %{buildroot }%{php_inidir }/%{ini_name }
137
138
138
- %if %{with_zts }
139
+ %if %{with zts }
139
140
# Install the ZTS stuff
140
141
make -C ZTS install INSTALL_ROOT= %{buildroot }
141
142
install -D -m 644 %{ini_name } %{buildroot }%{php_ztsinidir }/%{ini_name }
@@ -166,7 +167,7 @@ REPORT_EXIT_STATUS=1 \
166
167
%{__php} -n run-tests.php --show-diff
167
168
popd
168
169
169
- %if %{with_zts }
170
+ %if %{with zts }
170
171
pushd ZTS
171
172
%{__ztsphp} -n \
172
173
-d extension= apcu.so \
201
202
%config(noreplace) %{php_inidir }/%{ini_name }
202
203
%{php_extdir }/apc.so
203
204
204
- %if %{with_zts }
205
+ %if %{with zts }
205
206
%config(noreplace) %{php_ztsinidir }/%{ini_name }
206
207
%{php_ztsextdir }/apc.so
207
208
%endif
212
213
- Port from Fedora to IUS
213
214
- Install package.xml as %%{pecl_name}.xml, not %%{name}.xml
214
215
- Re-add scriptlets (file triggers not yet available in EL)
216
+ - Use modern conditional for zts
215
217
216
218
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-5
217
219
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
0 commit comments