From 9c1d6e5ab9fe1b9d57d664be9b555bd7bd1934b0 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 28 Sep 2021 10:52:39 +0200 Subject: add REFLECTION file to package documentation --- php-pecl-rpminfo.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/php-pecl-rpminfo.spec b/php-pecl-rpminfo.spec index 3bdb733..aeccbe4 100644 --- a/php-pecl-rpminfo.spec +++ b/php-pecl-rpminfo.spec @@ -23,7 +23,7 @@ Summary: RPM information Name: %{?sub_prefix}php-pecl-%{pecl_name} Version: 0.6.0 -Release: 2%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} +Release: 3%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} License: PHP URL: https://pecl.php.net/package/%{pecl_name} Source0: https://pecl.php.net/get/%{pecl_name}-%{version}.tgz @@ -112,6 +112,10 @@ cd NTS --with-php-config=%{_bindir}/php-config make %{?_smp_mflags} +%{__php} --no-php-ini \ + --define extension=modules/%{pecl_name}.so \ + --re %{pecl_name} >REFLECTION + %if %{with_zts} cd ../ZTS %{_bindir}/zts-phpize @@ -143,7 +147,7 @@ install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name} %endif # Documentation -for i in $(grep 'role="doc"' package.xml | sed -e 's/^.*name="//;s/".*$//') +for i in $(grep 'role="doc"' package.xml | sed -e 's/^.*name="//;s/".*$//') REFLECTION do install -Dpm 644 NTS/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i done @@ -220,6 +224,9 @@ REPORT_EXIT_STATUS=1 \ %changelog +* Tue Sep 28 2021 Remi Collet - 0.6.0-3 +- add REFLECTION file to package documentation + * Wed Sep 01 2021 Remi Collet - 0.6.0-2 - rebuild for 8.1.0RC1 -- cgit