From 7c630b4a7d264a337b1fd103c62d701176f85d8c Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 27 Oct 2015 17:20:10 +0100 Subject: php-herrera-io-phar-update: fix resources installation --- php-herrera-io-phar-update.spec | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'php-herrera-io-phar-update.spec') diff --git a/php-herrera-io-phar-update.spec b/php-herrera-io-phar-update.spec index 6c0755b..312448f 100644 --- a/php-herrera-io-phar-update.spec +++ b/php-herrera-io-phar-update.spec @@ -20,7 +20,7 @@ Name: php-%{c_vendor}-%{c_project} Version: 2.0.0 -%global specrel 1 +%global specrel 2 Release: %{?gh_date:0.%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist} Summary: A library for self-updating Phars @@ -91,15 +91,22 @@ cp %{SOURCE1} src/lib/%{ns_vendor}/%{ns_project}/autoload.php %install rm -rf %{buildroot} + +: library mkdir -p %{buildroot}%{php_home} cp -pr src/lib/%{ns_vendor} %{buildroot}%{php_home}/%{ns_vendor} -# yes, ugly -cp res/schema.json %{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}/ + +: resources +mkdir -p %{buildroot}%{_datadir}/%{name} +cp -pr res %{buildroot}%{_datadir}/%{name}/res + %check %if %{with_tests} cat << 'EOF' | tee src/tests/bootstrap.php - 1.0.3-2 +- fix resources installation + * Wed Oct 21 2015 Remi Collet - 1.0.3-1 - initial package \ No newline at end of file -- cgit