summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-06-24 08:34:25 +0200
committerRemi Collet <fedora@famillecollet.com>2015-06-24 08:34:25 +0200
commit13746ece359b17b0cb188e3778a4c1ab9fbf6049 (patch)
tree26a3fa436f6c57ed328dbb5c8e614a1744282dc6
parent9ce295d905f423be98cbc0301ab396eddb5b9e1a (diff)
php-horde-horde-lz4: allow build against rh-php56 (as more-php56)
-rw-r--r--php-horde-horde-lz4.spec22
1 files changed, 18 insertions, 4 deletions
diff --git a/php-horde-horde-lz4.spec b/php-horde-horde-lz4.spec
index 0c93617..f1bf9b5 100644
--- a/php-horde-horde-lz4.spec
+++ b/php-horde-horde-lz4.spec
@@ -1,4 +1,7 @@
-# spec file for php-horde-horde-lz4
+# remirepo spec file for php-horde-horde-lz4
+# with SCL compatibility, from:
+#
+# Fedora spec file for php-horde-horde-lz4
#
# Copyright (c) 2014-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-horde-horde-lz4}
%{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d}
%{!?__pecl: %global __pecl %{_bindir}/pecl}
@@ -27,9 +38,9 @@
%endif
Summary: Horde LZ4 Compression Extension
-Name: %{?scl_prefix}php-horde-horde-lz4
+Name: %{?sub_prefix}php-horde-horde-lz4
Version: 1.0.8
-Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
+Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
License: MIT
Group: Development/Languages
URL: http://www.horde.org
@@ -82,7 +93,7 @@ Obsoletes: php56w-pecl-%{pecl_name} <= %{version}
PHP extension that implements the LZ4 compression algorithm,
an extremely fast lossless compression algorithm.
-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
@@ -224,6 +235,9 @@ rm -rf %{buildroot}
%changelog
+* Wed Jun 24 2015 Remi Collet <remi@fedoraproject.org> - 1.0.8-2
+- allow build against rh-php56 (as more-php56)
+
* Tue Apr 14 2015 Remi Collet <remi@fedoraproject.org> - 1.0.8-1
- Update to 1.0.8