From a96a85c158238999933db32dfaddf7bc738f13e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=81=AC?= Date: Fri, 13 Dec 2024 10:14:45 +0000 Subject: [PATCH] fix build warnings: patchN is deprecated, use patch N (or %patch -P N) (cherry picked from commit e164237f7bdcbc414a1a45a721edc4b11ca1d945) --- gtksourceview2.spec | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/gtksourceview2.spec b/gtksourceview2.spec index 4b3db33..07f5753 100644 --- a/gtksourceview2.spec +++ b/gtksourceview2.spec @@ -6,7 +6,7 @@ Summary: A library for viewing source files Name: gtksourceview2 Version: 2.11.2 -Release: 1 +Release: 2 License: LGPLv2+ and GPLv2+ # the library itself is LGPL, some .lang files are GPL URL: http://gtksourceview.sourceforge.net/ @@ -46,10 +46,10 @@ applications which use GtkSourceView 2.x. %prep %setup -q -n gtksourceview-%{version} -%patch0 -p1 -b .cflags -%patch1 -p1 -b .gconst -#%%patch2 -p1 -b .addlibs -%patch3 -p1 -b .glib-deprecated +%patch 0 -p1 -b .cflags +%patch 1 -p1 -b .gconst +#%%patch 2 -p1 -b .addlibs +%patch 3 -p1 -b .glib-deprecated # Explictly use gtk+-2.0 sed -i.gtk configure -e '\@gtk+-3.0@s|2.90|9999|' @@ -87,5 +87,8 @@ rm -f $RPM_BUILD_ROOT%{_datadir}/gtksourceview-2.0/language-specs/convert.py %{_datadir}/gir-1.0/GtkSource-2.0.gir %changelog +* Fri Dec 13 2024 litian - 2.11.2-2 +- fix %patchN is deprecated warning + * Wed May 24 2023 wangtaozhi - 2.11.2-1 - Package init -- Gitee