diff options
author | Remi Collet <fedora@famillecollet.com> | 2016-03-06 08:16:00 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2016-03-06 08:16:00 +0100 |
commit | ef451b17ba9f8851241acaa8835c128a893e96be (patch) | |
tree | 972b719d972fac5848ad13dc68270b3443140423 | |
parent | 27d46eda078fc783ad39c1f56fcd199ce7c69984 (diff) |
php-pecl-varnish: F24
-rw-r--r-- | php-pecl-varnish.spec | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/php-pecl-varnish.spec b/php-pecl-varnish.spec index c74b019..a1ce648 100644 --- a/php-pecl-varnish.spec +++ b/php-pecl-varnish.spec @@ -1,4 +1,4 @@ -# spec file for php-pecl-varnish +# remirepo spec file for php-pecl-varnish # # Copyright (c) 2013-2016 Remi Collet # License: CC-BY-SA @@ -15,9 +15,6 @@ %endif %{?scl: %scl_package php-pecl-varnish} -%{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d} -%{!?__pecl: %global __pecl %{_bindir}/pecl} -%{!?__php: %global __php %{_bindir}/php} %global with_zts 0%{?__ztsphp:1} %global pecl_name varnish @@ -31,7 +28,7 @@ Summary: Varnish Cache bindings Name: %{?sub_prefix}php-pecl-%{pecl_name} Version: 1.2.1 -Release: 6%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Release: 7%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: BSD Group: Development/Languages URL: http://pecl.php.net/package/%{pecl_name} @@ -51,10 +48,12 @@ Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} Requires: %{?scl_prefix}php(api) = %{php_core_api} Requires: %{?scl_prefix}php-hash%{?_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 @@ -97,7 +96,9 @@ 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 @@ -164,6 +165,7 @@ do install -Dpm 644 NTS/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i done +%if 0%{?fedora} < 24 # when pear installed alone, after us %triggerin -- %{?scl_prefix}php-pear if [ -x %{__pecl} ] ; then @@ -180,6 +182,7 @@ fi if [ $1 -eq 0 -a -x %{__pecl} ] ; then %{pecl_uninstall} %{pecl_name} >/dev/null || : fi +%endif %check @@ -283,6 +286,9 @@ rm -rf %{buildroot} %changelog +* Sun Mar 6 2016 Remi Collet <remi@fedoraproject.org> - 1.2.1-7 +- adapt for F24 + * Tue Oct 13 2015 Remi Collet <remi@fedoraproject.org> - 1.2.1-6 - rebuild for PHP 7.0.0RC5 new API version @@ -327,4 +333,5 @@ rm -rf %{buildroot} - Add option --with tests to run upstream test suite * Mon Sep 30 2013 Remi Collet <remi@fedoraproject.org> - 1.0.0-1 -- initial package
\ No newline at end of file +- initial package + |