The rpm-build-pecl package contains helper macroses for
PECL module packaging.

Firstly, define pecl_name with Pecl package name.
Use %pecl_configure in build section instead usual %configure, %make_build in usual way,
%pecl_install and %pecl_install_doc in %install section.

In files section use %peac_files for file list

See  for detailed http://www.altlinux.org/Pecl_Policy
ALT Linux PECL packaging policy.

Don't forget add
%post
%php7_extension_postin

%preun
%php7_extension_preun

for enable extension after install.

14.01.2008 Vitaly Lipatov
27.10.2010 Vitaly Lipatov
11.03.2013 Vitaly Lipatov
