summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--php-pecl-json-post.spec22
1 files changed, 18 insertions, 4 deletions
diff --git a/php-pecl-json-post.spec b/php-pecl-json-post.spec
index 84ee481..36fac5d 100644
--- a/php-pecl-json-post.spec
+++ b/php-pecl-json-post.spec
@@ -1,4 +1,7 @@
-# spec file for php-pecl-json-post
+# remirepo spec file for php-pecl-json-post
+# with SCL stuff, from:
+#
+# Fedora spec file for php-pecl-json-post
#
# Copyright (c) 2015 Remi Collet
# License: CC-BY-SA
@@ -6,6 +9,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-json-post}
%{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d}
%{!?__pecl: %global __pecl %{_bindir}/pecl}
@@ -24,9 +35,9 @@
#global prever RC2
Summary: JSON POST handler
-Name: %{?scl_prefix}php-pecl-json-post
+Name: %{?sub_prefix}php-pecl-json-post
Version: 1.0.0
-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: BSD
Group: Development/Languages
URL: http://pecl.php.net/package/%{pecl_name}
@@ -79,7 +90,7 @@ the JSON contents of the request body will by parsed into `$_POST`.
This extension does not provide any constants, functions or classes.
-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
@@ -225,6 +236,9 @@ rm -rf %{buildroot}
%changelog
+* Sun Jun 21 2015 Remi Collet <remi@fedoraproject.org> - 1.0.0-2
+- allow build against rh-php56 (as more-php56)
+
* Wed Mar 18 2015 Remi Collet <remi@fedoraproject.org> - 1.0.0-1
- Update to 1.0.0