From 61e142e10af7bcfc69139e0d3b49125c549ec302 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 26 Jun 2017 08:48:21 +0200 Subject: v1.24.0 --- php-theseer-autoload.spec | 46 +++++++++++++++++++--------------------------- 1 file changed, 19 insertions(+), 27 deletions(-) (limited to 'php-theseer-autoload.spec') diff --git a/php-theseer-autoload.spec b/php-theseer-autoload.spec index 5471816..75145ff 100644 --- a/php-theseer-autoload.spec +++ b/php-theseer-autoload.spec @@ -6,7 +6,7 @@ # # Please, preserve the changelog entries # -%global gh_commit 4466c1d32c2dadb40cbe598b656a485e6175a00d +%global gh_commit c764a62ac6e558cb22e7a1ce09f4f9554b385937 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner theseer %global gh_project Autoload @@ -15,7 +15,7 @@ %global pear_channel pear.netpirates.net Name: php-theseer-autoload -Version: 1.23.0 +Version: 1.24.0 Release: 1%{?dist} Summary: A tool and library to generate autoload code @@ -27,16 +27,21 @@ Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit # Autoloader path Patch0: %{gh_project}-rpm.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: php(language) >= 5.3.1 # From composer.json, "require-dev": { -# "phpunit/phpunit": "~4.0|~5.0", +# "phpunit/phpunit": "^4.8.35|^5.7|^6.0", # "squizlabs/php_codesniffer": "~1.5" BuildRequires: php-composer(phpunit/phpunit) BuildRequires: php-composer(theseer/directoryscanner) >= 1.3 BuildRequires: php-composer(theseer/directoryscanner) < 2 BuildRequires: php-composer(zetacomponents/console-tools) >= 1.7 +%if 0%{?fedora} >= 26 +%global phpunit %{_bindir}/phpunit6 +%else +%global phpunit %{_bindir}/phpunit +%endif +BuildRequires: %{phpunit} # From composer.json, "require": { # "theseer/directoryscanner": "~1.3", @@ -91,7 +96,6 @@ sed -e 's/@VERSION@/%{version}/' -i phpab.php %install -rm -rf %{buildroot} mkdir -p %{buildroot}%{php_home} cp -pr src %{buildroot}%{php_home}/%{gh_project} @@ -105,31 +109,16 @@ cat < - 1.24.0-1 +- Update to 1.24.0 +- use phpunit6 on F26+ + * Wed Dec 21 2016 Remi Collet - 1.23.0-1 - update to 1.23.0 -- cgit