diff options
Diffstat (limited to 'php-solidworx-aspect.spec')
-rw-r--r-- | php-solidworx-aspect.spec | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/php-solidworx-aspect.spec b/php-solidworx-aspect.spec index 474ac57..9738ebc 100644 --- a/php-solidworx-aspect.spec +++ b/php-solidworx-aspect.spec @@ -30,15 +30,16 @@ Summary: PHP Aspect Extension Name: %{?scl_prefix}php-%{pie_vend}-%{pie_proj} Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} -Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} +Release: 2%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} License: MIT URL: %{forgeurl} Source0: %{forgesource} +Patch0: https://patch-diff.githubusercontent.com/raw/SolidWorx/aspect/pull/2.patch + BuildRequires: make BuildRequires: gcc -# See https://github.com/SolidWorx/aspect/issues/1 -BuildRequires: %{?scl_prefix}php-devel >= 8.1 +BuildRequires: %{?scl_prefix}php-devel >= 8.0 Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} Requires: %{?scl_prefix}php(api) = %{php_core_api} @@ -60,6 +61,7 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO %prep %forgesetup +%patch -P0 -p1 : Sanity check, really often broken extver=$(sed -n '/# define PHP_ASPECT_VERSION/{s/.* "//;s/".*$//;p}' php_aspect.h) @@ -116,6 +118,10 @@ TEST_PHP_ARGS="-n -d extension=%{buildroot}/%{php_extdir}/%{ext_name}.so" \ %changelog +* Tue Jan 14 2025 Remi Collet <remi@remirepo.net> - 0.1.0-2 +- fix build with PHP 8.0 using patch from + https://github.com/SolidWorx/aspect/pull/2 + * Fri Jan 10 2025 Remi Collet <remi@remirepo.net> - 0.1.0-1 - initial package - open https://github.com/SolidWorx/aspect/issues/1 PHP 8.0 build is broken |