Move py2 %python_provide to correct location and add for py3

It needs to be after BuildArch:noarch to work properly.
The one for Python 3 was missing completely.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2017-12-23 17:46:02 -05:00
parent 6dcd06da69
commit b388529034

View File

@ -75,13 +75,13 @@ are intended for testing liblouis and for debugging tables. None of
them is suitable for braille transcription.
%package -n python2-louis
%{?python_provide:%python_provide python2-louis}
Summary: Python 2 language bindings for %{name}
Group: Development/Languages
BuildArch: noarch
Requires: %{name} = %{version}-%{release}
Obsoletes: %{name}-python < 2.6.2-3
Provides: %{name}-python = %{version}-%{release}
%{?python_provide:%python_provide python2-louis}
%description -n python2-louis
This package provides Python 2 language bindings for %{name}.
@ -94,6 +94,7 @@ BuildArch: noarch
Requires: %{name} = %{version}-%{release}
Obsoletes: %{name}-python3 < 2.6.2-3
Provides: %{name}-python3 = %{version}-%{release}
%{?python_provide:%python_provide python3-louis}
%description -n python3-louis
This package provides Python 3 language bindings for %{name}.