|
23 | 23 | Name: %{php}-pecl-apcu-bc
|
24 | 24 | Summary: APCu Backwards Compatibility Module
|
25 | 25 | Version: 1.0.3
|
26 |
| -Release: 1.ius%{?dist} |
| 26 | +Release: 2.ius%{?dist} |
27 | 27 | Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
|
28 | 28 |
|
29 | 29 | License: PHP
|
30 | 30 | Group: Development/Languages
|
31 | 31 | URL: https://pecl.php.net/package/%{pecl_name}
|
32 | 32 |
|
33 | 33 | BuildRequires: %{php}-devel
|
34 |
| -BuildRequires: pecl >= 1.10.0 |
35 | 34 | BuildRequires: %{php}-pecl-apcu-devel >= 5.1.2
|
36 | 35 |
|
| 36 | +BuildRequires: pear1u |
| 37 | +# explicitly require pear dependencies to avoid conflicts |
| 38 | +BuildRequires: %{php}-cli |
| 39 | +BuildRequires: %{php}-common |
| 40 | +BuildRequires: %{php}-process |
| 41 | +BuildRequires: %{php}-xml |
| 42 | + |
37 | 43 | Requires: php(zend-abi) = %{php_zend_api}
|
38 | 44 | Requires: php(api) = %{php_core_api}
|
39 | 45 | Requires: %{php}-pecl-apcu%{?_isa} >= 5.1.2
|
40 | 46 |
|
41 |
| -Requires(post): pecl >= 1.10.0 |
42 |
| -Requires(postun): pecl >= 1.10.0 |
43 |
| - |
44 | 47 | # provide the stock name
|
45 | 48 | Provides: php-pecl-apc = %{apcver}
|
46 | 49 | Provides: php-pecl-apc%{?_isa} = %{apcver}
|
@@ -182,12 +185,20 @@ popd
|
182 | 185 | %endif
|
183 | 186 |
|
184 | 187 |
|
185 |
| -%post |
186 |
| -%{pecl_install} %{pecl_xmldir}/%{pecl_name}.xml >/dev/null || : |
| 188 | +%triggerin -- pear1u |
| 189 | +if [ -x %{__pecl} ]; then |
| 190 | + %{pecl_install} %{pecl_xmldir}/%{pecl_name}.xml >/dev/null || : |
| 191 | +fi |
| 192 | + |
| 193 | + |
| 194 | +%posttrans |
| 195 | +if [ -x %{__pecl} ]; then |
| 196 | + %{pecl_install} %{pecl_xmldir}/%{pecl_name}.xml >/dev/null || : |
| 197 | +fi |
187 | 198 |
|
188 | 199 |
|
189 | 200 | %postun
|
190 |
| -if [ $1 -eq 0 ]; then |
| 201 | +if [ $1 -eq 0 -a -x %{__pecl} ]; then |
191 | 202 | %{pecl_uninstall} %{pecl_name} >/dev/null || :
|
192 | 203 | fi
|
193 | 204 |
|
|
207 | 218 |
|
208 | 219 |
|
209 | 220 | %changelog
|
| 221 | +* Wed Jan 31 2018 Carl George <carl@george.computer> - 1.0.3-2.ius |
| 222 | +- Remove pear requirement and update scriptlets (adapted from remirepo) |
| 223 | + |
210 | 224 | * Tue Mar 21 2017 Carl George <carl.george@rackspace.com> - 1.0.3-1.ius
|
211 | 225 | - Port from Fedora to IUS
|
212 | 226 | - Install package.xml as %%{pecl_name}.xml, not %%{name}.xml
|
|
0 commit comments