diff options
author | Remi Collet <remi@remirepo.net> | 2017-06-08 08:51:04 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2017-06-08 08:51:04 +0200 |
commit | 27fb19ad29ae76398bd22c5a4a3ea4cc36449bfd (patch) | |
tree | 0b9e89c85647ac31968ec00bc30bc305bcb2aa69 | |
parent | 307bf78cebea625e6962e94bc5245c638a31a8db (diff) |
minor
-rw-r--r-- | php-pecl-handlebars.spec | 8 |
1 files changed, 6 insertions, 2 deletions
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 |