diff --git a/newt.spec b/newt.spec index cea7e37..0a9cd18 100644 --- a/newt.spec +++ b/newt.spec @@ -60,13 +60,18 @@ Requires: %{name}%{?_isa} = %{version}-%{release} The python2-newt package contains the Python 2 bindings for the newt library providing a python API for creating text mode interfaces. -%package python3 +%package -n python3-newt +%{?python_provide:%python_provide python3-newt} +# Remove before F30 +Provides: %{name}-python3 = %{version}-%{release} +Provides: %{name}-python3%{?_isa} = %{version}-%{release} +Obsoletes: %{name}-python3 < %{version}-%{release} Summary: Python 3 bindings for newt Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} -%description python3 -The newt-python3 package contains the Python 3 bindings for the newt library +%description -n python3-newt +The python3-newt package contains the Python 3 bindings for the newt library providing a python API for creating text mode interfaces. %prep @@ -109,7 +114,7 @@ make DESTDIR=$RPM_BUILD_ROOT install %{python2_sitearch}/*.so %{python2_sitearch}/*.py* -%files python3 +%files -n python3-newt %doc peanuts.py popcorn.py %{python3_sitearch}/*.so %{python3_sitearch}/*.py*