Hello community,

here is the log from the commit of package gnome-pie for openSUSE:Factory 
checked in at 2018-10-08 17:44:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gnome-pie (Old)
 and      /work/SRC/openSUSE:Factory/.gnome-pie.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gnome-pie"

Mon Oct  8 17:44:09 2018 rev:5 rq:639764 version:0.7.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/gnome-pie/gnome-pie.changes      2017-08-24 
18:55:06.026597018 +0200
+++ /work/SRC/openSUSE:Factory/.gnome-pie.new/gnome-pie.changes 2018-10-08 
17:45:57.314443299 +0200
@@ -1,0 +2,13 @@
+Wed Oct  3 10:55:58 UTC 2018 - bjorn....@gmail.com
+
+- Update to version 0.7.1:
+  + Use gdk monitor on wayland if possible.
+- Add gnome-pie-fix-build-vala042.patch: Fix build with vala 0.42.
+  Only apply when vala 0.42.x and newer is present during build.
+- Drop gnome-pie-fix-invalid-chainup.patch: Fixed upstream.
+- Run spec-cleaner, modernize spec.
+- Conditionalize post(un) handling of desktop_database_post(un) and
+  icon_theme_cache_post(un), no longer needed for modern versions
+  of openSUSE.
+
+-------------------------------------------------------------------

Old:
----
  gnome-pie-fix-invalid-chainup.patch
  v0.7.0.tar.gz

New:
----
  gnome-pie-fix-build-vala042.patch
  v0.7.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ gnome-pie.spec ++++++
--- /var/tmp/diff_new_pack.gBE7Li/_old  2018-10-08 17:46:00.782438880 +0200
+++ /var/tmp/diff_new_pack.gBE7Li/_new  2018-10-08 17:46:00.786438874 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package gnome-pie
 #
-# 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
@@ -12,24 +12,25 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 Name:           gnome-pie
-Version:        0.7.0
+Version:        0.7.1
 Release:        0
 Summary:        A circular application launcher for GNOME
-License:        GPL-3.0+
+License:        GPL-3.0-or-later
 Group:          System/GUI/GNOME
-Url:            https://simmesimme.github.io/gnome-pie.html
+URL:            https://simmesimme.github.io/gnome-pie.html
 Source:         
https://github.com/Simmesimme/Gnome-Pie/archive/v%{version}.tar.gz
-# PATCH-FIX-UPSTREAM gnome-pie-fix-invalid-chainup.patch zai...@opensuse.org 
-- Fix invalid chainup discovered by valac 0.35.x
-Patch0:         gnome-pie-fix-invalid-chainup.patch
+# PATCH-FIX-UPSTREAM gnome-pie-fix-build-vala042.patch -- Fix build with vala 
0.42.x
+Patch0:         gnome-pie-fix-build-vala042.patch
+
 BuildRequires:  cmake
 BuildRequires:  fdupes
 BuildRequires:  hicolor-icon-theme
-BuildRequires:  hicolor-icon-theme
+BuildRequires:  pkgconfig
 BuildRequires:  update-desktop-files
 BuildRequires:  vala >= 0.22
 BuildRequires:  pkgconfig(appindicator3-0.1)
@@ -44,7 +45,6 @@
 BuildRequires:  pkgconfig(libxml-2.0)
 BuildRequires:  pkgconfig(x11)
 BuildRequires:  pkgconfig(xtst)
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %description
 GNOME-Pie is a circular application launcher (pie menu).
@@ -55,17 +55,20 @@
 
 %prep
 %setup -q -n Gnome-Pie-%{version}
+%if %{pkg_vcmp vala > 0.42}
 %patch0 -p1
+%endif
 
 %build
 %cmake
-make
+make %{?_smp_mflags}
 
 %install
 %cmake_install
 %suse_update_desktop_file %{name} -r Utilities DesktopUtility
 %fdupes %{buildroot}%{_datadir}
 
+%if 0%{?suse_version} && 0%{?suse_version} < 1330
 %post
 %desktop_database_post
 %icon_theme_cache_post
@@ -73,10 +76,11 @@
 %postun
 %desktop_database_postun
 %icon_theme_cache_postun
+%endif
 
 %files
-%defattr(-,root,root)
-%doc AUTHORS COPYING TRANSLATING
+%license COPYING
+%doc AUTHORS TRANSLATING
 %{_bindir}/gnome-pie
 %{_datadir}/applications/gnome-pie.desktop
 %{_datadir}/doc/gnome-pie/
@@ -101,6 +105,6 @@
 %{_datadir}/icons/hicolor/scalable/apps/gnome-pie-symbolic.svg
 %{_datadir}/icons/hicolor/scalable/apps/gnome-pie.svg
 %{_datadir}/locale/zanata.xml
-%{_datadir}/man/man1/gnome-pie.1.gz
+%{_mandir}/man1/gnome-pie.1%{?ext_man}
 
 %changelog

++++++ gnome-pie-fix-build-vala042.patch ++++++
>From 86412ee09b7f8bc11f163bc8b6c3a061be279c43 Mon Sep 17 00:00:00 2001
From: Rico Tzschichholz <ric...@ubuntu.com>
Date: Wed, 22 Aug 2018 10:38:13 +0200
Subject: [PATCH] Fix build with vala 0.42

---
 src/utilities/archiveReader.vala | 10 +++++++++-
 src/utilities/archiveWriter.vala | 14 +++++++++-----
 2 files changed, 18 insertions(+), 6 deletions(-)

diff --git a/src/utilities/archiveReader.vala b/src/utilities/archiveReader.vala
index df248cf..28b7005 100644
--- a/src/utilities/archiveReader.vala
+++ b/src/utilities/archiveReader.vala
@@ -84,9 +84,13 @@ public class ArchiveReader : GLib.Object {
             if (entry.size() > 0) {
                 while (true) {
                     size_t offset, size;
-                    void *buff;
+                    uint8[] buff;
 
+#if VALA_0_42
+                    r = this.archive.read_data_block(out buff, out offset);
+#else
                     r = this.archive.read_data_block(out buff, out size, out 
offset);
+#endif
                     if (r == Archive.Result.EOF) {
                         break;
                     }
@@ -96,7 +100,11 @@ public class ArchiveReader : GLib.Object {
                         return false;
                     }
 
+#if VALA_0_42
+                    this.writer.write_data_block(buff, offset);
+#else
                     this.writer.write_data_block(buff, size, offset);
+#endif
                 }
             }
 
diff --git a/src/utilities/archiveWriter.vala b/src/utilities/archiveWriter.vala
index 2a18154..59b2b2f 100644
--- a/src/utilities/archiveWriter.vala
+++ b/src/utilities/archiveWriter.vala
@@ -112,13 +112,17 @@ public class ArchiveWriter : GLib.Object {
         if (this.archive.write_header(entry) == Archive.Result.OK) {
             try {
                 var reader = File.new_for_path(path).read();
-                uint8 buffer[4096];
+                uint8[] buffer = new uint8[4096];
 
-                var len = reader.read(buffer);
+                buffer.length = (int) reader.read(buffer);
 
-                while(len > 0) {
-                    this.archive.write_data(buffer, len);
-                    len = reader.read(buffer);
+                while(buffer.length > 0) {
+#if VALA_0_42
+                    this.archive.write_data(buffer);
+#else
+                    this.archive.write_data(buffer, buffer.length);
+#endif
+                    buffer.length = (int) reader.read(buffer);
                 }
 
                 this.archive.finish_entry();

++++++ v0.7.0.tar.gz -> v0.7.1.tar.gz ++++++
++++ 3845 lines of diff (skipped)


Reply via email to