diff --git a/libindicator.spec b/libindicator.spec index 11aa243..50c848a 100644 --- a/libindicator.spec +++ b/libindicator.spec @@ -1,6 +1,6 @@ Name: libindicator Version: 12.10.1 -Release: 14 +Release: 15 Summary: Shared functions for Ayatana indicators License: GPLv3 URL: https://launchpad.net/libindicator @@ -9,7 +9,7 @@ BuildRequires: chrpath gtk-doc libtool pkgconfig dbus-glib-devel gtk2-devel gtk3 Requires: pkgconfig Provides: %{name}-tools = %{version}-%{release} Obsoletes: %{name}-tools < %{version}-%{release} - +Patch0001: no-Werror-deprecated.patch %description A set of symbols and convenience functions that all Ayatana indicators are likely to use. @@ -150,5 +150,8 @@ done %changelog +* Mon Jan 13 2020 yanzhihua - 12.10.1-15 +- Fix deprecated error + * Sat Dec 21 2019 zoushuangshuang - 12.10.1-14 - Package init diff --git a/no-Werror-deprecated.patch b/no-Werror-deprecated.patch new file mode 100644 index 0000000..3e92d0f --- /dev/null +++ b/no-Werror-deprecated.patch @@ -0,0 +1,23 @@ +diff -aurN libindicator-12.10.1/libindicator/Makefile.am libindicator-12.10.1-mod/libindicator/Makefile.am +--- libindicator-12.10.1/libindicator/Makefile.am 2012-09-19 17:38:05.113919565 +0200 ++++ libindicator-12.10.1-mod/libindicator/Makefile.am 2019-12-24 12:49:00.616622404 +0100 +@@ -57,7 +57,7 @@ + $(LIBINDICATOR_CFLAGS) \ + $(COVERAGE_CFLAGS) \ + -DG_LOG_DOMAIN=\"libindicator\" \ +- -Wall -Werror ++ -Wall -Wno-deprecated-declarations + + libindicator_la_LIBADD = \ + $(LIBINDICATOR_LIBS) +diff -aurN libindicator-12.10.1/tools/Makefile.am libindicator-12.10.1-mod/tools/Makefile.am +--- libindicator-12.10.1/tools/Makefile.am 2012-09-19 17:38:04.933829559 +0200 ++++ libindicator-12.10.1-mod/tools/Makefile.am 2019-12-24 12:49:56.087444990 +0100 +@@ -17,7 +17,7 @@ + indicator-loader.c + + indicator_loader_CFLAGS = \ +- -Wall -Werror \ ++ -Wall -Wno-deprecated-declarations \ + $(LIBINDICATOR_CFLAGS) -I$(top_srcdir) \ + -DBUILD_DIR="\"$(builddir)\""