#1 Use correct name for the connector package
Merged 3 years ago by fab. Opened 3 years ago by hhorak.
rpms/ hhorak/python-mysqlclient mysql-dep  into  master

file modified
+5 -2
@@ -3,7 +3,7 @@ 

  

  Name:           python-%{pypi_name}

  Version:        2.0.0

- Release:        1%{?dist}

+ Release:        2%{?dist}

  Summary:        MySQL/mariaDB database connector for Python

  

  License:        GPLv2
@@ -11,7 +11,7 @@ 

  Source0:        %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz

  

  BuildRequires:  gcc

- BuildRequires:  mysql-devel

+ BuildRequires:  mariadb-connector-c-devel

  

  %description

  MySQLdb is an interface to the popular MySQL database server that provides
@@ -67,6 +67,9 @@ 

  %license LICENSE

  

  %changelog

+ * Mon Jan 25 2021 Honza Horak <hhorak@redhat.com> - 2.0.0-2

+ - Use correct name for the connector package

+ 

  * Wed Sep 16 2020 Fabian Affolter <mail@fabian-affolter.ch> - 2.0.0-1

  - Update to latest upstream release 2.0.0

  

MariaDB and MySQL diverged quite a lot already, we should include explicit package names.
The package mysql-devel does not exist for a long time and it can eventually lead to build issues.
Instead of mysql-devel, mariadb-connector-c-devel is the package that is actually needed by this component for build, so let's make it clear in the spec file.

A scratch build with this change:
https://koji.fedoraproject.org/koji/taskinfo?taskID=60470005

Pull-Request has been merged by fab

3 years ago