From 7bafaebdc9c075c3ec60b13d556b4ee1dbbfcc60 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 18 Oct 2018 07:40:36 +0200 Subject: move autoloader --- php-doctrine-event-manager.spec | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/php-doctrine-event-manager.spec b/php-doctrine-event-manager.spec index 6dcf648..37d0dc5 100644 --- a/php-doctrine-event-manager.spec +++ b/php-doctrine-event-manager.spec @@ -18,6 +18,7 @@ # Namespace %global ns_vendor Doctrine %global ns_project Common +%global ns_subproj EventManager %if %{bootstrap} %global with_tests 0%{?_with_tests:1} %else @@ -58,7 +59,7 @@ Conflicts: php-doctrine-common < 2.9 The Doctrine Event Manager is a simple PHP event system that was built to be used with the various Doctrine projects. -Autoloader: %{_datadir}/php/%{ns_vendor}/%{ns_project}/autoload-event-manager.php +Autoloader: %{_datadir}/php/%{ns_vendor}/%{ns_project}/%{ns_subproj}/autoload.php %prep @@ -67,8 +68,9 @@ Autoloader: %{_datadir}/php/%{ns_vendor}/%{ns_project}/autoload-event-manager.ph %build : Generate a simple autoloader +mkdir lib/%{ns_vendor}/%{ns_project}/%{ns_subproj} %{_bindir}/phpab \ - --output lib/%{ns_vendor}/%{ns_project}/autoload-event-manager.php \ + --output lib/%{ns_vendor}/%{ns_project}/%{ns_subproj}/autoload.php \ --template fedora \ lib/%{ns_vendor}/%{ns_project} @@ -87,7 +89,7 @@ mkdir vendor --template fedora \ tests cat << 'EOF' | tee -a vendor/autoload.php -require "%{buildroot}%{_datadir}/php/%{ns_vendor}/%{ns_project}/autoload-event-manager.php"; +require "%{buildroot}%{_datadir}/php/%{ns_vendor}/%{ns_project}/%{ns_subproj}/autoload.php"; EOF : Run test suite -- cgit