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 --- .gitignore | 7 +++++++ Autoload-rpm.patch | 4 ++-- composer.json | 2 +- php-theseer-autoload.spec | 46 +++++++++++++++++++--------------------------- 4 files changed, 29 insertions(+), 30 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1ab5c4f --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +package-*.xml +*.tgz +*.tar.gz +*.tar.xz +*.tar.xz.asc +*.src.rpm +*/*rpm diff --git a/Autoload-rpm.patch b/Autoload-rpm.patch index 8eaa375..bd699c1 100644 --- a/Autoload-rpm.patch +++ b/Autoload-rpm.patch @@ -1,7 +1,7 @@ --- phpab.php.rpm 2015-06-30 22:02:53.000000000 +0200 +++ phpab.php 2015-07-01 10:13:32.443481551 +0200 -@@ -42,12 +42,12 @@ - * 4 - Lint Error +@@ -43,12 +43,12 @@ + * 5 - Duplicates found Error */ -define('PHPAB_VERSION', '%development%'); diff --git a/composer.json b/composer.json index e92ada0..9f57808 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ }, "require-dev": { "php": ">=5.3", - "phpunit/phpunit": "~4.0|~5.0", + "phpunit/phpunit": "^4.8.35|^5.7|^6.0", "squizlabs/php_codesniffer": "~1.5" }, "autoload": { 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