diff --git a/python-mysql.spec b/python-mysql.spec index 9ac95e9..2edd2da 100644 --- a/python-mysql.spec +++ b/python-mysql.spec @@ -43,8 +43,7 @@ The design goals are: Summary: An interface to MySQL Provides: MySQL-python = %{version}-%{release} Obsoletes: MySQL-python < 1.3.6-4 -Provides: python-mysql = %{version}-%{release} -Obsoletes: python-mysql < 1.3.7-2 +%{?python_provide:%python_provide python2-mysql} %description -n python2-mysql %_description @@ -55,8 +54,7 @@ Summary: An interface to MySQL, built for the CPython debug runtime Requires: python2-mysql%{_isa} = %{version}-%{release} Provides: MySQL-python-debug = %{version}-%{release} Obsoletes: MySQL-python-debug < 1.3.6-4 -Provides: python-mysql-debug = %{version}-%{release} -Obsoletes: python-mysql-debug < 1.3.7-2 +%{?python_provide:%python_provide python2-mysql-debug} %description -n python2-mysql-debug Python interface to MySQL, built for the CPython debug runtime @@ -66,6 +64,7 @@ Python interface to MySQL, built for the CPython debug runtime Summary: An interface to MySQL Provides: MySQL-python3 = %{version}-%{release} Obsoletes: MySQL-python3 < 1.3.6-4 +%{?python_provide:%python_provide python3-mysql} %description -n python3-mysql %_description @@ -76,6 +75,7 @@ Summary: An interface to MySQL, built for the CPython debug runtime Requires: python3-mysql%{_isa} = %{version}-%{release} Provides: MySQL-python3-debug = %{version}-%{release} Obsoletes: MySQL-python3-debug < 1.3.6-4 +%{?python_provide:%python_provide python3-mysql-debug} %description -n python3-mysql-debug Python3 interface to MySQL, built for the CPython debug runtime