diff options
author | Remi Collet <fedora@famillecollet.com> | 2015-10-20 11:32:07 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2015-10-20 11:32:07 +0200 |
commit | 2f38c9e7a69de1ac052b653ab8c6d5341a613b64 (patch) | |
tree | 12805f631c7b329e9be72b738b044b410f8cdcb6 | |
parent | 1d121d3f567b6062cbac9b048187b4f948b5f807 (diff) |
php-nette-utils: more macros
-rw-r--r-- | php-nette-utils.spec | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/php-nette-utils.spec b/php-nette-utils.spec index 4f205f5..77ae5e7 100644 --- a/php-nette-utils.spec +++ b/php-nette-utils.spec @@ -11,6 +11,7 @@ %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner nette %global gh_project utils +%global ns_vendor Nette %global php_home %{_datadir}/php %global with_tests 0%{!?_without_tests:1} @@ -97,8 +98,8 @@ phpab --output src/utils-autoload.php src %install rm -rf %{buildroot} -mkdir -p %{buildroot}%{php_home}/Nette -cp -pr src/* %{buildroot}%{php_home}/Nette/ +mkdir -p %{buildroot}%{php_home}/%{ns_vendor} +cp -pr src/* %{buildroot}%{php_home}/%{ns_vendor}/ %check @@ -117,7 +118,7 @@ mkdir vendor cat << 'EOF' | tee vendor/autoload.php <?php require_once '%{php_home}/Tester/autoload.php'; -require_once '%{buildroot}%{php_home}/Nette/utils-autoload.php'; +require_once '%{buildroot}%{php_home}/%{ns_vendor}/utils-autoload.php'; EOF : Run test suite in sources tree @@ -137,7 +138,7 @@ rm -rf %{buildroot} %license license.md %doc readme.md contributing.md %doc composer.json -%{php_home}/Nette +%{php_home}/%{ns_vendor} %changelog |