diff options
Diffstat (limited to 'php-noisebynorthwest-php-spx.spec')
-rw-r--r-- | php-noisebynorthwest-php-spx.spec | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/php-noisebynorthwest-php-spx.spec b/php-noisebynorthwest-php-spx.spec index 6285d37..1f49d36 100644 --- a/php-noisebynorthwest-php-spx.spec +++ b/php-noisebynorthwest-php-spx.spec @@ -32,7 +32,7 @@ Summary: PHP profiling extension Name: %{?scl_prefix}php-%{pie_vend}-%{pie_proj} Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} %forgemeta -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;')} # GPL-3.0-only: php-spx # GPL-3.0-or-later: jscolor.js dataTable.js fmt.js layoutSplitter.js math.js profileData.js svg.js utils.js widget.js # MIT: jquery @@ -40,6 +40,8 @@ License: GPL-3.0-only AND GPL-3.0-or-later AND MIT URL: %{forgeurl} Source0: %{forgesource} +Patch0: https://patch-diff.githubusercontent.com/raw/NoiseByNorthwest/php-spx/pull/295.patch + BuildRequires: make BuildRequires: gcc BuildRequires: zlib-devel @@ -90,6 +92,8 @@ 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_SPX_VERSION/{s/.* "//;s/".*$//;p}' src/php_spx.h) if test "x${extver}" != "x%{upstream_version}%{?upstream_prever}"; then @@ -129,6 +133,7 @@ sed -e 's/INSTALL_ROOT/DESTDIR/' -i $GLOBAL Makefile.frag %configure \ --enable-spx \ --with-libdir=%{_lib} \ + --with-spx-assets-dir=%{_datadir}/%{name}/assets \ --with-php-config=%{__phpconfig} %make_build @@ -165,5 +170,9 @@ TEST_PHP_ARGS="-n -d extension=%{buildroot}/%{php_extdir}/%{ext_name}.so" \ %changelog +* Mon Jun 30 2025 Remi Collet <remi@remirepo.net> - 0.4.19-2 +- test build for https://github.com/NoiseByNorthwest/php-spx/pull/295 + add --with-spx-assets-dir configure option + * Mon Jun 30 2025 Remi Collet <remi@remirepo.net> - 0.4.19-1 - initial package |