summaryrefslogtreecommitdiffstats
path: root/php-phpunit-php-text-template3.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2023-08-23 12:01:13 +0200
committerRemi Collet <remi@php.net>2023-08-23 12:01:13 +0200
commitad2dbf33fa7c9d638a26dae5ac145a797e6502f1 (patch)
tree136f6a95a414bc4e1dce24ec4d0fa182ba77c882 /php-phpunit-php-text-template3.spec
parent04e93abdebebff911e6641058de3b24c5b87c3cb (diff)
Enable test suite
Diffstat (limited to 'php-phpunit-php-text-template3.spec')
-rw-r--r--php-phpunit-php-text-template3.spec17
1 files changed, 11 insertions, 6 deletions
diff --git a/php-phpunit-php-text-template3.spec b/php-phpunit-php-text-template3.spec
index 0b2578b..5b9009a 100644
--- a/php-phpunit-php-text-template3.spec
+++ b/php-phpunit-php-text-template3.spec
@@ -7,8 +7,7 @@
# Please, preserve the changelog entries
#
-# disabled until phpunit10 available
-%bcond_with tests
+%bcond_without tests
%global gh_commit 9f3d3709577a527025f55bcf0f7ab8052c8bb37d
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
@@ -25,7 +24,7 @@
Name: php-%{pk_vendor}-%{pk_project}%{ver_major}
Version: 3.0.0
-Release: 1%{?dist}
+Release: 3%{?dist}
Summary: Simple template engine, version %{ver_major}
License: BSD-3-Clause
@@ -36,7 +35,6 @@ Source1: makesrc.sh
BuildArch: noarch
BuildRequires: php(language) >= 8.1
BuildRequires: php-spl
-BuildRequires: php-cli
BuildRequires: php-fedora-autoloader-devel
%if %{with tests}
# From composer.json, require-dev
@@ -54,7 +52,11 @@ Provides: php-composer(%{pk_vendor}/%{pk_project}) = %{version}
%description
-Simple template engine, version %{ver_major}.
+Simple template engine.
+
+This package provides version %{ver_major} of %{pk_vendor}/%{pk_project} library.
+
+Autoloader: %{php_home}/%{ns_vendor}/%{ns_project}%{ver_major}/autoload.php
%prep
@@ -79,7 +81,7 @@ mkdir vendor
: Run upstream test suite
ret=0
-for cmd in php php81 php82; do
+for cmd in php php81 php82 php83; do
if which $cmd; then
$cmd -d auto_prepend_file=%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}%{ver_major}/autoload.php \
%{_bindir}/phpunit10 || ret=1
@@ -100,6 +102,9 @@ exit $ret
%changelog
+* Wed Aug 23 2023 Remi Collet <remi@remirepo.net> - 3.0.0-3
+- Enable test suite
+
* Fri Feb 3 2023 Remi Collet <remi@remirepo.net> - 3.0.0-1
- update to 3.0.0
- raise dependency on PHP 8.1