summaryrefslogtreecommitdiffstats
path: root/php-snuffleupagus.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-snuffleupagus.spec')
-rw-r--r--php-snuffleupagus.spec18
1 files changed, 13 insertions, 5 deletions
diff --git a/php-snuffleupagus.spec b/php-snuffleupagus.spec
index f0fade8..ae66391 100644
--- a/php-snuffleupagus.spec
+++ b/php-snuffleupagus.spec
@@ -11,14 +11,15 @@
%undefine _strict_symbol_defs_build
%if 0%{?scl:1}
-%global sub_prefix %{scl_prefix}
%scl_package php-snuffleupagus
%else
%global _root_bindir %{_bindir}
%global pkg_name %{name}
%endif
-%global gh_commit a1a7d2030f40ce1f880e9944417c6ccbb48a3c13
+%bcond_without tests
+
+%global gh_commit e9cb71769ae7a4c189fb2ecadc52b20bb8980166
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner jvoisin
%global gh_project snuffleupagus
@@ -30,8 +31,8 @@
%global ini_name 40-%{pecl_name}.ini
Summary: Security module for PHP
-Name: %{?sub_prefix}php-snuffleupagus
-Version: 0.8.2
+Name: %{?scl_prefix}php-snuffleupagus
+Version: 0.8.3
%if 0%{?gh_date}
Release: 1%{gh_date}.%{gh_short}%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
%else
@@ -190,12 +191,14 @@ cd src
--define sp.allow_broken_configuration=1 \
--modules | grep %{pecl_name}
+%if %{with tests}
: Upstream test suite for NTS extension
TEST_PHP_EXECUTABLE=%{__php} \
TEST_PHP_ARGS="-n $TEST_DEPS -d extension=$PWD/modules/%{pecl_name}.so" \
NO_INTERACTION=1 \
REPORT_EXIT_STATUS=1 \
%{__php} -n run-tests.php --show-diff
+%endif
%if %{with_zts}
cd ../ZTS
@@ -205,6 +208,7 @@ cd ../ZTS
--define sp.allow_broken_configuration=1 \
--modules | grep %{pecl_name}
+%if %{with tests}
: Upstream test suite for ZTS extension
TEST_PHP_EXECUTABLE=%{__ztsphp} \
TEST_PHP_ARGS="-n $TEST_DEPS -d extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so" \
@@ -212,6 +216,7 @@ NO_INTERACTION=1 \
REPORT_EXIT_STATUS=1 \
%{__ztsphp} -n run-tests.php --show-diff
%endif
+%endif
%files
@@ -230,8 +235,11 @@ REPORT_EXIT_STATUS=1 \
%changelog
+* Mon Aug 29 2022 Remi Collet <remi@remirepo.net> - 0.8.3-1
+- update to 0.8.3
+
* Mon May 23 2022 Remi Collet <remi@remirepo.net> - 0.8.2-1
-- update to 0.8.1
+- update to 0.8.2
- drop patches merged upstream
* Wed May 18 2022 Remi Collet <remi@remirepo.net> - 0.8.0-2