Re: [libvirt] [python PATCH] rpm: use new python macros for build/install rules

2019-04-04 Thread Daniel P . Berrangé
On Thu, Apr 04, 2019 at 12:18:39PM +0200, Andrea Bolognani wrote: > On Wed, 2019-04-03 at 18:11 +0100, Daniel P. Berrangé wrote: > [...] > > %if %{with_python2} > > +%if 0%{?fedora} >= 29 || 0%{?rhel} >= 8 > > +%py2_build > > +%else > > So based on this it looks like the %py*_build macros were on

Re: [libvirt] [python PATCH] rpm: use new python macros for build/install rules

2019-04-04 Thread Andrea Bolognani
On Wed, 2019-04-03 at 18:11 +0100, Daniel P. Berrangé wrote: [...] > %if %{with_python2} > +%if 0%{?fedora} >= 29 || 0%{?rhel} >= 8 > +%py2_build > +%else So based on this it looks like the %py*_build macros were only introduced in Fedora 29... > %if %{with_python2} > +%if 0%{?fedora} || 0%{?rh

[libvirt] [python PATCH] rpm: use new python macros for build/install rules

2019-04-03 Thread Daniel P . Berrangé
The new %py{2,3}_{build,install} macros ensure that the right compiler and linker flags are used when building python modules. Signed-off-by: Daniel P. Berrangé --- libvirt-python.spec.in | 16 1 file changed, 16 insertions(+) diff --git a/libvirt-python.spec.in b/libvirt-pytho