From 6459e4dd187496dc4be1cc87f67b11fb68031ce9 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 15 Jul 2013 16:46:40 +0200 Subject: [PATCH] adapt for SCL --- php-pecl-apcu.spec | 9 +++++++-- 1 file 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}}