summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2021-09-28 10:52:39 +0200
committerRemi Collet <remi@remirepo.net>2021-09-28 10:52:39 +0200
commit9c1d6e5ab9fe1b9d57d664be9b555bd7bd1934b0 (patch)
tree47ca836ce3676533abc312e20d6577c22b909f60
parent5b397a3b0f64858ec787c322c07c4b15cca32519 (diff)
add REFLECTION file to package documentation
-rw-r--r--php-pecl-rpminfo.spec11
1 files 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 <remi@remirepo.net> - 0.6.0-3
+- add REFLECTION file to package documentation
+
* Wed Sep 01 2021 Remi Collet <remi@remirepo.net> - 0.6.0-2
- rebuild for 8.1.0RC1