Hello community, here is the log from the commit of package vala-panel-extras for openSUSE:Factory checked in at 2018-05-11 14:34:56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/vala-panel-extras (Old) and /work/SRC/openSUSE:Factory/.vala-panel-extras.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "vala-panel-extras" Fri May 11 14:34:56 2018 rev:6 rq:603127 version:0.1.8 Changes: -------- --- /work/SRC/openSUSE:Factory/vala-panel-extras/vala-panel-extras.changes 2017-05-03 15:54:02.662871937 +0200 +++ /work/SRC/openSUSE:Factory/.vala-panel-extras.new/vala-panel-extras.changes 2018-05-11 14:35:10.197061961 +0200 @@ -1,0 +2,20 @@ +Wed May 2 07:33:34 UTC 2018 - [email protected] + +- Update to version 0.1.8: + + Volume applet got beep on change volume. +- Changes from version 0.1.7: + + Even more fixes for vala 0.36. +- Changes from version 0.1.6: + + Fixes for vala 0.36. +- Add pkgconfig(libcanberra-gtk3) BuildRequires: New dependency. +- Drop vala-panel-extras-0.1.4-vala-0.36.patch: Fixed upstream. +- Add vala040-fixup-warnings.patch: Fix warnings with vala 0.40. +- Add Fix-build-new-libgweather.patch: Fix build with new + libgweather. +- Drop no longer needed post(un) handling of + glib2_gsettings_schema_post(un). +- Run spec-cleaner, modernize spec. +- Add fdupes BuildRequires and pass fdupes macro, remove duplicates + and silence rpmlint. + +------------------------------------------------------------------- Old: ---- vala-panel-extras-0.1.4-vala-0.36.patch vala-panel-extras-0.1.5.tar.gz New: ---- Fix-build-new-libgweather.patch vala-panel-extras-0.1.8.tar.gz vala040-fixup-warnings.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ vala-panel-extras.spec ++++++ --- /var/tmp/diff_new_pack.IGdv5r/_old 2018-05-11 14:35:11.205025343 +0200 +++ /var/tmp/diff_new_pack.IGdv5r/_new 2018-05-11 14:35:11.209025197 +0200 @@ -1,7 +1,7 @@ # # spec file for package vala-panel-extras # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,16 +17,20 @@ Name: vala-panel-extras -Version: 0.1.5 +Version: 0.1.8 Release: 0 Summary: Vala Panel Extras are applets for StatusNotifierItem -License: LGPL-3.0+ +License: LGPL-3.0-or-later Group: System/GUI/Other -Url: https://github.com/rilian-la-te/vala-panel-extras +URL: https://github.com/rilian-la-te/vala-panel-extras Source: https://github.com/rilian-la-te/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz -# PATCH-FIX-UPSTREAM vala-panel-extras-0.1.4-vala-0.36.patch -- Fix build with Vala 0.36 and newer. -Patch0: vala-panel-extras-0.1.4-vala-0.36.patch -BuildRequires: cmake >= 2.8 +# PATCH-FIX-UPSTREAM vala040-fixup-warnings.patch -- Fix warnings with vala 0.40 +Patch0: vala040-fixup-warnings.patch +# PATCH-FIX-UPSTREAM Fix-build-new-libgweather.patch -- Fix build with new libgweather +Patch1: Fix-build-new-libgweather.patch + +BuildRequires: cmake >= 3.6 +BuildRequires: fdupes BuildRequires: gettext BuildRequires: pkgconfig BuildRequires: vala >= 0.24 @@ -34,6 +38,7 @@ BuildRequires: pkgconfig(gdk-x11-3.0) BuildRequires: pkgconfig(gtk+-3.0) >= 3.16 BuildRequires: pkgconfig(gweather-3.0) +BuildRequires: pkgconfig(libcanberra-gtk3) BuildRequires: pkgconfig(libgtop-2.0) BuildRequires: pkgconfig(x11-xcb) BuildRequires: pkgconfig(xcb-xkb) @@ -118,8 +123,7 @@ StatusNotifierItem. %prep -%setup -q -%patch0 -p1 +%autosetup -p1 %build %cmake \ @@ -129,77 +133,48 @@ %install %cmake_install %find_lang %{name} - -%post battery -%glib2_gsettings_schema_post - -%postun battery -%glib2_gsettings_schema_postun - -%post gtop -%glib2_gsettings_schema_post - -%postun gtop -%glib2_gsettings_schema_postun - -%post volume -%glib2_gsettings_schema_post - -%postun volume -%glib2_gsettings_schema_postun - -%post weather -%glib2_gsettings_schema_post - -%postun weather -%glib2_gsettings_schema_postun - -%post xkb -%glib2_gsettings_schema_post - -%postun xkb -%glib2_gsettings_schema_postun +%fdupes %{buildroot}%{_prefix} %files lang -f %{name}.lang -%defattr(-,root,root) %files battery -%defattr(-,root,root) +%license LICENSE %doc README.md %{_bindir}/%{name}-battery %{_datadir}/glib-2.0/schemas/org.valapanel.battery.gschema.xml %{_datadir}/applications/org.valapanel.battery.desktop %files gtop -%defattr(-,root,root) +%license LICENSE %doc README.md %{_bindir}/%{name}-gtop %{_datadir}/glib-2.0/schemas/org.valapanel.gtop.gschema.xml %{_datadir}/applications/org.valapanel.gtop.desktop %files volume -%defattr(-,root,root) +%license LICENSE %doc README.md %{_bindir}/%{name}-volume %{_datadir}/glib-2.0/schemas/org.valapanel.volume.gschema.xml %{_datadir}/applications/org.valapanel.volume.desktop %files weather -%defattr(-,root,root) +%license LICENSE %doc README.md %{_bindir}/%{name}-weather %{_datadir}/glib-2.0/schemas/org.valapanel.weather.gschema.xml %{_datadir}/applications/org.valapanel.weather.desktop %files xkb -%defattr(-,root,root) +%license LICENSE %doc README.md %{_bindir}/%{name}-xkb %{_datadir}/glib-2.0/schemas/org.valapanel.xkb.gschema.xml %{_datadir}/applications/org.valapanel.xkb.desktop %files xkb-flags -%defattr(-,root,root) +%license LICENSE +%doc README.md %{_datadir}/%{name}/ %changelog ++++++ Fix-build-new-libgweather.patch ++++++ >From e1c49157dcbadf30240675ec4aa5698870be7307 Mon Sep 17 00:00:00 2001 From: Konstantin <[email protected]> Date: Sat, 17 Mar 2018 00:56:17 +0300 Subject: [PATCH] Weather: build with new GWeather. Fixes #17 --- applets/CMakeLists.txt | 3 +++ applets/weather/CMakeLists.txt | 1 + applets/weather/weather.vala | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/applets/CMakeLists.txt b/applets/CMakeLists.txt index fc28a27..53b9c12 100644 --- a/applets/CMakeLists.txt +++ b/applets/CMakeLists.txt @@ -21,6 +21,9 @@ endif() pkg_check_modules(GWEATHER gweather-3.0 IMPORTED_TARGET) cmake_dependent_option(ENABLE_WEATHER "Enable weather applet" ON "GWEATHER_FOUND" OFF) if (ENABLE_WEATHER) + if(GWEATHER_VERSION VERSION_GREATER 3.27.1) + set(WEATHER_DEFINE -D GWEATHER_3_28) + endif() add_subdirectory(weather) endif() diff --git a/applets/weather/CMakeLists.txt b/applets/weather/CMakeLists.txt index c17f3ad..2ce8d6b 100644 --- a/applets/weather/CMakeLists.txt +++ b/applets/weather/CMakeLists.txt @@ -17,6 +17,7 @@ OPTIONS --target-glib=2.50 --gresources=${CMAKE_CURRENT_SOURCE_DIR}/${PLUGIN_NAME}.gresource.xml --thread + ${WEATHER_DEFINE} ) ##### # Plugin Library diff --git a/applets/weather/weather.vala b/applets/weather/weather.vala index 614cd31..36eee93 100644 --- a/applets/weather/weather.vala +++ b/applets/weather/weather.vala @@ -53,7 +53,11 @@ namespace Weather settings.changed.connect(on_settings_changed); settings.bind(SHOW_LABEL,this,SHOW_LABEL,SettingsBindFlags.GET); app.preferences = create_preferences_dialog; + #if GWEATHER_3_28 + info = new GWeather.Info(null); + #else info = new GWeather.Info(null,GWeather.ForecastType.LIST); + #endif info.enabled_providers = GWeather.Provider.ALL; info.updated.connect(info_updated); var gnome_settings = new GLib.Settings("org.gnome.GWeather"); ++++++ vala-panel-extras-0.1.5.tar.gz -> vala-panel-extras-0.1.8.tar.gz ++++++ ++++ 4115 lines of diff (skipped) ++++++ vala040-fixup-warnings.patch ++++++ >From 4998f0a29145670a2fe749881e887811235f59be Mon Sep 17 00:00:00 2001 From: Konstantin <[email protected]> Date: Mon, 26 Mar 2018 22:20:09 +0300 Subject: [PATCH] Extras: fix Vala 0.40 warnings. --- lib/watcheriface.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/watcheriface.vala b/lib/watcheriface.vala index 9cbb76b..4c422d8 100644 --- a/lib/watcheriface.vala +++ b/lib/watcheriface.vala @@ -16,7 +16,7 @@ namespace StatusNotifier public abstract int protocol_version {get;} /* Public methods */ - public abstract void register_status_notifier_item(string service) throws IOError; - public abstract void register_status_notifier_host(string service) throws IOError; + public abstract void register_status_notifier_item(string service) throws Error; + public abstract void register_status_notifier_host(string service) throws Error; } }
