Add hotfix to move /usr/pyodbc.pyi to /usr/lib64/python3.X/site-packages/pyodbc.pyi as originally intended
This commit is contained in:
parent
6660747362
commit
2f10c636ab
12
pyodbc.spec
12
pyodbc.spec
@ -1,7 +1,7 @@
|
||||
Name: pyodbc
|
||||
Version: 5.0.0~b1
|
||||
%global uversion 5.0.0b1
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Python DB API 2.0 Module for ODBC
|
||||
License: MIT
|
||||
URL: https://github.com/mkleehammer/pyodbc
|
||||
@ -52,14 +52,22 @@ echo 'Version: %{uversion}' > PKG-INFO
|
||||
%install
|
||||
%pyproject_install
|
||||
|
||||
# Hotfix - move pyodbc.pyi from %%{_usr} dir to %%{python3_sitearch}
|
||||
# Upstream changes of setup.py:
|
||||
# https://github.com/mkleehammer/pyodbc/blob/5.0.0b1/setup.py#L55
|
||||
mv %{buildroot}%{_usr}/pyodbc.pyi %{buildroot}%{python3_sitearch}/pyodbc.pyi
|
||||
|
||||
%files -n python3-%{name}
|
||||
%license LICENSE.txt
|
||||
%doc README.md notes.txt
|
||||
%{python3_sitearch}/%{name}%{python3_ext_suffix}
|
||||
%{python3_sitearch}/%{name}-%{uversion}.dist-info/
|
||||
%{_usr}/pyodbc.pyi
|
||||
%{python3_sitearch}/%{name}.pyi
|
||||
|
||||
%changelog
|
||||
* 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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user