diff options
| -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  | 
