summaryrefslogtreecommitdiffstats
path: root/php-pecl-imagick.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-imagick.spec')
-rw-r--r--php-pecl-imagick.spec10
1 files changed, 6 insertions, 4 deletions
diff --git a/php-pecl-imagick.spec b/php-pecl-imagick.spec
index 3fb64bf..47efec6 100644
--- a/php-pecl-imagick.spec
+++ b/php-pecl-imagick.spec
@@ -26,7 +26,9 @@
%undefine _strict_symbol_defs_build
%if 0%{?scl:1}
-%scl_package php-pecl-imagick
+%scl_package php-pecl-imagick
+%else
+%global _root_prefix %{_prefix}
%endif
%global gh_commit 623a3ac0386c93d62c60cbfe610505f2e35780f3
@@ -62,7 +64,7 @@ Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}
Release: 0.10.%{gh_date}git%{gh_short}%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{pecl_name}-%{version}-%{gh_short}.tar.gz
%else
-Release: 8%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Release: 8.1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
Source0: https://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstream_prever}.tgz
%endif
License: PHP-3.01
@@ -257,7 +259,7 @@ cd %{sources}
: Standard NTS build
cd ../NTS
-%configure --with-imagick=%{prefix} --with-php-config=%{__phpconfig}
+%configure --with-imagick=%{_root_prefix} --with-php-config=%{__phpconfig}
make %{?_smp_mflags}
: Dump REFLECTION
@@ -268,7 +270,7 @@ make %{?_smp_mflags}
%if %{with_zts}
: ZTS build
cd ../ZTS
-%configure --with-imagick=%{prefix} --with-php-config=%{__ztsphpconfig}
+%configure --with-imagick=%{_root_prefix} --with-php-config=%{__ztsphpconfig}
make %{?_smp_mflags}
%endif