diff --git a/0001-Fix-build-with-taglib-2.patch b/0001-Fix-build-with-taglib-2.patch new file mode 100644 index 0000000..113ede9 --- /dev/null +++ b/0001-Fix-build-with-taglib-2.patch @@ -0,0 +1,39 @@ +From 5389ae860ca4c672c022cad7e51c48bc699fcba3 Mon Sep 17 00:00:00 2001 +From: Antonio Rojas +Date: Wed, 24 Jan 2024 17:40:16 +0100 +Subject: [PATCH] Fix build with taglib 2 + +Drop unused includes that no longer exist +--- + mediafiles.cpp | 1 - + mediafiles.h | 2 -- + 2 files changed, 3 deletions(-) + +diff --git a/mediafiles.cpp b/mediafiles.cpp +index facdf1fc..0bb33b37 100644 +--- a/mediafiles.cpp ++++ b/mediafiles.cpp +@@ -29,7 +29,6 @@ + #include + + #include +-#include + #include + #include + #include +diff --git a/mediafiles.h b/mediafiles.h +index 81ab4b8a..41decb34 100644 +--- a/mediafiles.h ++++ b/mediafiles.h +@@ -28,8 +28,6 @@ namespace TagLib { + class File; + } + +-#include +- + /** + * A namespace for file JuK's file related functions. The goal is to hide + * all specific knowledge of mimetypes and file extensions here. +-- +2.43.1 + diff --git a/juk.changes b/juk.changes index 75bd1ea..10bb858 100644 --- a/juk.changes +++ b/juk.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Feb 20 16:00:54 UTC 2024 - Christophe Marin + +- Add patch to fix build with taglib 2: + * 0001-Fix-build-with-taglib-2.patch + ------------------------------------------------------------------- Tue Dec 5 14:19:08 UTC 2023 - Christophe Marin diff --git a/juk.spec b/juk.spec index f0d5e0e..a9da4ff 100644 --- a/juk.spec +++ b/juk.spec @@ -28,6 +28,8 @@ Source: https://download.kde.org/stable/release-service/%{version}/src/% Source1: https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz.sig Source2: applications.keyring %endif +# PATCH-FIX-UPSTREAM +Patch0: 0001-Fix-build-with-taglib-2.patch BuildRequires: extra-cmake-modules BuildRequires: libtag-devel BuildRequires: update-desktop-files