[ovs-dev] [PATCH 2/6] redhat: replace python3 with python package macro

Flavio Leitner fbl at sysclose.org
Wed Jun 7 20:54:48 UTC 2017


On Wed, Jun 07, 2017 at 05:39:28PM -0300, Flavio Leitner wrote:
> On Sat, Jun 03, 2017 at 11:09:57AM -0400, Aaron Conole wrote:
> > diff --git a/rhel/openvswitch-fedora.spec.in b/rhel/openvswitch-fedora.spec.in
> > index 9fc5f27..95533aa 100644
> > --- a/rhel/openvswitch-fedora.spec.in
> > +++ b/rhel/openvswitch-fedora.spec.in
> > @@ -132,7 +132,7 @@ License: ASL 2.0
> >  BuildArch: noarch
> >  Requires: python3

Instead of fixing the above requires, it could be removed as it seems
to be not necessary. The rpm will add a requires to a python abi of a
specific version:

This is the package from master, note the requires for the abi version:
$ rpm -qp --requires ovs/rpm/rpmbuild/RPMS/noarch/python3-openvswitch-2.7.90-1.fc25.noarch.rpm
python(abi) = 3.5    <----
python3
python3-six

And this is the package providing it.
$ rpm -q --provides python3-3.5.3-6.fc25.x86_64 | grep abi
python(abi) = 3.5

-- 
Flavio



More information about the dev mailing list