PECL package tests and documentation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

In last update,  php-pear-1.9.4-23.fc20 I have change the configuration
for the PECL channel
- doc_dir = /usr/share/doc/pecl
- test_dir = /usr/share/tests/pecl

So this is consistent with pear channel, and avoid name conflicts (if a
pecl extension have the name that a pear extension).

For now, pecl package don't use this directories, but install
documentation in %{_pkgdocdir}, as other package.

This raise a small issue. Outout of "pecl list-files foo" is not
reliable (as files are not installed where expected).

For now, we cannot use "pecl install ... " for those files (a pear
bug..., which need investigation).


A simple generic loop do the work

%install
# Documentation
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

%file
%doc %{pecl_docdir}/%{pecl_name}


Perhaps we can go further, using per-channel specific directories for a
channel with lot of packages (phpunit, horde, symfony...)


Any thought or comment ?

Remi.
_______________________________________________
php-devel mailing list
php-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/php-devel





[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora KDE]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux