diff options
author | Remi Collet <fedora@famillecollet.com> | 2013-10-14 16:00:58 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2013-10-14 16:00:58 +0200 |
commit | 628debc1417472269fa59cefbcf5a003d7ec9b51 (patch) | |
tree | 877bc78699acf60baf7791b8d09c2a50f6f5feaa | |
parent | 2a6fc45fda6370dd048a15019a7e8a563d7cba3b (diff) |
php-pecl-newt: WIP doc placement
-rw-r--r-- | php-pecl-newt.spec | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/php-pecl-newt.spec b/php-pecl-newt.spec index 3f47e45..86c5385 100644 --- a/php-pecl-newt.spec +++ b/php-pecl-newt.spec @@ -58,6 +58,7 @@ Newt API of C programming language. tar xif %{SOURCE0} mv %{pecl_name}-%{version} NTS +mv package.xml NTS/%{name}.xml cd NTS @@ -109,8 +110,6 @@ make -C NTS install INSTALL_ROOT=%{buildroot} # install config file install -D -m 644 %{pecl_name}.ini %{buildroot}%{php_inidir}/%{pecl_name}.ini -# Install XML package description -install -D -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml %if %{with_zts} make -C ZTS install INSTALL_ROOT=%{buildroot} @@ -118,6 +117,15 @@ make -C ZTS install INSTALL_ROOT=%{buildroot} install -D -m 644 %{pecl_name}.ini %{buildroot}%{php_ztsinidir}/%{pecl_name}.ini %endif +cd NTS +# Install XML package description +install -D -m 644 %{name}.xml %{buildroot}%{pecl_xmldir}/%{name}.xml + +# don't work in mock, need investigation +#{__pecl} install --force --nodeps --nobuild --installroot %{buildroot} %{name}.xml +#rm -rf %{buildroot}%{pear_metadir}/.??* +#rm -rf %{buildroot}%{_localstatedir}/tmp + %post %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || : @@ -152,6 +160,7 @@ rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc NTS/{LICENSE,CREDITS} +#doc %{pecl_docdir}/%{pecl_name} %{pecl_xmldir}/%{name}.xml %config(noreplace) %{php_inidir}/%{pecl_name}.ini %{php_extdir}/%{pecl_name}.so |