diff options
author | Remi Collet <fedora@famillecollet.com> | 2016-03-08 09:29:31 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2016-03-08 09:29:31 +0100 |
commit | af937657359a415f36e9c1af9aebda6b48deb336 (patch) | |
tree | 1861a30ee301385b4f3f206f9cb352498cf8a2a6 | |
parent | 8e85c79ee9ec0036cfce3893abea1e5d29d740e9 (diff) |
php-pecl-chdb: F24
-rw-r--r-- | php-pecl-chdb.spec | 53 |
1 files changed, 34 insertions, 19 deletions
diff --git a/php-pecl-chdb.spec b/php-pecl-chdb.spec index 270e071..62115ce 100644 --- a/php-pecl-chdb.spec +++ b/php-pecl-chdb.spec @@ -7,9 +7,6 @@ # Please, preserve the changelog entries # %{?scl: %scl_package php-pecl-chdb} -%{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d} -%{!?__pecl: %global __pecl %{_bindir}/pecl} -%{!?__php: %global __php %{_bindir}/php} %global pecl_name chdb %global with_zts 0%{?__ztsphp:1} @@ -22,7 +19,7 @@ Summary: A fast database for constant data Name: %{?scl_prefix}php-pecl-%{pecl_name} Version: 1.0.3 -Release: 5%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}.1 +Release: 6%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} License: PHP Group: Development/Languages URL: http://pecl.php.net/package/%{pecl_name} @@ -33,17 +30,17 @@ BuildRequires: %{?scl_prefix}php-devel BuildRequires: %{?scl_prefix}php-pear BuildRequires: cmph-devel -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-spl%{?_isa} %{?_sclreq:Requires: %{?scl_prefix}runtime%{?_sclreq}%{?_isa}} -Provides: %{?scl_prefix}php-%{pecl_name} = %{version} -Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version} -Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version} +Provides: %{?scl_prefix}php-%{pecl_name} = %{version} +Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version} +Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version} Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version} +Provides: %{?scl_prefix}php-pecl-%{pecl_name} = %{version}-%{release} +Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{release} %if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} # Other third party repo stuff @@ -91,6 +88,8 @@ tar xif %{SOURCE0} mv %{pecl_name}-%{version} NTS +%{?_licensedir:sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml} + cd NTS sed -e 's:/lib:/$PHP_LIBDIR:' \ -i config.m4 @@ -162,16 +161,6 @@ do install -Dpm 644 $i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i done -%post -%{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || : - - -%postun -if [ $1 -eq 0 ] ; then - %{pecl_uninstall} %{pecl_name} >/dev/null || : -fi - - %check : Minimal load test for NTS extension cd NTS @@ -188,12 +177,33 @@ cd ../ZTS %endif +%if 0%{?fedora} < 24 +# 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 -a -x %{__pecl} ] ; then + %{pecl_uninstall} %{pecl_name} >/dev/null || : +fi +%endif + + %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) +%{?_licensedir:%license NTS/LICENSE} %doc %{pecl_docdir}/%{pecl_name} %{pecl_xmldir}/%{name}.xml @@ -207,6 +217,10 @@ rm -rf %{buildroot} %changelog +* Tue Mar 8 2016 Remi Collet <remi@fedoraproject.org> - 1.0.3-6 +- adapt for F24 +- fix license management + * Wed Dec 24 2014 Remi Collet <remi@fedoraproject.org> - 1.0.3-5.1 - Fedora 21 SCL mass rebuild @@ -225,3 +239,4 @@ rm -rf %{buildroot} * Sun Oct 6 2013 Remi Collet <remi@fedoraproject.org> - 1.0.3-1 - initial package, version 1.0.3 (stable) - https://github.com/lcastelli/chdb/issues/5 + |