diff options
-rw-r--r-- | php-nikic-php-parser4.spec | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/php-nikic-php-parser4.spec b/php-nikic-php-parser4.spec index 3820907..a319ca0 100644 --- a/php-nikic-php-parser4.spec +++ b/php-nikic-php-parser4.spec @@ -10,7 +10,7 @@ # For compatibility with SCL %undefine __brp_mangle_shebangs -%global gh_commit 88e519766fc58bd46b8265561fb79b54e2e00b28 +%global gh_commit 1c13d05035deff45f1230ca68bd7d74d621762d9 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner nikic %global gh_project PHP-Parser @@ -21,7 +21,7 @@ %global major 4 Name: php-%{gh_owner}-%{pk_project}%{major} -Version: 4.9.1 +Version: 4.10.0 Release: 1%{?dist} Summary: A PHP parser written in PHP - version %{major} @@ -90,9 +90,13 @@ Autoloader: %{php_home}/%{ns_project}%{major}/autoload.php %build : Generate an simple PSR-4 autoloader -phpab --template fedora \ - --output lib/%{ns_project}/autoload.php \ - lib/%{ns_project} +cat << 'AUTOLOAD' | tee lib/%{ns_project}/autoload.php +<?php +/* Autoloader for %{name} and its dependencies */ +require_once '%{_datadir}/php/Fedora/Autoloader/autoload.php'; + +\Fedora\Autoloader\Autoload::addPsr4('%{ns_project}\\', __DIR__); +AUTOLOAD %install @@ -152,6 +156,12 @@ exit $ret %changelog +* Sun Sep 20 2020 Remi Collet <remi@remirepo.net> - 4.10.0-1 +- update to 4.10.0 +- switch back to PSR-4 autoloader +- open https://github.com/theseer/Autoload/issues/96 + Can't generate autoloader for nikic/php-parser + * Mon Aug 31 2020 Remi Collet <remi@remirepo.net> - 4.9.1-1 - update to 4.9.1 |