dcavalca / rpms / rpm

Forked from rpms/rpm 2 years ago
Clone
James Antill ee2eaf
diff -up rpm-4.14.2/macros.in.pyerror rpm-4.14.2/macros.in
James Antill ee2eaf
--- rpm-4.14.2/macros.in.pyerror	2019-06-04 13:33:48.450727270 +0300
James Antill ee2eaf
+++ rpm-4.14.2/macros.in	2019-06-04 13:34:09.717695822 +0300
James Antill ee2eaf
@@ -50,7 +50,7 @@
James Antill ee2eaf
 %__mv			@__MV@
James Antill ee2eaf
 %__patch		@__PATCH@
James Antill ee2eaf
 %__perl			@__PERL@
James Antill ee2eaf
-%__python		@__PYTHON@
James Antill ee2eaf
+%__python		%{error:attempt to use unversioned python, define %%__python to %{_bindir}/python2 or %{_bindir}/python3 explicitly}
James Antill ee2eaf
 %__restorecon		@__RESTORECON@
James Antill ee2eaf
 %__rm			@__RM@
James Antill ee2eaf
 %__rsh			@__RSH@