Hello community,

here is the log from the commit of package QMPlay2 for openSUSE:Factory checked 
in at 2020-07-10 15:30:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/QMPlay2 (Old)
 and      /work/SRC/openSUSE:Factory/.QMPlay2.new.3060 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "QMPlay2"

Fri Jul 10 15:30:18 2020 rev:44 rq:819808 version:20.07.04

Changes:
--------
--- /work/SRC/openSUSE:Factory/QMPlay2/QMPlay2.changes  2020-05-03 
22:47:27.507182024 +0200
+++ /work/SRC/openSUSE:Factory/.QMPlay2.new.3060/QMPlay2.changes        
2020-07-10 15:30:24.418729376 +0200
@@ -1,0 +2,22 @@
+Tue Jul  7 12:32:57 UTC 2020 - Simon Vogl <[email protected]>
+
+- Added 0001-fix-build-error-lp151.patch to fix compilation on openSUSE Leap 
15.1
+- Switch to Ninja as build system
+- Update to version 20.07.04
+   * discard some frames on hardware decoding if hardware is too slow (was 
removed in 20.05.02),
+   * add workaround for VA-API/Vulkan for AMD GPUs on Mesa 20.1,
+   * use D-Bus for suspend (systemd and ConsoleKit),
+   * fix compilation with older FFmpeg version,
+   * fix duration for some WavPack files,
+   * remove QMPlay2 radio stations list,
+   * add architecture to about window,
+   * fix seeking on raw audio data,
+   * fix OpenGL linking on Linux,
+   * fix YouTube search.
+
+-------------------------------------------------------------------
+Sun May 16 15:47:33 UTC 2020 - Simon Vogl <[email protected]>
+
+- Re-enable PHC compilation for ppc64 and ppc64le architectures by using 
_constrains
+
+-------------------------------------------------------------------

Old:
----
  QMPlay2-src-20.05.02.tar.xz

New:
----
  0001-fix-build-error-lp151.patch
  QMPlay2-src-20.07.04.tar.xz
  _constraints

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

Other differences:
------------------
++++++ QMPlay2.spec ++++++
--- /var/tmp/diff_new_pack.KwJwWh/_old  2020-07-10 15:30:27.878740760 +0200
+++ /var/tmp/diff_new_pack.KwJwWh/_new  2020-07-10 15:30:27.882740773 +0200
@@ -16,16 +16,21 @@
 #
 
 
+%define __builder Ninja
+
 Name:           QMPlay2
-Version:        20.05.02
+Version:        20.07.04
 Release:        0
 Summary:        A Qt based media player, streamer and downloader
 License:        LGPL-3.0-or-later
 Group:          Productivity/Multimedia/Video/Players
 URL:            https://github.com/zaps166/QMPlay2
 Source:         
https://github.com/zaps166/QMPlay2/releases/download/%{version}/QMPlay2-src-%{version}.tar.xz
+# PATCH-FIX-OPENSUSE
+Patch100:       0001-fix-build-error-lp151.patch
 BuildRequires:  cmake >= 3.5
 BuildRequires:  gcc-c++
+BuildRequires:  ninja
 BuildRequires:  pkgconfig
 BuildRequires:  cmake(Qt5LinguistTools)
 BuildRequires:  pkgconfig(Qt5Concurrent)
@@ -74,34 +79,28 @@
 It's a development package for %{name}.
 
 %prep
-%setup -q -n %{name}-src-%{version}
+%autosetup -p1 -n %{name}-src-%{version}
 
 %build
 # Build options
 # Disable PCH compilation for older versions of openSUSE/SLES
 # as it requires cmake >= 3.16.
-# Temporarily disable PCH compilation for ppc64 and ppc64le architectures
-# as the build servers do not support it yet.
 %cmake \
   -DCMAKE_SHARED_LINKER_FLAGS="%{?build_ldflags} -Wl,--as-needed -Wl,-z,now" \
   -DUSE_CHIPTUNE_SID=ON \
   -DUSE_LINK_TIME_OPTIMIZATION=ON \
   %if 0%{?suse_version} >= 1520
-    %ifnarch ppc64 ppc64le
     -DUSE_PCH=ON \
     %else
     -DUSE_PCH=OFF \
     %endif
-  %else
-  -DUSE_PCH=OFF \
-  %endif
   -DUSE_GLSLC=OFF \
   -DUSE_GIT_VERSION=OFF \
   -DSOLID_ACTIONS_INSTALL_PATH="%{_datadir}/solid/actions"
-%cmake_build
+%ninja_build
 
 %install
-%cmake_install
+%ninja_install -C build
 
 # Let's use %%doc macro. AUTHORS & ChangeLog are required for help window
 cd %{buildroot}/%{_datadir}/qmplay2
@@ -137,10 +136,6 @@
 %{_datadir}/metainfo/%{name}.appdata.xml
 %{_datadir}/icons/hicolor/*/apps/%{name}.png
 %{_datadir}/icons/hicolor/scalable/apps/%{name}.*
-%if 0%{?suse_version} == 1315
-%dir %{_datadir}/icons/hicolor/*
-%dir %{_datadir}/icons/hicolor/*/apps
-%endif
 %{_datadir}/qmplay2
 %{_mandir}/man?/%{name}.?%{ext_man}
 %{_datadir}/mime/packages/x-*.xml

++++++ 0001-fix-build-error-lp151.patch ++++++
>From 2c573ad269776ee1bc54f6fb2464c1919ce5a2fa Tue  7  7 12:32:57 2020
From: Simon Vogl <[email protected]>
Date: Tue,  7 Jul 2020 12:32:57 UTC
Subject: [PATCH] Fix compilation failure of QMPlay2 on openSUSE Leap 15.1

This patch is required for QMPlay2 to work with QT < 5.12.
openSUSE Leap 15.1 is still supported and at QT version 5.9, which means this 
patch is necessary.

diff --git a/src/qmplay2/QMPlay2Core.cpp b/src/qmplay2/QMPlay2Core.cpp
index 092dcde1..b5ce8d7c 100644
--- a/src/qmplay2/QMPlay2Core.cpp
+++ b/src/qmplay2/QMPlay2Core.cpp
@@ -403,7 +403,7 @@ bool QMPlay2CoreClass::canSuspend()
         p.start("dbus-send", args);
         if (!p.waitForStarted() || !p.waitForFinished())
             return false;
-        return 
(p.readAllStandardOutput().split('\n').value(1).simplified().replace("\"", 
"").split(' ').value(1).compare("yes", Qt::CaseInsensitive) == 0);
+        return 
(p.readAllStandardOutput().split('\n').value(1).simplified().replace("\"", 
"").split(' ').value(1).toLower() == "yes");
     };
     if (checkSuspendDBus(getDBusSuspendArgs("CanSuspend", "login1")))
     {
++++++ QMPlay2-src-20.05.02.tar.xz -> QMPlay2-src-20.07.04.tar.xz ++++++
++++ 2310 lines of diff (skipped)

++++++ _constraints ++++++
<constraints>
  <linux>
    <version>
      <min>4.0</min>
    </version>
  </linux>
  <hardware>
    <processors>4</processors>
    <disk>
      <size unit="G">4</size>
    </disk>
    <memory>
      <size unit="G">2</size>
    </memory>
  </hardware>
</constraints>

Reply via email to