From 6b17d310ad9a066e6ecc7af91a7475f6efcc1412 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Tue, 20 Nov 2018 05:02:34 +0000 Subject: [PATCH] Make it possible to build SRPM without python-devel installed --- javapackages-tools.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/javapackages-tools.spec b/javapackages-tools.spec index 80eabce..4a294a5 100644 --- a/javapackages-tools.spec +++ b/javapackages-tools.spec @@ -13,10 +13,10 @@ %if 0%{?fedora} || 0%{?rhel} > 7 %global python_prefix python3 -%global python_interpreter %{__python3} +%global python_interpreter %{?__python3}%{!?__python3:dummy} %else %global python_prefix python -%global python_interpreter %{__python2} +%global python_interpreter %{?__python2}%{!?__python2:dummy} %global rpmmacrodir /etc/rpm %endif @@ -25,7 +25,7 @@ Name: javapackages-tools Version: 5.3.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Macros and scripts for Java packaging support @@ -204,6 +204,9 @@ rm -rf %{buildroot}%{_mandir}/man7/gradle_build.7 %license LICENSE %changelog +* Tue Nov 20 2018 Mikolaj Izdebski - 5.3.0-3 +- Make it possible to build SRPM without python-devel installed + * Thu Oct 4 2018 Mikolaj Izdebski - 5.3.0-2 - Make javapackages-local require Python interpreter executable path