summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-09-20 09:30:40 +0200
committerRemi Collet <remi@remirepo.net>2020-09-20 09:30:40 +0200
commit7d3dc56fb6bf4effc9e56a47d76bf37e2076935c (patch)
tree000e943a588fdcd97a13e7eeed979c7e20f72816
parent937478716eed01d47be1be4f1150b97b81ee077f (diff)
revert autoloader change
-rw-r--r--php-nikic-php-parser4.spec15
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