From 47eef3b892cfedf976eaee7b2dc3b94eacfc26d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Janu=C5=A1?= Date: Fri, 2 Oct 2020 13:44:41 +0200 Subject: [PATCH] Rebase onto v4.0.30 Add support for reccomendation to install specific database connector --- .gitignore | 1 + pyodbc.spec | 13 +++++++++++-- sources | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 5b2ff3a..06c8406 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ pyodbc-2.1.5.zip /pyodbc-3.0.7.zip /pyodbc-3.0.10.tar.gz /pyodbc-4.0.27.tar.gz +/pyodbc-4.0.30.tar.gz diff --git a/pyodbc.spec b/pyodbc.spec index eeda04d..94895b2 100644 --- a/pyodbc.spec +++ b/pyodbc.spec @@ -1,8 +1,8 @@ %global modulename pyodbc Name: pyodbc -Version: 4.0.27 -Release: 2%{?dist} +Version: 4.0.30 +Release: 1%{?dist} Summary: Python DB API 2.0 Module for ODBC License: MIT URL: https://github.com/mkleehammer/pyodbc @@ -11,6 +11,9 @@ BuildRequires: gcc-c++ BuildRequires: unixODBC-devel BuildRequires: python3-devel +Recommends: (postgresql-odbc if postgresql-server) +Recommends: (mariadb-connector-odbc if mariadb-server) + %global _description\ A Python DB API 2 and 3 module for ODBC. This project provides an up-to-date,\ convenient interface to ODBC using native data types like datetime and\ @@ -21,6 +24,8 @@ decimal. %package -n python3-%{modulename} Summary: Python DB API 2.0 Module for ODBC %{?python_provide:%python_provide python3-%{modulename}} +Recommends: (mariadb-connector-odbc if mariadb-server) +Recommends: (postgresql-odbc if postgresql-server) %description -n python3-%{modulename} A Python DB API 2 and 3 module for ODBC. This project provides an up-to-date, @@ -43,6 +48,10 @@ decimal. %{python3_sitearch}/* %changelog +* Fri Oct 2 2020 Filip Janus - 4.0.30-1 +- Upstream released 4.0.30 +- Add Recommendation to install database connector + * Thu Jan 30 2020 Fedora Release Engineering - 4.0.27-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild diff --git a/sources b/sources index 2b83a8b..732d4e9 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pyodbc-4.0.27.tar.gz) = 40ef8e08509dcebc3684a7fddba6f2ca7e835dda8658f0680c7254a641f47731db140e4fec6fff746ca08d3ea82252fc5b976a008f7553e43fce66116a6fc894 +SHA512 (pyodbc-4.0.30.tar.gz) = 022f7f06f4c8e9e15813778e242e1bf130412660805df21c7c90bf94c8af574767c3621ada38d202149c7f01d6ecb6336ef08aa925926620dd1a23341608e9f7