diff options
author | Remi Collet <fedora@famillecollet.com> | 2012-12-10 13:50:07 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2012-12-10 13:50:07 +0100 |
commit | 3d781c694857b75495f3ae9b5fd0202b378c53c8 (patch) | |
tree | c98b1b3305c5cb84cdba6381682c4e5d11d75d3c /php-pecl-http.spec | |
parent | 03fb4206c59b8aabeb38bf1c83cd14c42c16f2be (diff) |
php-pecl-* rebuild against new Zend ABI
Diffstat (limited to 'php-pecl-http.spec')
-rw-r--r-- | php-pecl-http.spec | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/php-pecl-http.spec b/php-pecl-http.spec index dc73fdf..529eb4b 100644 --- a/php-pecl-http.spec +++ b/php-pecl-http.spec @@ -7,7 +7,7 @@ Name: php-pecl-http Version: 2.0.0 -Release: 0.12.%{prever}%{?dist} +Release: 0.12.%{prever}%{?dist}.3 Summary: Extended HTTP support License: BSD @@ -133,18 +133,24 @@ install -Dpm644 %{pecl_name}.ini %{buildroot}%{php_ztsinidir}/z-%{pecl_name}.ini %check # Minimal load test for NTS extension -ln -sf %{php_extdir}/json.so %{proj_name}-%{version}%{?prever}/modules +modules="" +for mod in json hash iconv; do + if [ -f %{php_extdir}/${mod}.so ]; then + ln -sf %{php_extdir}/${mod}.so %{proj_name}-%{version}%{?prever}/modules + ln -sf %{php_ztsextdir}/${mod}.so %{proj_name}-zts/modules + modules="$modules --define extension=${mod}.so" + fi +done %{__php} --no-php-ini \ --define extension_dir=%{proj_name}-%{version}%{?prever}/modules \ - --define extension=json.so \ + $modules \ --define extension=%{pecl_name}.so \ --modules | grep %{pecl_name} # Minimal load test for ZTS extension -ln -sf %{php_ztsextdir}/json.so %{proj_name}-zts/modules %{__ztsphp} --no-php-ini \ --define extension_dir=%{proj_name}-zts/modules \ - --define extension=json.so \ + $modules \ --define extension=%{pecl_name}.so \ --modules | grep %{pecl_name} |