diff options
author | Marian Csontos <mcsontos@redhat.com> | 2022-06-15 11:53:51 +0200 |
---|---|---|
committer | Marian Csontos <mcsontos@redhat.com> | 2022-06-15 11:53:51 +0200 |
commit | e60d7ce8e748cb6d51552879c162d01aafa17160 (patch) | |
tree | 5e6e026918ae4e05fae50c8bd4cfdd7cbae5ea46 | |
parent | e36b180a6983c4fa07d6714a0bf81e6935487359 (diff) | |
download | lvm2-e60d7ce8e748cb6d51552879c162d01aafa17160.tar.gz |
build: Fix make rpm with VERSION_DM without dash
When building RPM from a branch based on a release tag the expected -git
suffix is missing breaking the script producing error like following one:
error: line 215: Unterminated rich dependency: (2021-53.ge36b180a6.el9: Requires: device-mapper-devel >= 1.02.181 (2021-53.ge36b180a6.el9
-rw-r--r-- | Makefile.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in index 3b7e0ecaa..f7a46269a 100644 --- a/Makefile.in +++ b/Makefile.in @@ -110,7 +110,7 @@ rpm: dist $(LN_S) -f $(abs_top_srcdir)/spec/build.inc $(rpmbuilddir)/SOURCES $(LN_S) -f $(abs_top_srcdir)/spec/macros.inc $(rpmbuilddir)/SOURCES $(LN_S) -f $(abs_top_srcdir)/spec/packages.inc $(rpmbuilddir)/SOURCES - DM_VER=$$(cut -d- -f1 $(top_srcdir)/VERSION_DM);\ + DM_VER=$$(cut -d' ' -f1 $(top_srcdir)/VERSION_DM | cut -d- -f1);\ GIT_VER=$$(cd $(top_srcdir); git describe | cut -d- --output-delimiter=. -f2,3 || echo 0);\ $(SED) -e "s,\(device_mapper_version\) [0-9.]*$$,\1 $$DM_VER," \ -e "s,^\(Version:[^0-9%]*\)[0-9.]*$$,\1 $(LVM_VER)," \ |