Make the RPM version sort correctly, this is a pre-release
This commit is contained in:
parent
1b25110f2a
commit
6660747362
13
pyodbc.spec
13
pyodbc.spec
@ -1,10 +1,11 @@
|
||||
Name: pyodbc
|
||||
Version: 5.0.0b1
|
||||
Version: 5.0.0~b1
|
||||
%global uversion 5.0.0b1
|
||||
Release: 1%{?dist}
|
||||
Summary: Python DB API 2.0 Module for ODBC
|
||||
License: MIT
|
||||
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/%{uversion}.tar.gz#/%{name}-%{uversion}.tar.gz
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: unixODBC-devel
|
||||
BuildRequires: python3-devel
|
||||
@ -32,13 +33,13 @@ convenient interface to ODBC using native data types like datetime and
|
||||
decimal.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{version} -p1
|
||||
%autosetup -n %{name}-%{uversion} -p1
|
||||
|
||||
# the setup.py script tries to determine the version of the package by
|
||||
# - git describe (which does not work in github tarball)
|
||||
# - parsing PKG-INFO (which is onyl included in sdist)
|
||||
# Let's help it:
|
||||
echo 'Version: %{version}' > PKG-INFO
|
||||
echo 'Version: %{uversion}' > PKG-INFO
|
||||
# (If the logic and/or parser in setup.py is changed, this might not work,
|
||||
# but the exact .egg-info filename in %%files works as a regression test.)
|
||||
|
||||
@ -55,11 +56,11 @@ echo 'Version: %{version}' > PKG-INFO
|
||||
%license LICENSE.txt
|
||||
%doc README.md notes.txt
|
||||
%{python3_sitearch}/%{name}%{python3_ext_suffix}
|
||||
%{python3_sitearch}/%{name}-%{version}.dist-info/
|
||||
%{python3_sitearch}/%{name}-%{uversion}.dist-info/
|
||||
%{_usr}/pyodbc.pyi
|
||||
|
||||
%changelog
|
||||
* Mon Aug 28 2023 Ondřej Sloup <osloup@redhat.com> - 5.0.0b1-1
|
||||
* 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