From 230d8b5d940084447bae4ebf684dd65fdda26a0b Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 18 Jul 2023 07:34:05 +0200 Subject: update to 3.6.3 --- php-opis-closure.spec | 34 +++++++++++++--------------------- 1 file changed, 13 insertions(+), 21 deletions(-) diff --git a/php-opis-closure.spec b/php-opis-closure.spec index 9777321..5068ca8 100644 --- a/php-opis-closure.spec +++ b/php-opis-closure.spec @@ -12,8 +12,8 @@ %global github_owner opis %global github_name closure -%global github_version 3.6.1 -%global github_commit 943b5d70cc5ae7483f6aff6ff43d7e34592ca0f5 +%global github_version 3.6.3 +%global github_commit 3d81e4309d2a927abbe66df935f4bb60082805ad %global composer_vendor opis %global composer_project closure @@ -24,25 +24,11 @@ # "php": "^5.4 || ^7.0 || ^8.0" %global php_min_ver 5.4 -# PHPUnit -## v9 (PHP 7.3) -%if 0%{?fedora} >= 30 || 0%{?rhel} >= 9 %global phpunit_require phpunit9 %global phpunit_exec phpunit9 -%else -## v8 (PHP 7.2) -%if 0%{?fedora} >= 28 || 0%{?rhel} >= 8 -%global phpunit_require phpunit8 -%global phpunit_exec phpunit8 -%else -## Pre-v8 -%global phpunit_require php-composer(phpunit/phpunit) -%global phpunit_exec phpunit -%endif -%endif # Build using "--without tests" to disable tests -%global with_tests 0%{!?_without_tests:1} +%bcond_without tests # Range dependencies supported? %if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 @@ -55,7 +41,7 @@ Name: php-%{composer_vendor}-%{composer_project}%{?namespace_version} Version: %{github_version} -Release: 3%{?github_release}%{?dist} +Release: 1%{?github_release}%{?dist} Summary: A library that can be used to serialize closures and arbitrary objects License: MIT @@ -68,7 +54,7 @@ Source1: %{name}-get-source.sh BuildArch: noarch # Tests -%if %{with_tests} +%if %{with tests} ## composer.json BuildRequires: php(language) >= %{php_min_ver} BuildRequires: %{phpunit_require} @@ -136,7 +122,7 @@ cp -rp src %{buildroot}%{phpdir}/%{namespace_vendor}/%{namespace_project}%{?name %check -%if %{with_tests} +%if %{with tests} : Create tests bootstrap cat <<'BOOTSTRAP' | tee bootstrap.php - 3.6.3-1 +- update to 3.6.3 + +* Tue Apr 13 2021 Remi Collet - 3.6.2-1 +- update to 3.6.2 + * Tue Mar 30 2021 Remi Collet - 3.6.1-3 - drop build dependency on jeremeamia/superclosure -- cgit