From 8f818a3eeb5ae2b1bd9e47cf7aca431b589246ae Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 15 Feb 2022 10:31:20 +0100 Subject: update to 1.3.3 --- composer.json | 13 +++++++------ php-zetacomponents-document.spec | 34 ++++++++++++++++------------------ 2 files changed, 23 insertions(+), 24 deletions(-) diff --git a/composer.json b/composer.json index 34584fb..494c3d0 100644 --- a/composer.json +++ b/composer.json @@ -26,10 +26,11 @@ "license": "Apache-2.0", "name": "zetacomponents/document", "type": "library", - "require": { - "zetacomponents/base": "*" - }, - "require-dev": { - "zetacomponents/unit-test": "dev-master" - } + "require": { + "zetacomponents/base": "~1.8" + }, + "require-dev": { + "phpunit/phpunit": "~8.0", + "zetacomponents/unit-test": "*" + } } diff --git a/php-zetacomponents-document.spec b/php-zetacomponents-document.spec index 365d99d..4490c17 100644 --- a/php-zetacomponents-document.spec +++ b/php-zetacomponents-document.spec @@ -2,7 +2,7 @@ # # Fedora spec file for php-zetacomponents-document # -# Copyright (c) 2017-2018 Shawn Iwinski +# Copyright (c) 2017-2022 Shawn Iwinski # # License: MIT # http://opensource.org/licenses/MIT @@ -12,34 +12,29 @@ %global github_owner zetacomponents %global github_name Document -%global github_version 1.3.1 -%global github_commit 688abfde573cf3fe0730f82538fbd7aa9fc95bc8 +%global github_version 1.3.3 +%global github_commit 196884f00871ea7dcbca9ab8bc85716f626e9cc3 %global composer_vendor zetacomponents %global composer_project document -# "zetacomponents/base": "*" +# "zetacomponents/base": "~1.8" # NOTE: Min and max versions added to contain to one major version. -%global zetacomponents_base_min_ver 1.0 +%global zetacomponents_base_min_ver 1.8 %global zetacomponents_base_max_ver 2.0 # "zetacomponents/unit-test": "dev-master" # NOTE: Min and max versions added to contain to one major version. %global zetacomponents_unit_test_min_ver 1.0 %global zetacomponents_unit_test_max_ver 2.0 -%if 0%{?fedora} >= 26 || 0%{?rhel} >= 8 # Build using "--with tests" to enable tests -%global with_tests 0%{?_with_tests:1} -%else -# Build using "--without tests" to disable tests -%global with_tests 0%{!?_without_tests:1} -%endif +%bcond_with tests %global ezcdir %{_datadir}/php/ezc Name: php-%{composer_vendor}-%{composer_project} Version: %{github_version} -Release: 3%{?github_release}%{?dist} +Release: 1%{?github_release}%{?dist} Summary: Provides a general conversion framework for different documents Group: Development/Libraries @@ -51,7 +46,7 @@ BuildArch: noarch # Autoloader BuildRequires: php-fedora-autoloader-devel # Tests -%if %{with_tests} +%if %{with tests} ## composer.json %if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 BuildRequires: (php-composer(zetacomponents/base) >= %{zetacomponents_base_min_ver} with php-composer(zetacomponents/base) < %{zetacomponents_base_max_ver}) @@ -64,7 +59,7 @@ BuildRequires: php-composer(zetacomponents/unit-test) >= %{zetacomponents_unit_t %endif ## phpcompatinfo (computed from version 1.3.1) BuildRequires: php(language) >= 5.3.0 -BuildRequires: php-composer(phpunit/phpunit) +BuildRequires: phpunit8 BuildRequires: php-ctype BuildRequires: php-date BuildRequires: php-dom @@ -158,7 +153,7 @@ cp -pr src/*_autoload.php \ %check -%if %{with_tests} +%if %{with tests} : Create tests bootstrap cat <<'BOOTSTRAP' | tee bootstrap.php - 1.3.3-1 +- update to 1.3.3 + * Mon May 28 2018 Shawn Iwinski - 1.3.1-3 - Fix FTBS (RHBZ #1556121) - Disable tests by default for F28+ and RHEL 8+ -- cgit