summaryrefslogtreecommitdiffstats
path: root/php-theseer-autoload.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2019-04-24 14:06:00 +0200
committerRemi Collet <remi@remirepo.net>2019-04-24 14:06:00 +0200
commit66a008c9478acbb33886c593bfd78e8a175d24e3 (patch)
tree04d9d5665bbd181a86dc0d1fe6561e80a75cca2b /php-theseer-autoload.spec
parenta267ecc72c858aeaeeb6f16b2399e8c3c148c66f (diff)
- add patch for PHP 5.3 from
https://github.com/theseer/Autoload/pull/86
Diffstat (limited to 'php-theseer-autoload.spec')
-rw-r--r--php-theseer-autoload.spec14
1 files changed, 13 insertions, 1 deletions
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 <<EOF | tee tests/init.php
<?php
@@ -146,6 +154,10 @@ fi
%changelog
+* Wed Apr 24 2019 Remi Collet <remi@remirepo.net> - 1.25.4-2
+- add patch for PHP 5.3 from
+ https://github.com/theseer/Autoload/pull/86
+
* Fri Apr 19 2019 Remi Collet <remi@remirepo.net> - 1.25.4-1
- update to 1.25.4