summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-06-20 08:17:47 +0200
committerRemi Collet <fedora@famillecollet.com>2015-06-20 08:17:47 +0200
commit4b3644aff60461ff47c824d260c4517dfcb5b3b9 (patch)
tree51204d43e3be01ab622d91f63f848118342bec5e
parenta54d3003d86c8d386124541208eb99a3c1affacd (diff)
php-pecl-selinux: allow build against "rh-php56" (for more-php56)
-rw-r--r--php-pecl-selinux.spec16
1 files changed, 14 insertions, 2 deletions
diff --git a/php-pecl-selinux.spec b/php-pecl-selinux.spec
index 35ed733..4722d85 100644
--- a/php-pecl-selinux.spec
+++ b/php-pecl-selinux.spec
@@ -1,4 +1,5 @@
# remirepo spec file for php-pecl-selinux
+# adapted for SCL
#
# Copyright (c) 2011-2015 Remi Collet
#
@@ -11,6 +12,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-selinux}
%{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d}
%{!?__pecl: %global __pecl %{_bindir}/pecl}
@@ -26,9 +35,9 @@
%endif
Summary: SELinux binding for PHP scripting language
-Name: %{?scl_prefix}php-pecl-selinux
+Name: %{?sub_prefix}php-pecl-selinux
Version: 0.4.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}
@@ -221,6 +230,9 @@ fi
%changelog
+* Fri Jun 19 2015 Remi Collet <remi@fedoraproject.org> - 0.4.1-2
+- allow build against rh-php56 (as more-php56)
+
* Sun May 24 2015 Remi Collet <remi@fedoraproject.org> - 0.4.1-1
- version 0.4.1 (beta)