summaryrefslogtreecommitdiffstats
path: root/php-pecl-imagick.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2023-07-17 08:59:06 +0200
committerRemi Collet <remi@php.net>2023-07-17 08:59:06 +0200
commit12fc5dcda2a7c006080af3db7317682f9c207b50 (patch)
tree65c6e247c0d9f9b4127edeb25e7bb7c8477ca87a /php-pecl-imagick.spec
parentb0c3b0d8bb70dddd77877517be3bd407b0592058 (diff)
test build
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