[php-pecl-apcu] adapt for SCL

Remi Collet remi at fedoraproject.org
Mon Jul 15 14:48:09 UTC 2013


commit 6459e4dd187496dc4be1cc87f67b11fb68031ce9
Author: Remi Collet <remi at fedoraproject.org>
Date:   Mon Jul 15 16:46:40 2013 +0200

    adapt for SCL

 php-pecl-apcu.spec |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/php-pecl-apcu.spec b/php-pecl-apcu.spec
index f774112..1dc6c1b 100644
--- a/php-pecl-apcu.spec
+++ b/php-pecl-apcu.spec
@@ -6,8 +6,13 @@
 #
 # Please, preserve the changelog entries
 #
-%{?scl:%scl_package php-pecl-apcu}
-%{!?scl:%global pkg_name %{name}}
+%if 0%{?scl:1}
+%scl_package php-pecl-apcu
+%else
+%global pkg_name %{name}
+%global _root_sysconfdir %{_sysconfdir}
+%endif
+
 %{!?php_inidir:  %{expand: %%global php_inidir  %{_sysconfdir}/php.d}}
 %{!?php_incldir: %{expand: %%global php_incldir %{_includedir}/php}}
 %{!?__pecl:      %{expand: %%global __pecl      %{_bindir}/pecl}}


More information about the scm-commits mailing list