Skip to content
Snippets Groups Projects
Commit 7b047062 authored by Sulverus's avatar Sulverus
Browse files

Old build system rpm spec compatibility

parent 18b0e221
No related branches found
No related tags found
No related merge requests found
......@@ -13,9 +13,9 @@
%global __debug_install_post %{nil}
%global __debug_package %{nil}
%global build_version %(git describe --long | sed "s/[0-9]*\.[0-9]*\.[0-9]*-//" | sed "s/-[a-z 0-9]*//")
%global git_hash %(git describe --long | sed "s/.*-//")
%global prod_version %(git describe --long | sed "s/-[0-9]*-.*//")
%global build_version %(([ -f VERSION ] && cat VERSION || git describe --long) | sed "s/[0-9]*\.[0-9]*\.[0-9]*-//" | sed "s/-[a-z 0-9]*//")
%global git_hash %(([ -f VERSION ] && cat VERSION || git describe --long) | sed "s/.*-//")
%global prod_version %(([ -f VERSION ] && cat VERSION || git describe --long) | sed "s/-[0-9]*-.*//")
%if (0%{?fedora} >= 15 || 0%{?rhel} >= 7) && %{undefined _with_systemd}
%global _with_systemd 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment