Skip to content
Snippets Groups Projects
Commit 454252f3 authored by Sulverus's avatar Sulverus
Browse files

Rpm spec updated with mock rebuild compatibility

parent 7b047062
No related merge requests found
......@@ -13,9 +13,10 @@
%global __debug_install_post %{nil}
%global __debug_package %{nil}
%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]*-.*//")
Source1: VERSION
%global build_version %(( cat %{SOURCE1} || git describe --long) | sed "s/[0-9]*\.[0-9]*\.[0-9]*-//" | sed "s/-[a-z 0-9]*//")
%global git_hash %((cat %{SOURCE1} || git describe --long) | sed "s/.*-//")
%global prod_version %((cat %{SOURCE1} || 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