From 34e885019a306c7e32f1a836dbc19da54dd20946c4055cf4fa2939aa2e3d1539 Mon Sep 17 00:00:00 2001 From: Atri Bhattacharya Date: Fri, 28 Mar 2025 19:24:05 +0530 Subject: [PATCH] Add SDL2_gfx-correct-pkgconfig-version.patch. This patch fixes the project version in the autoconf files and consequently in the installed pkgconfig file. --- SDL2_gfx-correct-pkgconfig-version.patch | 21 +++++++++++++++++++++ SDL2_gfx.changes | 7 +++++++ SDL2_gfx.spec | 6 +++++- 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 SDL2_gfx-correct-pkgconfig-version.patch diff --git a/SDL2_gfx-correct-pkgconfig-version.patch b/SDL2_gfx-correct-pkgconfig-version.patch new file mode 100644 index 0000000..8b688ce --- /dev/null +++ b/SDL2_gfx-correct-pkgconfig-version.patch @@ -0,0 +1,21 @@ +--- + configure.in | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +Index: SDL2_gfx-1.0.4/configure.in +=================================================================== +--- SDL2_gfx-1.0.4.orig/configure.in ++++ SDL2_gfx-1.0.4/configure.in +@@ -13,9 +13,9 @@ dnl Set various version strings - taken + + MAJOR_VERSION=1 + MINOR_VERSION=0 +-MICRO_VERSION=2 +-INTERFACE_AGE=2 +-BINARY_AGE=2 ++MICRO_VERSION=4 ++INTERFACE_AGE=4 ++BINARY_AGE=4 + VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION + + AC_SUBST(MAJOR_VERSION) diff --git a/SDL2_gfx.changes b/SDL2_gfx.changes index ff9224b..7a6ddbb 100644 --- a/SDL2_gfx.changes +++ b/SDL2_gfx.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Mar 28 13:51:54 UTC 2025 - Atri Bhattacharya + +- Add SDL2_gfx-correct-pkgconfig-version.patch to fix version + tag in project autoconf files and consequently in the installed + pkgconfig file. + ------------------------------------------------------------------- Wed Aug 11 11:20:30 UTC 2021 - Jan Engelhardt diff --git a/SDL2_gfx.spec b/SDL2_gfx.spec index 37bbdfb..897ac0d 100644 --- a/SDL2_gfx.spec +++ b/SDL2_gfx.spec @@ -29,7 +29,10 @@ Source2: https://downloads.sf.net/sdl2gfx/%name-%version.tar.gz.asc Source3: baselibs.conf # Key: 231D4B58E1DDB871, http://www.ferzkopp.net/wordpress/2016/01/02/sdl_gfx-sdl2_gfx/#comment-89 Source4: %name.keyring +# PATCH-FIX-UPSTREAM SDL2_gfx-correct-pkgconfig-version.patch badshah4002gmail.com -- Fix version tag in pkgconfig file +Patch0: SDL2_gfx-correct-pkgconfig-version.patch BuildRequires: dos2unix +BuildRequires: libtool BuildRequires: pkg-config BuildRequires: pkgconfig(sdl2) @@ -54,9 +57,10 @@ Provides: SDL2_gfx-devel = %version-%release Library containing 20+ graphics primitives (line, box, circle, polygon, etc.) for SDL2. %prep -%setup -q +%autosetup -p1 %build +./autogen.sh %configure \ %ifnarch x86_64 --disable-mmx \ -- 2.49.0