diff --git a/0001-Fix-precision-loss-in-Taglib-XM-support-test.patch b/0001-Fix-precision-loss-in-Taglib-XM-support-test.patch new file mode 100644 index 0000000..e08343e --- /dev/null +++ b/0001-Fix-precision-loss-in-Taglib-XM-support-test.patch @@ -0,0 +1,25 @@ +From d391f253530b8503000627207e770a2cc2d903b7 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ville=20Skytt=C3=A4?= +Date: Thu, 14 Mar 2013 23:08:40 +0200 +Subject: [PATCH] Fix precision loss in Taglib XM support test. + +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 2227630..2d5bf9b 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -291,7 +291,7 @@ if (TAGLIB_LIBRARIES AND TAGLIB_CFLAGS) + set(_CMAKE_REQUIRED_DEFINITIONS_TMP ${CMAKE_REQUIRED_DEFINITIONS}) + set(CMAKE_REQUIRED_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS} ${TAGLIB_CFLAGS}) + CHECK_CXX_SOURCE_COMPILES("#include \nint main() {\n TagLib::MPEG::File file(\"somefile.mp3\");\n file.save(3, false, 3);\n return 0;\n}\n" HAVE_TAGLIB_ID3V23_SUPPORT) +- CHECK_CXX_SOURCE_COMPILES("#include \n#include \nint main() {\n TagLib::MPEG::File file(\"somefile.mp3\");\n return (int)dynamic_cast(file.audioProperties());\n}\n" HAVE_TAGLIB_XM_SUPPORT) ++ CHECK_CXX_SOURCE_COMPILES("#include \n#include \nint main() {\n TagLib::MPEG::File file(\"somefile.mp3\");\n return dynamic_cast(file.audioProperties()) != 0;\n}\n" HAVE_TAGLIB_XM_SUPPORT) + set(CMAKE_REQUIRED_LIBRARIES ${_CMAKE_REQUIRED_LIBRARIES_TMP}) + set(CMAKE_REQUIRED_DEFINITIONS ${_CMAKE_REQUIRED_DEFINITIONS_TMP}) + endif (TAGLIB_LIBRARIES AND TAGLIB_CFLAGS) +-- +1.7.11.7 + diff --git a/kid3.spec b/kid3.spec index 3d9dfc3..675e728 100644 --- a/kid3.spec +++ b/kid3.spec @@ -1,11 +1,13 @@ Name: kid3 -Version: 2.2.1 -Release: 3%{?dist} +Version: 2.3 +Release: 1%{?dist} Summary: Efficient KDE ID3 tag editor License: GPLv2+ URL: http://kid3.sourceforge.net/ Source0: http://downloads.sourceforge.net/kid3/%{name}-%{version}.tar.gz +# Sent upstream 2013-03-15 +Patch0: 0001-Fix-precision-loss-in-Taglib-XM-support-test.patch BuildRequires: kdelibs4-devel BuildRequires: cmake @@ -41,6 +43,7 @@ built without KDE dependencies. %prep %setup -q +%patch0 -p1 %build @@ -128,6 +131,10 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Thu Mar 14 2013 Ville Skyttä - 2.3-1 +- Update to 2.3. +- Patch to fix XM support. + * Thu Feb 14 2013 Fedora Release Engineering - 2.2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild diff --git a/sources b/sources index f97f1cb..a641b40 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -79a4e1e4d18672337539a15256cc52f4 kid3-2.2.1.tar.gz +ea78a5a1346b6c7a9cfab91a60feeb63 kid3-2.3.tar.gz