]> git.pld-linux.org Git - packages/rpm-specdump.git/commitdiff
- fix RPM_*_VERSION variables
authorJan Rękorajski <baggins@pld-linux.org>
Mon, 19 Oct 2020 12:16:40 +0000 (14:16 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Mon, 19 Oct 2020 12:16:40 +0000 (14:16 +0200)
Makefile

index bcf63f11501763ca3f732d102664398d9f4c84e2..08c5f27b0d8316d9e943bb7f3fde459d6e2acfa1 100644 (file)
--- 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)
This page took 0.114869 seconds and 4 git commands to generate.