diff --git a/python313.changes b/python313.changes index 47e750a..027ebdf 100644 --- a/python313.changes +++ b/python313.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu May 9 12:29:28 UTC 2024 - Matej Cepl + +- Use proper version name including tilda to separate pre-release + version. + https://en.opensuse.org/openSUSE:Package_versioning_guidelines + ------------------------------------------------------------------- Thu May 9 08:18:00 UTC 2024 - Daniel Garcia diff --git a/python313.spec b/python313.spec index a38d41f..da523bc 100644 --- a/python313.spec +++ b/python313.spec @@ -61,22 +61,21 @@ # %%endif # Setting up variables -%define _version %(c=%{version}; echo ${c/[a-z]*/}) +%define _version %(c=%{version}; echo ${c/[a-z~]*/}) %define tar_suffix %(c=%{_version}; echo ${c#%{_version}}) %define python_version %(echo %{_version}|cut -d. -f1-2) # based on the current source tarball %define python_version_abitag %(c=%{python_version}; echo ${c//./}) # FIXME %%define python_version_soname %%(c=%%{python_version}; echo ${c//./_}) %define python_version_soname 3_13 -%if 0%(test -n "%{tar_suffix}" && echo 1) -%define _version %(echo "%{_version}~%{tar_suffix}") -%define tarversion %{version} -%else -%define tarversion %{version} -%endif +# %%if 0%%(test -n "%%{tar_suffix}" && echo 1) +# %%define _version %%(echo "%%{_version}~%%{tar_suffix}") +# %%define tarversion %%{version} +# %%else +# %%define tarversion %%{version} +# %%endif # We don't process beta signs well %define folderversion 3.13.0 -%define tarname Python-%{tarversion} %define sitedir %{_libdir}/python%{python_version} # three possible ABI kinds: m - pymalloc, d - debug build; see PEP 3149 %define abi_kind %{nil} @@ -111,7 +110,9 @@ %define dynlib() %{sitedir}/lib-dynload/%{1}.cpython-%{abi_tag}-%{archname}-%{_os}%{?_gnu}%{?armsuffix}.so %bcond_without profileopt Name: %{python_pkg_name}%{psuffix} -Version: 3.13.0b1 +Version: 3.13.0~b1 +%define tarversion 3.13.0b1 +%define tarname Python-%{tarversion} Release: 0 Summary: Python 3 Interpreter License: Python-2.0