fix(copr): fix dms-git fedora copr packaging format

Fixes #3059
Port 1.5

(cherry picked from commit 6f1bcfd2c2)
This commit is contained in:
purian23
2026-08-14 20:45:59 +00:00
committed by dms-ci[bot]
parent 62d0484af7
commit fb183eae2c
+13 -1
View File
@@ -1,7 +1,19 @@
# Spec for DMS - uses rpkg macros for git builds
%global debug_package %{nil}
%global version {{{ git_repo_version }}}
%global version {{{
set -e
if [ "$(git rev-parse --is-shallow-repository)" = "true" ]; then
git fetch --unshallow --quiet
fi
if [ "$(git rev-parse --is-shallow-repository)" = "true" ]; then
echo "clone is still shallow; refusing a truncated commit count" >&2
exit 1
fi
printf '0.0.git.%s.%s\n' \
"$(git rev-list --count HEAD)" \
"$(git rev-parse --short=8 HEAD)"
}}}
%global pkg_summary DankMaterialShell - Material 3 inspired shell for Wayland compositors
%global go_toolchain_version 1.26.1