From cebefa3424972ad443d92d544b6e65666ffa78bbc11d37e2c7f84ca27feef046 Mon Sep 17 00:00:00 2001 From: Christophe Giboudeaux Date: Sun, 19 Jul 2020 17:37:44 +0000 Subject: [PATCH 1/3] OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/babe?expand=0&rev=5 --- ...Always-use-local-CMake-modules-first.patch | 25 +++++++++++++++++++ babe.changes | 6 +++++ babe.spec | 8 +++--- 3 files changed, 36 insertions(+), 3 deletions(-) create mode 100644 0001-Always-use-local-CMake-modules-first.patch diff --git a/0001-Always-use-local-CMake-modules-first.patch b/0001-Always-use-local-CMake-modules-first.patch new file mode 100644 index 0000000..210be34 --- /dev/null +++ b/0001-Always-use-local-CMake-modules-first.patch @@ -0,0 +1,25 @@ +From 496093bfcea2fbfa455f4299278685a90aaf1b13 Mon Sep 17 00:00:00 2001 +From: Christophe Giboudeaux +Date: Sun, 19 Jul 2020 19:36:43 +0200 +Subject: [PATCH] Always use local CMake modules first + +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 5feb817..981c8a0 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -3,7 +3,7 @@ project (babe) + + set (KF5_MIN_VERSION "5.24.0") + find_package (ECM ${KF5_MIN_VERSION} CONFIG REQUIRED) +-set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake/modules) ++set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules ${ECM_MODULE_PATH}) + + include(KDEInstallDirs) + include(KDECMakeSettings) +-- +2.27.0 + diff --git a/babe.changes b/babe.changes index 9a9485a..06bc059 100644 --- a/babe.changes +++ b/babe.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Jul 19 17:37:14 UTC 2020 - Christophe Giboudeaux + +- Add patch to fix build: + * 0001-Always-use-local-CMake-modules-first.patch + ------------------------------------------------------------------- Mon Feb 5 23:35:32 UTC 2018 - jengelh@inai.de diff --git a/babe.spec b/babe.spec index 3d1d2f9..f51543e 100644 --- a/babe.spec +++ b/babe.spec @@ -1,7 +1,7 @@ # # spec file for package babe # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # 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/ # @@ -20,10 +20,12 @@ Name: babe Version: 1.2.1 Release: 0 Summary: A Qt music player with support for favorites -License: GPL-3.0+ +License: GPL-3.0-or-later Group: Productivity/Multimedia/Sound/Players URL: https://babe.kde.org Source: http://download.kde.org/stable/%{name}/%{version}/src/%{name}-%{version}.tar.xz +# PATCH-FIX-UPSTREAM +Patch0: 0001-Always-use-local-CMake-modules-first.patch BuildRequires: libqt5-qtbase-common-devel BuildRequires: libtag-devel BuildRequires: pkgconfig From 32d1150ad194adfb9e8f99d91511283ee5a400f6891e22799f8436786f8464bd Mon Sep 17 00:00:00 2001 From: Christophe Giboudeaux Date: Sun, 19 Jul 2020 17:38:19 +0000 Subject: [PATCH 2/3] OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/babe?expand=0&rev=6 --- babe.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/babe.spec b/babe.spec index f51543e..b699119 100644 --- a/babe.spec +++ b/babe.spec @@ -55,14 +55,15 @@ videos into the local collection by using a Chromium extension. %build %cmake_kf5 -d build - make %{?_smp_mflags} + %cmake_build %install %kf5_makeinstall -C build %suse_update_desktop_file -r org.kde.babe Qt KDE AudioVideo Audio Player %files -%doc COPYING* README* +%license COPYING* +%doc README* %{_kf5_bindir}/babe %{_kf5_applicationsdir}/org.kde.babe.desktop %{_kf5_iconsdir}/hicolor/*/apps/babe.* From 0877791d6851e8433d3d4cbeb0e6cf1cdd3b8868152ca80405e88e0a738b8806 Mon Sep 17 00:00:00 2001 From: Christophe Giboudeaux Date: Sun, 19 Jul 2020 17:41:58 +0000 Subject: [PATCH 3/3] OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/babe?expand=0&rev=7 --- babe.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/babe.spec b/babe.spec index b699119..e294bcf 100644 --- a/babe.spec +++ b/babe.spec @@ -51,7 +51,7 @@ genre, date and location. It can link to, and bookmark YouTube music videos into the local collection by using a Chromium extension. %prep -%setup -q +%autosetup -p1 %build %cmake_kf5 -d build