From 6660747362a130b7f055d021a61275724aa5ef29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 28 Aug 2023 12:49:20 +0200 Subject: [PATCH] Make the RPM version sort correctly, this is a pre-release --- pyodbc.spec | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pyodbc.spec b/pyodbc.spec index 721ebc0..613dbe5 100644 --- a/pyodbc.spec +++ b/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 - 5.0.0b1-1 +* 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