[packages/rpm-specdump] - fix RPM_*_VERSION variables

baggins baggins at pld-linux.org
Mon Oct 19 14:17:03 CEST 2020


commit 4b7a7b5c5b2e987ebf07337e04e02cfe19052923
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Oct 19 14:16:40 2020 +0200

    - fix RPM_*_VERSION variables

 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/Makefile b/Makefile
index bcf63f1..08c5f27 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 RPM_FORMAT_VERSION := `pkg-config --modversion rpm | cut -d . -f 1`
-RPM_MAJOR_VERSION := `pkg-config --modversion rpm | cut -d . -f 1`
-RPM_MINOR_VERSION := `pkg-config --modversion rpm | cut -d . -f 1`
+RPM_MAJOR_VERSION := `pkg-config --modversion rpm | cut -d . -f 2`
+RPM_MINOR_VERSION := `pkg-config --modversion rpm | cut -d . -f 3`
 
 CC := gcc
 CFLAGS := -Wall -Wno-unused-result -DRPM_FORMAT_VERSION=$(RPM_FORMAT_VERSION) -DRPM_MAJOR_VERSION=$(RPM_MAJOR_VERSION) -DRPM_MINOR_VERSION=$(RPM_MINOR_VERSION) $(RPMCFLAGS)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-specdump.git/commitdiff/4b7a7b5c5b2e987ebf07337e04e02cfe19052923



More information about the pld-cvs-commit mailing list