From bee51a6eb1b4e97ac3f64f228d3bac19f6b5865c Mon Sep 17 00:00:00 2001 From: Gris Ge Date: Fri, 21 Jul 2023 21:33:52 +0800 Subject: [PATCH] Fix build failure on incorrect Makefile version Signed-off-by: Gris Ge --- 0001-Makefile-Fix-version-1.2.12.patch | 37 ++++++++++++++++++++++++++ nispor.spec | 1 + 2 files changed, 38 insertions(+) create mode 100644 0001-Makefile-Fix-version-1.2.12.patch diff --git a/0001-Makefile-Fix-version-1.2.12.patch b/0001-Makefile-Fix-version-1.2.12.patch new file mode 100644 index 0000000..ce772d4 --- /dev/null +++ b/0001-Makefile-Fix-version-1.2.12.patch @@ -0,0 +1,37 @@ +From 06bcfbceaff833478afd5a9d0ec0afa3dd70137c Mon Sep 17 00:00:00 2001 +From: Gris Ge +Date: Fri, 21 Jul 2023 21:32:35 +0800 +Subject: [PATCH] Makefile: Fix version 1.2.12 + +Signed-off-by: Gris Ge +--- + Makefile.inc | 2 +- + src/python/setup.py | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/Makefile.inc b/Makefile.inc +index 94766c6..4dfbcd1 100644 +--- a/Makefile.inc ++++ b/Makefile.inc +@@ -1,4 +1,4 @@ +-CLIB_VERSION=1.2.11 ++CLIB_VERSION=1.2.12 + CLIB_VERSION_MAJOR=$(shell echo $(CLIB_VERSION) | cut -f1 -d.) + CLIB_VERSION_MINOR=$(shell echo $(CLIB_VERSION) | cut -f2 -d.) + CLIB_VERSION_MICRO=$(shell echo $(CLIB_VERSION) | cut -f3 -d.) +diff --git a/src/python/setup.py b/src/python/setup.py +index c3d4356..f51ca67 100644 +--- a/src/python/setup.py ++++ b/src/python/setup.py +@@ -4,7 +4,7 @@ import setuptools + + setuptools.setup( + name="nispor", +- version="1.2.11", ++ version="1.2.12", + author="Gris Ge", + author_email="fge@redhat.com", + description="Python binding of Nispor", +-- +2.41.0 + diff --git a/nispor.spec b/nispor.spec index ff7e22c..d914d8a 100644 --- a/nispor.spec +++ b/nispor.spec @@ -9,6 +9,7 @@ License: ASL 2.0 URL: https://github.com/nispor/nispor Source: https://github.com/nispor/nispor/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source1: https://github.com/nispor/nispor/releases/download/v%{version}/nispor-vendor-%{version}.tar.xz +Patch1: 0001-Makefile-Fix-version-1.2.12.patch BuildRequires: make BuildRequires: pkg-config BuildRequires: python3-devel