From ee2036154437a870171b9391e2f5773485f823b9 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 19 Oct 2018 15:46:01 +0200 Subject: fix autoloader, use PSR-4 to avoid duplicated definition prepend autoloader to ensure we use current version in tests fix FTBFS #1605449 --- php-webmozart-assert.spec | 35 ++++++++++++++++++++++++++--------- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/php-webmozart-assert.spec b/php-webmozart-assert.spec index 0f955b3..91b047e 100644 --- a/php-webmozart-assert.spec +++ b/php-webmozart-assert.spec @@ -10,6 +10,8 @@ # Please preserve changelog entries # +# enable bootstrap when need to provide a new autoloader +%global bootstrap 0 %global github_owner webmozart %global github_name assert %global github_version 1.3.0 @@ -21,14 +23,19 @@ # "php": "^5.3.3 || ^7.0" %global php_min_ver 5.3.3 +%if %{bootstrap} +# 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 %{!?phpdir: %global phpdir %{_datadir}/php} Name: php-%{composer_vendor}-%{composer_project} Version: %{github_version} -Release: 1%{?github_release}%{?dist} +Release: 3%{?github_release}%{?dist} Summary: Assertions to validate method input/output with nice error messages Group: Development/Libraries @@ -89,13 +96,10 @@ cat <<'AUTOLOAD' | tee src/autoload.php - 1.3.0-3 +- fix autoloader, use PSR-4 to avoid duplicated definition +- prepend autoloader to ensure we use current version in tests +- fix FTBFS #1605449 + +* Fri Oct 19 2018 Remi Collet - 1.3.0-2 +- fix autoloader, use PSR-4 to avoid duplicated definition +- prepend autoloader to ensure we use current version in tests +- fix FTBFS #1605449 +- bootstrap build + * Sun Apr 22 2018 Shawn Iwinski - 1.3.0-1 - Update to 1.3.0 (RHBZ #1539946) - Add get source script -- cgit