summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2018-10-18 07:40:36 +0200
committerRemi Collet <remi@remirepo.net>2018-10-18 07:40:36 +0200
commit7bafaebdc9c075c3ec60b13d556b4ee1dbbfcc60 (patch)
tree6f2cea5e0059ae324e14abea54ddbc3812a53561
parent0a8c7cf6f4dcf15ce17e334f8290d52a2a1da0a1 (diff)
move autoloader
-rw-r--r--php-doctrine-event-manager.spec8
1 files 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