From 323d54bd7e5a28089cae734612fc5d666e04a941 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 17 Oct 2013 06:49:18 +0200 Subject: php-pecl-fann install doc in pecl doc_dir, install tests in pecl test_dir --- php-pecl-fann.spec | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/php-pecl-fann.spec b/php-pecl-fann.spec index 6715cbd..fb50fb8 100644 --- a/php-pecl-fann.spec +++ b/php-pecl-fann.spec @@ -106,6 +106,16 @@ make -C ZTS \ install -D -m 644 %{pecl_name}.ini %{buildroot}%{php_ztsinidir}/%{pecl_name}.ini %endif +# Test & Documentation +for i in $(grep 'role="test"' package.xml | sed -e 's/^.*name="//;s/".*$//') +do + 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 + %post %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || : @@ -153,7 +163,8 @@ rm -rf %{buildroot} %files %defattr(-,root,root,-) -%doc NTS/{CREDITS,LICENSE,README.md,examples} +%doc %{pecl_docdir}/%{pecl_name} +%doc %{pecl_testdir}/%{pecl_name} %{pecl_xmldir}/%{name}.xml %config(noreplace) %{php_inidir}/%{pecl_name}.ini %{php_extdir}/%{pecl_name}.so @@ -167,6 +178,8 @@ rm -rf %{buildroot} %changelog * Thu Oct 17 2013 Remi Collet - 1.0.5-1 - Update to 1.0.5 +- install doc in pecl doc_dir +- install tests in pecl test_dir * Sat Oct 12 2013 Remi Collet - 1.0.4-1 - Update to 1.0.4 (stable) -- cgit