diff --git a/.gitignore b/.gitignore index 5391be5..40f90a3 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/pyodbc-4.0.30.tar.gz +pyodbc-5.1.0.tar.gz diff --git a/.pyodbc.metadata b/.pyodbc.metadata deleted file mode 100644 index df52def..0000000 --- a/.pyodbc.metadata +++ /dev/null @@ -1 +0,0 @@ -65d171c5e14eb563e8fdc97ea0cf80ca8f8fbd15 SOURCES/pyodbc-4.0.30.tar.gz diff --git a/SPECS/pyodbc.spec b/pyodbc.spec similarity index 66% rename from SPECS/pyodbc.spec rename to pyodbc.spec index 6fca865..d440732 100644 --- a/SPECS/pyodbc.spec +++ b/pyodbc.spec @@ -1,15 +1,14 @@ -%global modulename pyodbc - Name: pyodbc -Version: 4.0.30 -Release: 2%{?dist} +Version: 5.1.0 +Release: 3%{?dist} Summary: Python DB API 2.0 Module for ODBC -License: MIT +License: MIT-0 URL: https://github.com/mkleehammer/pyodbc Source0: https://github.com/mkleehammer/pyodbc/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: gcc-c++ BuildRequires: unixODBC-devel BuildRequires: python3-devel +BuildRequires: python3-setuptools Recommends: (postgresql-odbc if postgresql-server) Recommends: (mariadb-connector-odbc if mariadb-server) @@ -21,35 +20,109 @@ decimal. %description %_description -%package -n python3-%{modulename} +%package -n python3-%{name} Summary: Python DB API 2.0 Module for ODBC -%{?python_provide:%python_provide python3-%{modulename}} +%{?python_provide:%python_provide python3-%{name}} Recommends: (mariadb-connector-odbc if mariadb-server) Recommends: (postgresql-odbc if postgresql-server) -%description -n python3-%{modulename} +%description -n python3-%{name} 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 decimal. - %prep -%setup -q +%autosetup -n %{name}-%{version} -p1 + +%generate_buildrequires +%pyproject_buildrequires %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install %files -n python3-%{name} %license LICENSE.txt %doc README.md notes.txt -%{python3_sitearch}/* +%{python3_sitearch}/%{name}%{python3_ext_suffix} +%{python3_sitearch}/%{name}-%{version}.dist-info/ +%{python3_sitearch}/%{name}.pyi %changelog -* Fri Nov 27 2020 Filip Janus - 4.0.30-2 -- Enable gating, release bump +* Tue Oct 29 2024 Troy Dawson - 5.1.0-3 +- Bump release for October 2024 mass rebuild: + Resolves: RHEL-64018 + +* Mon Jun 24 2024 Troy Dawson - 5.1.0-2 +- Bump release for June 2024 mass rebuild + +* Tue Feb 6 2024 Ondrej Sloup - 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 - 5.0.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 5.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Oct 15 2023 Ondrej Sloup - 5.0.1-1 +- Rebase to the newest version (Related: rhbz#2244039) + +* Thu Sep 28 2023 Ondrej Sloup - 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 - 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 - 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 - 4.0.39-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Tue Jun 13 2023 Python Maint - 4.0.39-3 +- Rebuilt for Python 3.12 + +* Mon Apr 17 2023 Ondřej Sloup - 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 - 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 - 4.0.30-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 4.0.30-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Tue Jun 28 2022 Ondrej Sloup - 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 - 4.0.30-6 +- Rebuilt for Python 3.11 + +* Fri Jan 21 2022 Fedora Release Engineering - 4.0.30-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 4.0.30-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 04 2021 Python Maint - 4.0.30-3 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 4.0.30-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Oct 2 2020 Filip Janus - 4.0.30-1 - Upstream released 4.0.30 diff --git a/sources b/sources new file mode 100644 index 0000000..96dae67 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (pyodbc-5.1.0.tar.gz) = b5586d398e6803526398c5c1b1a1e07b137357e3257db6d86db5bc6cbaea72257fb132e437b164a6a8c31c549e4c24ce753a7650fe1d10252d17a88798754af5