From 27fb19ad29ae76398bd22c5a4a3ea4cc36449bfd Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 8 Jun 2017 08:51:04 +0200 Subject: minor --- php-pecl-handlebars.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'php-pecl-handlebars.spec') diff --git a/php-pecl-handlebars.spec b/php-pecl-handlebars.spec index 6934190..38e3573 100644 --- a/php-pecl-handlebars.spec +++ b/php-pecl-handlebars.spec @@ -116,7 +116,7 @@ cp -pr NTS ZTS # Create configuration file cat << 'EOF' | tee %{ini_name} -; Enable "%{summary}" extension module +; Enable "%{pecl_name}" extension module extension=%{pecl_name}.so EOF @@ -164,7 +164,11 @@ make -C ZTS install INSTALL_ROOT=%{buildroot} install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name} %endif -# Documentation +# Test & Documentation +for i in $(grep 'role="test"' package.xml | sed -e 's/^.*name="//;s/".*$//') +do [ -f NTS/tests/$i ] && install -Dpm 644 NTS/tests/$i %{buildroot}%{pecl_testdir}/%{pecl_name}/tests/$i + [ -f NTS/$i ] && install -Dpm 644 NTS/$i %{buildroot}%{pecl_testdir}/%{pecl_name}/$i +done for i in $(grep 'role="doc"' package.xml | sed -e 's/^.*name="//;s/".*$//') do install -Dpm 644 NTS/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i done -- cgit