diff --git a/c4project.spec b/c4project.spec index cdfb3f7..5f48dcb 100644 --- a/c4project.spec +++ b/c4project.spec @@ -5,7 +5,7 @@ Name: c4project Summary: Useful CMake scripts # This project has never been assigned a version. The author really intends it # for use as a git submodule rather than for system-wide installation. -Version: 0^%{snapdate}git%(echo '%{commit}' | cut -b -7) +Version: 0^%{snapdate}git%(c='%{commit}'; echo "${c:0:7}") Release: %autorelease URL: https://github.com/biojppm/cmake