diff options
Diffstat (limited to 'php-pecl-event.spec')
-rw-r--r-- | php-pecl-event.spec | 41 |
1 files changed, 31 insertions, 10 deletions
diff --git a/php-pecl-event.spec b/php-pecl-event.spec index 54ef261..6ff9f60 100644 --- a/php-pecl-event.spec +++ b/php-pecl-event.spec @@ -1,4 +1,7 @@ -# spec file for php-pecl-event +# remirepo spec file for php-pecl-event +# with SCL stuff, from: +# +# Fedora spec file for php-pecl-event # # Copyright (c) 2013-2015 Remi Collet # License: CC-BY-SA @@ -6,6 +9,14 @@ # # Please, preserve the changelog entries # +%if 0%{?scl:1} +%if "%{scl}" == "rh-php56" +%global sub_prefix more-php56- +%else +%global sub_prefix %{scl_prefix} +%endif +%endif + %{?scl: %scl_package php-pecl-event} %{!?scl: %global _root_prefix %{_prefix}} %{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d} @@ -24,9 +35,9 @@ %endif Summary: Provides interface to libevent library -Name: %{?scl_prefix}php-pecl-%{pecl_name} +Name: %{?sub_prefix}php-pecl-%{pecl_name} Version: 1.11.1 -Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}.1 +Release: 2%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} License: PHP Group: Development/Languages URL: http://pecl.php.net/package/event @@ -40,8 +51,8 @@ BuildRequires: %{?scl_prefix}php-pear # Filter in the SCL collection %{?filter_requires_in: %filter_requires_in %{_libdir}/.*\.so} # libvent from SCL as not available in system -BuildRequires: %{?scl_prefix}libevent-devel >= 2.0.2 -Requires: %{?scl_prefix}libevent%{_isa} >= 2.0.2 +BuildRequires: %{?sub_prefix}libevent-devel >= 2.0.2 +Requires: %{?sub_prefix}libevent%{_isa} >= 2.0.2 %global _event_prefix %{_prefix} %else BuildRequires: libevent-devel >= 2.0.2 @@ -51,8 +62,6 @@ BuildRequires: libevent-devel >= 2.0.2 BuildRequires: openssl-devel BuildRequires: pkgconfig -Requires(post): %{__pecl} -Requires(postun): %{__pecl} Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} Requires: %{?scl_prefix}php(api) = %{php_core_api} Requires: %{?scl_prefix}php-sockets%{?_isa} @@ -218,12 +227,20 @@ REPORT_EXIT_STATUS=1 \ %endif -%post -%{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || : +# when pear installed alone, after us +%triggerin -- %{?scl_prefix}php-pear +if [ -x %{__pecl} ] ; then + %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || : +fi +# posttrans as pear can be installed after us +%posttrans +if [ -x %{__pecl} ] ; then + %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || : +fi %postun -if [ $1 -eq 0 ] ; then +if [ $1 -eq 0 -a -x %{__pecl} ] ; then %{pecl_uninstall} %{pecl_name} >/dev/null || : fi @@ -247,6 +264,10 @@ rm -rf %{buildroot} %changelog +* Sun Jun 21 2015 Remi Collet <remi@fedoraproject.org> - 1.11.1-2 +- allow build against rh-php56 (as more-php56) +- drop runtime dependency on pear, new scriptlets + * Wed Dec 24 2014 Remi Collet <remi@fedoraproject.org> - 1.11.1-1.1 - Fedora 21 SCL mass rebuild |