diff options
author | Remi Collet <fedora@famillecollet.com> | 2015-06-20 08:18:01 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2015-06-20 08:18:01 +0200 |
commit | 912d1a5b2b2a1ed5cd366d81b9ec67ee9f039b8a (patch) | |
tree | 6b862ab30f306b007f007c2c03ebe83d10cb1720 | |
parent | 2d20904eb2ca2e4ac0a6a74ce2e8f03641943d62 (diff) |
php-pecl-xattr: allow build against "rh-php56" (for more-php56)
-rw-r--r-- | php-pecl-xattr.spec | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/php-pecl-xattr.spec b/php-pecl-xattr.spec index c8a531e..bf552d7 100644 --- a/php-pecl-xattr.spec +++ b/php-pecl-xattr.spec @@ -1,4 +1,4 @@ -# spec file for php-pecl-xattr +# remirepo spec file for php-pecl-xattr # # Copyright (c) 2013-2015 Remi Collet # License: CC-BY-SA @@ -6,6 +6,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-xattr} %{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d} %{!?__pecl: %global __pecl %{_bindir}/pecl} @@ -20,9 +28,9 @@ %endif Summary: Extended attributes -Name: %{?scl_prefix}php-pecl-%{pecl_name} +Name: %{?sub_prefix}php-pecl-%{pecl_name} Version: 1.2.1 -Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} +Release: 2%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} License: PHP Group: Development/Languages URL: http://pecl.php.net/package/%{pecl_name} @@ -73,7 +81,7 @@ Obsoletes: php70w-pecl-%{pecl_name} <= %{version} This package allows to manipulate extended attributes on filesystems that support them. Requires libattr from Linux XFS project. -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})}. %prep @@ -218,6 +226,9 @@ rm -rf %{buildroot} %changelog +* Fri Jun 19 2015 Remi Collet <remi@fedoraproject.org> - 1.2.1-2 +- allow build against rh-php56 (as more-php56) + * Sun Apr 19 2015 Remi Collet <remi@fedoraproject.org> - 1.2.1-1 - update to 1.2.1 - run upstream test suite during build |