diff options
author | Remi Collet <fedora@famillecollet.com> | 2016-02-28 19:42:23 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2016-02-28 19:42:23 +0100 |
commit | c5157e696bdc67e10db874022c1c2215c7516d61 (patch) | |
tree | 6ca7488dab970087a6c0a2da89d0f93f3eb2ea30 /php-pecl-bitset.spec | |
parent | b5cc10812b866ef3e487dd09de3d84b4c6221a3b (diff) |
php-pecl-bitset: 2.0.2 (stable)
Diffstat (limited to 'php-pecl-bitset.spec')
-rw-r--r-- | php-pecl-bitset.spec | 44 |
1 files changed, 30 insertions, 14 deletions
diff --git a/php-pecl-bitset.spec b/php-pecl-bitset.spec index b6c0fbc..b2cefd7 100644 --- a/php-pecl-bitset.spec +++ b/php-pecl-bitset.spec @@ -1,4 +1,4 @@ -# spec file for php-pecl-bitset +# remirepo spec file for php-pecl-bitset # # Copyright (c) 2014-2016 Remi Collet # License: CC-BY-SA @@ -22,21 +22,19 @@ Summary: BITSET library Name: %{?scl_prefix}php-pecl-%{pecl_name} -Version: 2.0.1 +Version: 2.0.2 Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}.1 License: PHP Group: Development/Languages URL: http://pecl.php.net/package/%{pecl_name} Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz -Patch0: %{pecl_name}-upstream.patch +Source1: https://raw.githubusercontent.com/php/pecl-numbers-bitset/master/LICENSE BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: %{?scl_prefix}php-devel > 5.3 BuildRequires: %{?scl_prefix}php-pear -Requires(post): %{__pecl} -Requires(postun): %{__pecl} Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} Requires: %{?scl_prefix}php(api) = %{php_core_api} %{?_sclreq:Requires: %{?scl_prefix}runtime%{?_sclreq}%{?_isa}} @@ -45,6 +43,8 @@ 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 @@ -72,7 +72,7 @@ Obsoletes: php56w-pecl-%{pecl_name} <= %{version} %description Bitsets manipulation library. -Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')%{?scl: as Software Collection}. +Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')%{?scl: as Software Collection (%{scl} by %{?scl_vendor}%{!?scl_vendor:rh})}. %prep @@ -80,10 +80,12 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO mv %{pecl_name}-%{version} NTS # Don't install/register tests -sed -e 's/role="test"/role="src"/' -i package.xml +sed -e 's/role="test"/role="src"/' \ + %{?_licensedir:-e '/LICENSE/s/role="doc"/role="src"/' } \ + -i package.xml cd NTS -%patch0 -p1 -b .upstream +cp %{SOURCE1} LICENSE # Sanity check, really often broken extver=$(sed -n '/#define PHP_BITSET_VERSION/{s/.* "//;s/".*$//;p}' php_bitset.h) @@ -144,14 +146,24 @@ do install -Dpm 644 NTS/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i done -%post -%{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || : +%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 ] ; then +if [ $1 -eq 0 -a -x %{__pecl} ] ; then %{pecl_uninstall} %{pecl_name} >/dev/null || : fi +%endif %check @@ -194,10 +206,10 @@ rm -rf %{buildroot} %files %defattr(-,root,root,-) -%doc %{pecl_docdir}/%{pecl_name} %{?_licensedir:%license NTS/LICENSE} - +%doc %{pecl_docdir}/%{pecl_name} %{pecl_xmldir}/%{name}.xml + %config(noreplace) %{php_inidir}/%{ini_name} %{php_extdir}/%{pecl_name}.so @@ -208,8 +220,12 @@ rm -rf %{buildroot} %changelog +* Sun Feb 28 2016 Remi Collet <remi@fedoraproject.org> - 2.0.2-1 +- update to 2.0.2 +- drop runtime dependency on pear, new scriptlets + * Wed Dec 24 2014 Remi Collet <remi@fedoraproject.org> - 2.0.1-1.1 - Fedora 21 SCL mass rebuild * Fri Oct 31 2014 Remi Collet <remi@fedoraproject.org> - 2.0.1-1 -- initial package, version 2.0.1 (beta)
\ No newline at end of file +- initial package, version 2.0.1 (beta) |