diff options
author | Remi Collet <fedora@famillecollet.com> | 2015-10-20 11:51:25 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2015-10-20 11:51:25 +0200 |
commit | 5c1d6fbc95b402338871c0cb1f2dcaa6a1990add (patch) | |
tree | 01962029742814ad0e44ae1f27188f4ba8f849a4 /php-nette-utils.spec | |
parent | 2f38c9e7a69de1ac052b653ab8c6d5341a613b64 (diff) |
php-nette-utils: move autoloader
Diffstat (limited to 'php-nette-utils.spec')
-rw-r--r-- | php-nette-utils.spec | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/php-nette-utils.spec b/php-nette-utils.spec index 77ae5e7..4247249 100644 --- a/php-nette-utils.spec +++ b/php-nette-utils.spec @@ -86,6 +86,9 @@ Provides: php-composer(%{gh_owner}/%{gh_project}) = %{version} %description Nette Utility Classes. +To use this library, you just have to add, in your project: + require_once '%{php_home}/%{ns_vendor}/Utils/autoload.php';'; + %prep %setup -q -n %{gh_project}-%{gh_commit} @@ -93,7 +96,7 @@ Nette Utility Classes. %build : Generate a classmap autoloader -phpab --output src/utils-autoload.php src +phpab --output src/Utils/autoload.php src %install @@ -118,7 +121,7 @@ mkdir vendor cat << 'EOF' | tee vendor/autoload.php <?php require_once '%{php_home}/Tester/autoload.php'; -require_once '%{buildroot}%{php_home}/%{ns_vendor}/utils-autoload.php'; +require_once '%{buildroot}%{php_home}/%{ns_vendor}/Utils/autoload.php'; EOF : Run test suite in sources tree @@ -138,7 +141,9 @@ rm -rf %{buildroot} %license license.md %doc readme.md contributing.md %doc composer.json -%{php_home}/%{ns_vendor} +%dir %{php_home}/%{ns_vendor} + %{php_home}/%{ns_vendor}/Utils + %{php_home}/%{ns_vendor}/Iterators %changelog |