From 66a008c9478acbb33886c593bfd78e8a175d24e3 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 24 Apr 2019 14:06:00 +0200 Subject: - add patch for PHP 5.3 from https://github.com/theseer/Autoload/pull/86 --- php-theseer-autoload.spec | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'php-theseer-autoload.spec') diff --git a/php-theseer-autoload.spec b/php-theseer-autoload.spec index 1983ef8..7682fe8 100644 --- a/php-theseer-autoload.spec +++ b/php-theseer-autoload.spec @@ -20,7 +20,7 @@ Name: php-theseer-autoload Version: 1.25.4 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A tool and library to generate autoload code License: BSD @@ -29,6 +29,8 @@ Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit # Autoloader path Patch0: %{gh_project}-rpm.patch +# PHP 5.3 +Patch1: %{gh_project}-php53.patch BuildArch: noarch BuildRequires: php(language) >= 5.3.1 @@ -85,6 +87,7 @@ the option of creating static require lists as well as phar archives. %setup -q -n %{gh_project}-%{gh_commit} %patch0 -p0 -b .rpm +%patch1 -p1 : drop composer dependencies sed -e '\:../vendor/:d' -i src/autoload.php @@ -113,6 +116,11 @@ install -Dpm 0755 phpab.php %{buildroot}%{_bindir}/phpab %check +: Check version +sed -e 's:%{php_home}:%{buildroot}%{php_home}:' phpab.php >t.php +php t.php --version | grep %{version} +php t.php --output foo.php src + : Fix test suite to use installed library cat < - 1.25.4-2 +- add patch for PHP 5.3 from + https://github.com/theseer/Autoload/pull/86 + * Fri Apr 19 2019 Remi Collet - 1.25.4-1 - update to 1.25.4 -- cgit