diff --git a/_service b/_service
index e9f40dd..1375197 100644
--- a/_service
+++ b/_service
@@ -5,8 +5,8 @@
no
.git
suse-hpc
- 0.4.%h
- 5023230a033b870c3e343ffcd1a386b15ff70a01
+ 0.5.%cd.%h
+ 07cc46c5ab791219e5971581868fd20b7d661d32
general/dlinfo.c
general/macros.hpc
general/hpc_elf.pl
@@ -17,4 +17,7 @@
suse-hpc*.tar
gz
+
+ suse-hpc
+
diff --git a/macros.hpc b/macros.hpc
index b115cae..c24f3c5 100644
--- a/macros.hpc
+++ b/macros.hpc
@@ -498,7 +498,7 @@ When this package gets updated it installs the latest version of %name. \
# same for non-singlespec (using internal %%_hpc_python3)
%hpc_python_sitearch_no_singlespec %{_hpc_python_sysconfig_path %{?_hpc_python3:/usr/bin/python3}%{!?_hpc_python3:%{expand:%__%{python_flavor}}} platlib %{?hpc_prefix}}
-%_hpc_python_ver() %(%1 -c "import sys as s;print(s.version[:3]);")
+%_hpc_python_ver() %(%1 -c "import sysconfig as s; print(s.get_config_var('py_version_short'));")
# get the (abbreviated) python version used for package and directory names (singlespec).
%hpc_python_version %{_hpc_python_ver %{expand:%__%{python_flavor}}}
diff --git a/suse-hpc.changes b/suse-hpc.changes
index 6e47ef7..e41943a 100644
--- a/suse-hpc.changes
+++ b/suse-hpc.changes
@@ -1,3 +1,10 @@
+-------------------------------------------------------------------
+Wed Jan 5 16:00:53 UTC 2022 - Ben Greiner
+
+- Update to version 0.5.20211210.07cc46c
+ * support python 3.10 version string (#8)
+- Update _service to save git date and hash to version
+
-------------------------------------------------------------------
Sat Oct 23 09:08:29 UTC 2021 - Egbert Eich
diff --git a/suse-hpc.spec b/suse-hpc.spec
index a97c124..06981e3 100644
--- a/suse-hpc.spec
+++ b/suse-hpc.spec
@@ -1,7 +1,7 @@
#
# spec file for package suse-hpc
#
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -20,7 +20,7 @@ Summary: SUSE HPC Environment
License: BSD-3-Clause
Group: Productivity/Clustering/Computing
Name: suse-hpc
-Version: 0.5
+Version: 0.5.20211210.07cc46c
Release: 0
Source0: macros.hpc
Source1: dlinfo.c