diff options
-rw-r--r-- | php-nikic-php-parser4.spec | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/php-nikic-php-parser4.spec b/php-nikic-php-parser4.spec index a319ca0..fb13f6b 100644 --- a/php-nikic-php-parser4.spec +++ b/php-nikic-php-parser4.spec @@ -89,14 +89,10 @@ Autoloader: %{php_home}/%{ns_project}%{major}/autoload.php %build -: Generate an simple PSR-4 autoloader -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 +: Generate an simple classmap autoloader +phpab --template fedora \ + --output lib/%{ns_project}/autoload.php \ + lib/%{ns_project} %install @@ -158,9 +154,6 @@ 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 |