|
|
@ -1,14 +1,15 @@
|
|
|
|
|
|
|
|
%global modulename pyodbc
|
|
|
|
|
|
|
|
|
|
|
|
Name: pyodbc
|
|
|
|
Name: pyodbc
|
|
|
|
Version: 5.1.0
|
|
|
|
Version: 4.0.30
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Release: 4%{?dist}
|
|
|
|
Summary: Python DB API 2.0 Module for ODBC
|
|
|
|
Summary: Python DB API 2.0 Module for ODBC
|
|
|
|
License: MIT-0
|
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/mkleehammer/pyodbc
|
|
|
|
URL: https://github.com/mkleehammer/pyodbc
|
|
|
|
Source0: https://github.com/mkleehammer/pyodbc/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
Source0: https://github.com/mkleehammer/pyodbc/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: unixODBC-devel
|
|
|
|
BuildRequires: unixODBC-devel
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Recommends: (postgresql-odbc if postgresql-server)
|
|
|
|
Recommends: (postgresql-odbc if postgresql-server)
|
|
|
|
Recommends: (mariadb-connector-odbc if mariadb-server)
|
|
|
|
Recommends: (mariadb-connector-odbc if mariadb-server)
|
|
|
@ -20,102 +21,39 @@ decimal.
|
|
|
|
|
|
|
|
|
|
|
|
%description %_description
|
|
|
|
%description %_description
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python3-%{name}
|
|
|
|
%package -n python3-%{modulename}
|
|
|
|
Summary: Python DB API 2.0 Module for ODBC
|
|
|
|
Summary: Python DB API 2.0 Module for ODBC
|
|
|
|
%{?python_provide:%python_provide python3-%{name}}
|
|
|
|
%{?python_provide:%python_provide python3-%{modulename}}
|
|
|
|
Recommends: (mariadb-connector-odbc if mariadb-server)
|
|
|
|
Recommends: (mariadb-connector-odbc if mariadb-server)
|
|
|
|
Recommends: (postgresql-odbc if postgresql-server)
|
|
|
|
Recommends: (postgresql-odbc if postgresql-server)
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python3-%{name}
|
|
|
|
%description -n python3-%{modulename}
|
|
|
|
A Python DB API 2 and 3 module for ODBC. This project provides an up-to-date,
|
|
|
|
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
|
|
|
|
convenient interface to ODBC using native data types like datetime and
|
|
|
|
decimal.
|
|
|
|
decimal.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
|
|
|
%autosetup -n %{name}-%{version} -p1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
%prep
|
|
|
|
%pyproject_buildrequires
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%pyproject_wheel
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%pyproject_install
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-%{name}
|
|
|
|
%files -n python3-%{name}
|
|
|
|
%license LICENSE.txt
|
|
|
|
%license LICENSE.txt
|
|
|
|
%doc README.md notes.txt
|
|
|
|
%doc README.md notes.txt
|
|
|
|
%{python3_sitearch}/%{name}%{python3_ext_suffix}
|
|
|
|
%{python3_sitearch}/*
|
|
|
|
%{python3_sitearch}/%{name}-%{version}.dist-info/
|
|
|
|
|
|
|
|
%{python3_sitearch}/%{name}.pyi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 5.1.0-2
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 4.0.30-4
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
* Tue Feb 6 2024 Ondrej Sloup <osloup@redhat.com> - 5.1.0-1
|
|
|
|
|
|
|
|
- Rebase to the newest version (Related: rhbz#2262845)
|
|
|
|
|
|
|
|
- Update license tag to the SPDX format (MIT-0)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.1-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.1-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Oct 15 2023 Ondrej Sloup <osloup@redhat.com> - 5.0.1-1
|
|
|
|
|
|
|
|
- Rebase to the newest version (Related: rhbz#2244039)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Sep 28 2023 Ondrej Sloup <osloup@redhat.com> - 5.0.0~b4-1
|
|
|
|
|
|
|
|
- Rebase to the newest version, test the beta (Related: rhbz#2235401)
|
|
|
|
|
|
|
|
- Remove the hotfix (move of pyodbc.py) as it is fixed in upstream
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 28 2023 Ondřej Sloup <osloup@redhat.com> - 5.0.0~b1-2
|
|
|
|
|
|
|
|
- Move /usr/pyodbc.pyi to /usr/lib64/python3.X/site-packages/pyodbc.pyi as originally intended
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 28 2023 Ondřej Sloup <osloup@redhat.com> - 5.0.0~b1-1
|
|
|
|
|
|
|
|
- Rebase to the newest version, test the beta (rhbz#2235122)
|
|
|
|
|
|
|
|
- This release drops Python 2 and adds Python 3.12 support
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.39-4
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 4.0.39-3
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Apr 17 2023 Ondřej Sloup <osloup@redhat.com> - 4.0.39-1
|
|
|
|
|
|
|
|
- Rebase to the newest version
|
|
|
|
|
|
|
|
- Remove the PyUnicode_AsUTF8String Patch file, as it is already merged in upstream
|
|
|
|
|
|
|
|
- Change packaged files to match new setup.py requirements
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 25 2023 Miro Hrončok <mhroncok@redhat.com> - 4.0.30-10
|
|
|
|
|
|
|
|
- Fix version in the Python package metadata
|
|
|
|
|
|
|
|
- This makes the package provide python3dist(pyodbc) = 4.0.30 instead of python3dist(pyodbc) = 4.0.0-unsupported
|
|
|
|
|
|
|
|
- This makes the package buildable with python-packaging 22+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.30-9
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.30-8
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jun 28 2022 Ondrej Sloup <osloup@redhat.com> - 4.0.30-7
|
|
|
|
|
|
|
|
- Use autosetup
|
|
|
|
|
|
|
|
- Use name macro
|
|
|
|
|
|
|
|
- Fix pyodbc fails to build with Python 3.11: error: PyUnicode_EncodeUTF8 (#2049428)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 4.0.30-6
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.11
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.30-5
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.30-4
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 4.0.30-3
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 4.0.30-3
|
|
|
|
- Rebuilt for Python 3.10
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.30-2
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.30-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|