The rpm-build-pecl package contains helper macroses for
PECL module packaging.
Firstly, define pear_name with PEAR package name.
Use %pear_build in build section, %pear_install_std in install section.
%register_pear_module and %unregister_pear_module in post and preun sections respectively.
In files section use %pear_dir, %pear_xmldir, %pear_testdir, %pear_docdir macroses
for pear modules dir.

You can build PEAR rpm package with
pear make-rpm-spec <package> command from pear-PEAR_Command_Packaging package.

See http://www.freesource.info/wiki/Altlinux/Policy/Pecl for detailed
ALT Linux PECL packaging policy.

14.01.2008 Vitaly Lipatov

