summaryrefslogtreecommitdiffstats
path: root/php-pecl-handlebars.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-handlebars.spec')
-rw-r--r--php-pecl-handlebars.spec32
1 files changed, 13 insertions, 19 deletions
diff --git a/php-pecl-handlebars.spec b/php-pecl-handlebars.spec
index 6089f8a..67a50a8 100644
--- a/php-pecl-handlebars.spec
+++ b/php-pecl-handlebars.spec
@@ -11,13 +11,14 @@
%scl_package php-pecl-handlebars
%endif
+%bcond_without tests
+
%global pecl_name handlebars
%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}}
# After 40-psr.ini
%global ini_name 50-%{pecl_name}.ini
-%global with_tests 0%{!?_without_tests:1}
-%global upstream_version 0.9.1
+%global upstream_version 0.9.2
#global upstream_prever RC2
Summary: Handlebars templating language
@@ -50,24 +51,17 @@ Provides: %{?scl_prefix}php-pecl-%{pecl_name} = %{version}-%{rele
Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{release}
%endif
-%if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel}
+%if "%{?packager}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel}
# Other third party repo stuff
-Obsoletes: php72u-pecl-%{pecl_name} <= %{version}
-Obsoletes: php72w-pecl-%{pecl_name} <= %{version}
%if "%{php_version}" > "7.3"
Obsoletes: php73-pecl-%{pecl_name} <= %{version}
-Obsoletes: php73w-pecl-%{pecl_name} <= %{version}
%endif
%if "%{php_version}" > "7.4"
Obsoletes: php74-pecl-%{pecl_name} <= %{version}
-Obsoletes: php74w-pecl-%{pecl_name} <= %{version}
%endif
+%if "%{php_version}" > "8.0"
+Obsoletes: php80-pecl-%{pecl_name} <= %{version}
%endif
-
-%if 0%{?fedora} < 20 && 0%{?rhel} < 7
-# Filter shared private
-%{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so$}
-%{?filter_setup}
%endif
@@ -205,16 +199,13 @@ fi
%check
-# see https://github.com/jbboehr/php-handlebars/issues/70
-rm ?TS/tests/vm/renderFromBinaryString.phpt
-
: Minimal load test for NTS extension
cd NTS
%{__php} --no-php-ini \
--define extension=modules/%{pecl_name}.so \
- --modules | grep %{pecl_name}
+ --modules | grep '^%{pecl_name}$'
-%if %{with_tests}
+%if %{with tests}
# Upstream test suite
TEST_PHP_EXECUTABLE=%{__php} \
TEST_PHP_ARGS="-n -d extension=$PWD/modules/%{pecl_name}.so" \
@@ -228,9 +219,9 @@ REPORT_EXIT_STATUS=1 \
cd ../ZTS
%{__ztsphp} --no-php-ini \
--define extension=modules/%{pecl_name}.so \
- --modules | grep %{pecl_name}
+ --modules | grep '^%{pecl_name}$'
-%if %{with_tests}
+%if %{with tests}
# Upstream test suite
TEST_PHP_EXECUTABLE=%{__ztsphp} \
TEST_PHP_ARGS="-n -d extension=$PWD/modules/%{pecl_name}.so" \
@@ -266,6 +257,9 @@ REPORT_EXIT_STATUS=1 \
%changelog
+* Mon Dec 7 2020 Remi Collet <remi@remirepo.net> - 0.9.2-1
+- update to 0.9.2
+
* Sun Apr 19 2020 Remi Collet <remi@remirepo.net> - 0.9.1-1
- update to 0.9.1
- drop patch merged upstream