[packages/rpm/dev-5.4.17] - add provides/requires scripts macros for perl and python

qboosh qboosh at pld-linux.org
Wed Feb 5 17:22:35 CET 2020


commit 2ae9ae03bc58adc1a2e2c9ee3a7a135304757cda
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Fri Jan 3 22:25:19 2020 +0900

    - add provides/requires scripts macros for perl and python

 prov-req-macros | 4 ++++
 rpm.spec        | 4 ++++
 2 files changed, 8 insertions(+)
---
diff --git a/rpm.spec b/rpm.spec
index 69e9975..c2d6a44 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -93,6 +93,7 @@ Source26:	%{name}db_checkversion.c
 Source27:	macros.lang
 Source28:	%{name}db_reset.c
 Source29:	dbupgrade.sh
+Source30:	prov-req-macros
 Patch0:		%{name}-branch.patch
 Patch1:		%{name}-man_pl.patch
 Patch2:		%{name}-popt-aliases.patch
@@ -1260,6 +1261,8 @@ for m in gstreamer mono; do
 	echo "%%{load:%{_rpmlibdir}/macros.d/$m}" >$RPM_BUILD_ROOT%{_rpmlibdir}/macros.$m
 done
 
+install %{SOURCE30} $RPM_BUILD_ROOT%{_rpmlibdir}/macros.d/prov-req
+
 # moved to rpm-build-macros 1.699
 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/macros.d/kernel
 # moved to rpm-build-macros 1.744
@@ -1545,6 +1548,7 @@ find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f
 %{_rpmlibdir}/macros.d/libtool
 %{_rpmlibdir}/macros.d/mono
 %{_rpmlibdir}/macros.d/pkgconfig
+%{_rpmlibdir}/macros.d/prov-req
 %{_rpmlibdir}/macros.d/selinux
 %{_rpmlibdir}/macros.rpmbuild
 # compat wrappers
diff --git a/prov-req-macros b/prov-req-macros
new file mode 100644
index 0000000..ef7867e
--- /dev/null
+++ b/prov-req-macros
@@ -0,0 +1,4 @@
+%__perl_provides	%{_rpmhome}/perl.prov
+%__perl_requires	%{_rpmhome}/perl.req
+%__python_provides	%{_rpmhome}/pythoneggs.py --provides
+%__python_requires	%{_rpmhome}/pythoneggs.py --requires
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm.git/commitdiff/cffb64ba2db7b311147604c09b2ed00ea8974d6d



More information about the pld-cvs-commit mailing list