On Thu, Jan 11, 2018 at 11:55 PM, Panu Matilainen pmatilai@redhat.com wrote:
On 01/12/2018 06:08 AM, Luya Tshimbalanga wrote:
On 2018-01-11 01:02 PM, Troy Dawson wrote:
Hello, Python3 will be in the next major RHEL release. I don't mean RHEL 7.6, but with numbers higher than 7. There are many, many packages with something like the following
if 0%{?fedora} %define with_python3 1 %endif
If you have something like that, please change it to something like this.
if 0%{?fedora} || 0%{?rhel} > 7 %define with_python3 1 %endif
Thank You _______________________________________________
Quick question: why not using %global rather than %define ?
Probably old habit from times before %define got unnecessarily demonized within Fedora. FWIW, both achieve exactly the same thing in this context.
When writing this email I grabbed the last package that I looked at. There is a wide variety of these %if statements, ranging from %define and %global, and different ways of setting "with_python3", to putting the %if statement around each python3 part of the spec file. Because of this wide variety, it would be difficult to script a rewrite of spec files.
Troy