summaryrefslogtreecommitdiffstats
path: root/php-theseer-autoload.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2017-06-26 09:11:27 +0200
committerRemi Collet <remi@remirepo.net>2017-06-26 09:11:27 +0200
commit76f0dbe57e62b9de4a7abb1d45f3df0f72ab9f85 (patch)
tree5f6c01004501f879bf6982af4b2342f88807c36b /php-theseer-autoload.spec
parentd732a696a2d0fe28d9b2697f39fc5c29058b4b4b (diff)
patch for 5.3
Diffstat (limited to 'php-theseer-autoload.spec')
-rw-r--r--php-theseer-autoload.spec6
1 files changed, 6 insertions, 0 deletions
diff --git a/php-theseer-autoload.spec b/php-theseer-autoload.spec
index e9db493..f68a604 100644
--- a/php-theseer-autoload.spec
+++ b/php-theseer-autoload.spec
@@ -26,6 +26,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}-pr78.patch
BuildArch: noarch
BuildRequires: php(language) >= 5.3.1
@@ -74,6 +76,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
@@ -106,6 +109,7 @@ install -Dpm 0755 phpab.php %{buildroot}%{_bindir}/phpab
cat <<EOF | tee tests/init.php
<?php
require '%{buildroot}%{_datadir}/php/TheSeer/Autoload/autoload.php';
+class_exists('PHPUnit\Framework\TestCase') or class_alias('PHPUnit_Framework_TestCase', 'PHPUnit\Framework\TestCase');
EOF
ret=0
@@ -137,6 +141,8 @@ fi
* Mon Jun 26 2017 Remi Collet <remi@remirepo.net> - 1.24.0-1
- Update to 1.24.0
- use phpunit6 on F26+
+- add patch for PHP 5.3 in EL-6 from
+ https://github.com/theseer/Autoload/pull/78
* Wed Dec 21 2016 Remi Collet <remi@fedoraproject.org> - 1.23.0-1
- update to 1.23.0