From 6c401d5daf368b9bc8a2a25f01685e7204fea9c3 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 20 Oct 2015 12:06:33 +0200 Subject: php-nette-php-generator: move autoloader --- php-nette-php-generator.spec | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/php-nette-php-generator.spec b/php-nette-php-generator.spec index 84f62b4..3e8b06a 100644 --- a/php-nette-php-generator.spec +++ b/php-nette-php-generator.spec @@ -58,6 +58,9 @@ Provides: php-composer(%{gh_owner}/%{gh_project}) = %{version} %description Generate PHP code with a simple programmatical API. +To use this library, you just have to add, in your project: + require_once '%{php_home}/%{ns_vendor}/%{ns_project}/autoload.php'; + %prep %setup -q -n %{gh_project}-%{gh_commit} @@ -65,10 +68,11 @@ Generate PHP code with a simple programmatical API. %build : Generate a classmap autoloader -phpab --output src/%{gh_project}-autoload.php src -cat << 'EOF' | tee -a src/%{gh_project}-autoload.php +phpab --output src/%{ns_project}/autoload.php src + +cat << 'EOF' | tee -a src/%{ns_project}/autoload.php // Dependencies -require_once '%{php_home}/%{ns_vendor}/utils-autoload.php'; +require_once '%{php_home}/%{ns_vendor}/Utils/autoload.php'; EOF @@ -89,7 +93,7 @@ mkdir vendor cat << 'EOF' | tee vendor/autoload.php