From a2ca54a14734cb3976dfb3d09705edb0a6ba95c3 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 28 Sep 2023 16:04:36 +0200 Subject: update to 5.2.13 disable test suite --- php-justinrainbow-json-schema5.spec | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) (limited to 'php-justinrainbow-json-schema5.spec') diff --git a/php-justinrainbow-json-schema5.spec b/php-justinrainbow-json-schema5.spec index 1bc0d01..b4d5d20 100644 --- a/php-justinrainbow-json-schema5.spec +++ b/php-justinrainbow-json-schema5.spec @@ -1,17 +1,20 @@ # remirepo/fedora spec file for php-justinrainbow-json-schema5 # -# Copyright (c) 2016-2022 Remi Collet -# License: CC-BY-SA +# Copyright (c) 2016-2023 Remi Collet +# License: CC-BY-SA-4.0 # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # -%global gh_commit ad87d5a5ca981228e0e205c2bc7dfb8e24559b60 + +# disable test suite until recent phpunit is supported +%bcond_with tests + +%global gh_commit fbbe7e5d79f618997bc3332a6f49246036c45793 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner justinrainbow %global gh_project json-schema %global php_home %{_datadir}/php -%global with_tests 0%{!?_without_tests:1} %global major 5 @@ -27,7 +30,7 @@ %global eolv2 0 Name: php-%{gh_owner}-%{gh_project}%{major} -Version: 5.2.12 +Version: 5.2.13 Release: 1%{?dist} Summary: A library to validate a json schema License: MIT @@ -43,7 +46,7 @@ Source3: %{name}-makesrc.sh Patch0: %{name}-rpm.patch BuildArch: noarch -%if %{with_tests} +%if %{with tests} # For tests BuildRequires: php(language) >= 5.3.3 BuildRequires: php-curl @@ -101,7 +104,7 @@ Autoloader: %{php_home}/JsonSchema%{major}/autoload.php %prep %setup -q -n %{gh_project}-%{gh_commit} -a 1 -%patch0 -p1 -b .rpm +%patch -P0 -p1 -b .rpm find src -name \*.rpm -delete -print cp %{SOURCE2} src/JsonSchema/autoload.php @@ -137,7 +140,7 @@ install -Dpm 0755 bin/validate-json %{buildroot}%{_bindir}/validate-json%{major} %check -%if %{with_tests} +%if %{with tests} : Test suite autoloader cat << 'EOF' | tee vendor/autoload.php - 5.2.13-1 +- update to 5.2.13 +- disable test suite + * Wed Apr 13 2022 Remi Collet - 5.2.12-1 - update to 5.2.12 -- cgit