diff --git a/sha512toc.spec.template b/sha512toc.spec.template
index 12ebd4360e362b8640b60ed57899e729d4e44b9a..252deaf6e38b2e80518a994d34a4abdbf7e13084 100644
--- a/sha512toc.spec.template
+++ b/sha512toc.spec.template
@@ -1,5 +1,5 @@
 Name:           sha512toc
-Version:        __sha512TOC_VERSION__
+Version:        __SHA512TOC_VERSION__
 Release:        1
 Summary:        A simple utility to create a TOC of a directory
 License:        GPLv3