From 4b7a7b5c5b2e987ebf07337e04e02cfe19052923 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Mon, 19 Oct 2020 14:16:40 +0200 Subject: [PATCH] - 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) -- 2.44.0