diff options
author | Remi Collet <fedora@famillecollet.com> | 2016-08-07 06:27:11 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2016-08-07 06:27:11 +0200 |
commit | 9dd0b3c014def0102e4e06ee4628a78e3aec5c2c (patch) | |
tree | 086e88347cfc242ccdd12fb0e30f1bb1ca52d2ac | |
parent | 35a4d072c7b6ff0242911a5f8db19251a52f39cc (diff) |
php-pear: cleanup
-rw-r--r-- | php-pear.spec | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/php-pear.spec b/php-pear.spec index 5c467c8..e0809e1 100644 --- a/php-pear.spec +++ b/php-pear.spec @@ -8,10 +8,13 @@ # # Please preserve changelog entries # -%{?scl:%scl_package php-pear} -%{!?scl:%global pkg_name %{name}} -%{!?scl:%global _root_sysconfdir %{_sysconfdir}} -%{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} +%if 0%{?scl:1} +%scl_package php-pear +%else +%global pkg_name %{name} +%global _root_sysconfdir %{_sysconfdir} +%global _root_bindir %{_bindir} +%endif %global peardir %{_datadir}/pear %global metadir %{_localstatedir}/lib/pear @@ -99,6 +102,8 @@ Obsoletes: php56u-pear <= %{epoch}:%{version} Obsoletes: php56w-pear <= %{epoch}:%{version} Obsoletes: php70u-pear <= %{epoch}:%{version} Obsoletes: php70w-pear <= %{epoch}:%{version} +Obsoletes: php71u-pear <= %{epoch}:%{version} +Obsoletes: php71w-pear <= %{epoch}:%{version} %endif %{?_sclreq:Requires: %{?scl_prefix}runtime%{?_sclreq}} |