From 34c270024ce419eb2f2ba5d5951d62afb769a93f Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 12 Jun 2019 15:37:48 +0200 Subject: - sync with fedora - use php-myclabs-deep-copy19 on EL 6 and 7 --- composer.json | 10 +++---- php-codeception-specify.spec | 69 ++++++++++++++++++++++++++++---------------- 2 files changed, 48 insertions(+), 31 deletions(-) diff --git a/composer.json b/composer.json index 570a609..4ee49c8 100644 --- a/composer.json +++ b/composer.json @@ -6,15 +6,13 @@ "authors": [ { "name": "Michael Bodnarchuk", - "email": "davert.php@mailican.com" + "email": "davert@codeception.com" } ], "require": { - "php": ">=5.4.0", - "myclabs/deep-copy": "~1.1" - }, - "require-dev": { - "phpunit/phpunit": "~4.0" + "php": ">=7.1.0", + "myclabs/deep-copy": "~1.1", + "phpunit/phpunit": "^7.0" }, "autoload": { "psr-0": { diff --git a/php-codeception-specify.spec b/php-codeception-specify.spec index eddf1b9..b8d4834 100644 --- a/php-codeception-specify.spec +++ b/php-codeception-specify.spec @@ -2,7 +2,7 @@ # # Fedora spec file for php-codeception-specify # -# Copyright (c) 2017 Shawn Iwinski +# Copyright (c) 2017-2019 Shawn Iwinski # # License: MIT # http://opensource.org/licenses/MIT @@ -12,17 +12,18 @@ %global github_owner Codeception %global github_name Specify -%global github_version 0.4.6 -%global github_commit 21b586f503ca444aa519dd9cafb32f113a05f286 +%global github_version 1.1.0 +%global github_commit 504ac7a882e6f7226b0cff44c72a6c0bbd0bad95 %global composer_vendor codeception %global composer_project specify -# "php": ">=5.4.0" -%global php_min_ver 5.4 +# "php": ">=7.1.0" +%global php_min_ver 7.1.0 # "myclabs/deep-copy": "~1.1" %global myclabs_deep_copy_min_ver 1.1 %global myclabs_deep_copy_max_ver 2.0 +# "phpunit/phpunit": "^7.0" # Build using "--without tests" to disable tests %global with_tests 0%{!?_without_tests:1} @@ -34,7 +35,6 @@ Version: %{github_version} Release: 2%{?github_release}%{?dist} Summary: BDD code blocks for PHPUnit and Codeception -Group: Development/Libraries License: MIT URL: https://github.com/%{github_owner}/%{github_name} Source0: %{url}/archive/%{github_commit}/%{name}-%{github_version}-%{github_commit}.tar.gz @@ -46,19 +46,28 @@ BuildRequires: php-fedora-autoloader-devel %if %{with_tests} ## composer.json BuildRequires: php(language) >= %{php_min_ver} -BuildRequires: php-composer(myclabs/deep-copy) < %{myclabs_deep_copy_max_ver} -BuildRequires: php-composer(myclabs/deep-copy) >= %{myclabs_deep_copy_min_ver} -BuildRequires: php-composer(phpunit/phpunit) -## phpcompatinfo (computed from version 0.4.6) +BuildRequires: phpunit7 +%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 +BuildRequires: (php-composer(myclabs/deep-copy) >= %{myclabs_deep_copy_min_ver} with php-composer(myclabs/deep-copy) < %{myclabs_deep_copy_max_ver}) +%else +BuildRequires: php-myclabs-deep-copy19 +%endif +## phpcompatinfo (computed from version 1.1.0) +BuildRequires: php-pcre BuildRequires: php-reflection BuildRequires: php-spl %endif # composer.json Requires: php(language) >= %{php_min_ver} -Requires: php-composer(myclabs/deep-copy) < %{myclabs_deep_copy_max_ver} -Requires: php-composer(myclabs/deep-copy) >= %{myclabs_deep_copy_min_ver} -# phpcompatinfo (computed from version 0.4.6) +Requires: phpunit7 +%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 +Requires: (php-composer(myclabs/deep-copy) >= %{myclabs_deep_copy_min_ver} with php-composer(myclabs/deep-copy) < %{myclabs_deep_copy_max_ver}) +%else +Requires: php-myclabs-deep-copy19 +%endif +# phpcompatinfo (computed from version 1.1.0) +Requires: php-pcre Requires: php-reflection Requires: php-spl # Autoloader @@ -87,7 +96,11 @@ Autoloader: %{phpdir}/Codeception/Specify/autoload.php cat <<'AUTOLOAD' | tee -a src/Codeception/Specify/autoload.php \Fedora\Autoloader\Dependencies::required(array( - '%{phpdir}/DeepCopy/autoload.php', + [ + '%{phpdir}/DeepCopy19/autoload.php', + '%{phpdir}/DeepCopy/autoload.php', + ], + '%{phpdir}/PHPUnit7/autoload.php', )); AUTOLOAD @@ -99,21 +112,16 @@ cp -rp src/Codeception %{buildroot}%{phpdir}/ %check %if %{with_tests} -: Create tests bootstrap -cat <<'BOOTSTRAP' | tee bootstrap.php - - 1.1.0-2 +- sync with fedora +- use php-myclabs-deep-copy19 on EL 6 and 7 + +* Mon May 27 2019 Shawn Iwinski - 1.1.0-2 +- Update phpcompatinfo dependencies + +* Mon May 27 2019 Shawn Iwinski - 1.1.0-1 +- Update to 1.1.0 (RHBZ #1515810) +- Add range version dependencies for Fedora >= 27 || RHEL >= 8 + * Tue Sep 05 2017 Shawn Iwinski - 0.4.6-2 - Remove empty Suggests -- cgit