From 8b182befa5d8a83da2c30d9db771f0e1ff02b2e487a8470fdf9b99520e00fa0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Mon, 17 Sep 2012 09:49:04 +0000 Subject: [PATCH] Accepting request 134147 from home:cgiboudeaux:branches:multimedia:libs Update to 1.8 OBS-URL: https://build.opensuse.org/request/show/134147 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/taglib?expand=0&rev=41 --- taglib-1.6-ds-rusxmms.patch | 277 +++++++++++++++++------------------- taglib-1.7.2-doxygen.patch | 20 +-- taglib-1.7.2.tar.bz2 | 3 - taglib-1.8.tar.gz | 3 + taglib-noansiflags.patch | 13 -- taglib.changes | 26 ++++ taglib.spec | 14 +- 7 files changed, 172 insertions(+), 184 deletions(-) delete mode 100644 taglib-1.7.2.tar.bz2 create mode 100644 taglib-1.8.tar.gz delete mode 100644 taglib-noansiflags.patch diff --git a/taglib-1.6-ds-rusxmms.patch b/taglib-1.6-ds-rusxmms.patch index c9dd49f..d1a83e5 100644 --- a/taglib-1.6-ds-rusxmms.patch +++ b/taglib-1.6-ds-rusxmms.patch @@ -1,7 +1,21 @@ -diff -dPNur taglib-1.6/config-taglib.h.cmake taglib-1.6-ds/config-taglib.h.cmake ---- taglib-1.6/config-taglib.h.cmake 2008-11-12 09:17:11.000000000 +0100 -+++ taglib-1.6-ds/config-taglib.h.cmake 2009-10-02 17:53:08.000000000 +0200 -@@ -6,6 +6,8 @@ +diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake +index e4a6d1f..324c502 100644 +--- a/ConfigureChecks.cmake ++++ b/ConfigureChecks.cmake +@@ -14,6 +14,8 @@ else() + set(HAVE_ZLIB 0) + endif() + ++set(HAVE_LIBRCC 1) ++ + set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules) + find_package(CppUnit) + if(NOT CppUnit_FOUND AND BUILD_TESTS) +diff --git a/config-taglib.h.cmake b/config-taglib.h.cmake +index 9c2f487..8e445c7 100644 +--- a/config-taglib.h.cmake ++++ b/config-taglib.h.cmake +@@ -3,6 +3,8 @@ /* Define if you have libz */ #cmakedefine HAVE_ZLIB 1 @@ -10,42 +24,40 @@ diff -dPNur taglib-1.6/config-taglib.h.cmake taglib-1.6-ds/config-taglib.h.cmake #cmakedefine NO_ITUNES_HACKS 1 #cmakedefine WITH_ASF 1 #cmakedefine WITH_MP4 1 -diff -dPNur taglib-1.6/ConfigureChecks.cmake taglib-1.6-ds/ConfigureChecks.cmake ---- taglib-1.6/ConfigureChecks.cmake 2008-12-21 22:46:41.000000000 +0100 -+++ taglib-1.6-ds/ConfigureChecks.cmake 2009-10-02 17:53:08.000000000 +0200 -@@ -14,6 +14,8 @@ - #check for libz using the cmake supplied FindZLIB.cmake - FIND_PACKAGE(ZLIB) - -+SET(HAVE_LIBRCC 1) -+ - IF(ZLIB_FOUND) - SET(HAVE_ZLIB 1) - ELSE(ZLIB_FOUND) -diff -dPNur taglib-1.6/taglib/CMakeLists.txt taglib-1.6-ds/taglib/CMakeLists.txt ---- taglib-1.6/taglib/CMakeLists.txt 2009-09-13 12:19:34.000000000 +0200 -+++ taglib-1.6-ds/taglib/CMakeLists.txt 2009-10-02 17:53:08.000000000 +0200 -@@ -163,6 +163,7 @@ +diff --git a/taglib/CMakeLists.txt b/taglib/CMakeLists.txt +index 61bcb49..49fbb62 100644 +--- a/taglib/CMakeLists.txt ++++ b/taglib/CMakeLists.txt +@@ -35,6 +35,7 @@ set(tag_HDRS + audioproperties.h + taglib_export.h + ${CMAKE_BINARY_DIR}/taglib_config.h ++ toolkit/rccpatch.h + toolkit/taglib.h + toolkit/tstring.h + toolkit/tlist.h +@@ -269,6 +270,7 @@ set(xm_SRCS ) - SET(toolkit_SRCS -+toolkit/rccpatch.cpp - toolkit/tstring.cpp - toolkit/tstringlist.cpp - toolkit/tbytevector.cpp -@@ -190,7 +191,7 @@ - add_library(tag SHARED ${tag_LIB_SRCS}) - endif(ENABLE_STATIC) + set(toolkit_SRCS ++ toolkit/rccpatch.cpp + toolkit/tstring.cpp + toolkit/tstringlist.cpp + toolkit/tbytevector.cpp +@@ -295,6 +297,8 @@ set(tag_LIB_SRCS --TARGET_LINK_LIBRARIES(tag ) -+TARGET_LINK_LIBRARIES(tag rcc) + add_library(tag ${tag_LIB_SRCS} ${tag_HDRS}) + ++target_link_libraries(tag rcc) ++ if(ZLIB_FOUND) - TARGET_LINK_LIBRARIES(tag ${ZLIB_LIBRARIES}) - endif(ZLIB_FOUND) -diff -dPNur taglib-1.6/taglib/mpeg/id3v1/id3v1tag.cpp taglib-1.6-ds/taglib/mpeg/id3v1/id3v1tag.cpp ---- taglib-1.6/taglib/mpeg/id3v1/id3v1tag.cpp 2008-02-04 16:11:56.000000000 +0100 -+++ taglib-1.6-ds/taglib/mpeg/id3v1/id3v1tag.cpp 2009-10-02 17:53:08.000000000 +0200 -@@ -59,17 +59,18 @@ + target_link_libraries(tag ${ZLIB_LIBRARIES}) + endif() +diff --git a/taglib/mpeg/id3v1/id3v1tag.cpp b/taglib/mpeg/id3v1/id3v1tag.cpp +index e9eb47b..08650a1 100644 +--- a/taglib/mpeg/id3v1/id3v1tag.cpp ++++ b/taglib/mpeg/id3v1/id3v1tag.cpp +@@ -64,17 +64,18 @@ StringHandler::StringHandler() String ID3v1::StringHandler::parse(const ByteVector &data) const { @@ -66,7 +78,7 @@ diff -dPNur taglib-1.6/taglib/mpeg/id3v1/id3v1tag.cpp taglib-1.6-ds/taglib/mpeg/ } //////////////////////////////////////////////////////////////////////////////// -@@ -240,7 +241,7 @@ +@@ -247,7 +248,7 @@ void ID3v1::Tag::parse(const ByteVector &data) d->track = uchar(data[offset + 29]); } else @@ -75,10 +87,11 @@ diff -dPNur taglib-1.6/taglib/mpeg/id3v1/id3v1tag.cpp taglib-1.6-ds/taglib/mpeg/ offset += 30; -diff -dPNur taglib-1.6/taglib/mpeg/id3v2/frames/commentsframe.cpp taglib-1.6-ds/taglib/mpeg/id3v2/frames/commentsframe.cpp ---- taglib-1.6/taglib/mpeg/id3v2/frames/commentsframe.cpp 2008-02-04 16:11:56.000000000 +0100 -+++ taglib-1.6-ds/taglib/mpeg/id3v2/frames/commentsframe.cpp 2009-10-02 17:53:08.000000000 +0200 -@@ -136,10 +136,10 @@ +diff --git a/taglib/mpeg/id3v2/frames/commentsframe.cpp b/taglib/mpeg/id3v2/frames/commentsframe.cpp +index deaa9d9..9d0df07 100644 +--- a/taglib/mpeg/id3v2/frames/commentsframe.cpp ++++ b/taglib/mpeg/id3v2/frames/commentsframe.cpp +@@ -150,10 +150,10 @@ void CommentsFrame::parseFields(const ByteVector &data) return; } @@ -91,65 +104,25 @@ diff -dPNur taglib-1.6/taglib/mpeg/id3v2/frames/commentsframe.cpp taglib-1.6-ds/ ByteVectorList l = ByteVectorList::split(data.mid(4), textDelimiter(d->textEncoding), byteAlign, 2); -@@ -155,10 +155,12 @@ +@@ -174,10 +174,12 @@ ByteVector CommentsFrame::renderFields() const String::Type encoding = d->textEncoding; + encoding = String::ID3WType(encoding); + - encoding = checkEncoding(d->description, encoding); - encoding = checkEncoding(d->text, encoding); -- + encoding = checkTextEncoding(d->description, encoding); + encoding = checkTextEncoding(d->text, encoding); + - v.append(char(encoding)); -+ + v.append(char(String::ID3RealType(encoding))); v.append(d->language.size() == 3 ? d->language : "XXX"); v.append(d->description.data(encoding)); v.append(textDelimiter(encoding)); -diff -dPNur taglib-1.6/taglib/mpeg/id3v2/frames/textidentificationframe.cpp taglib-1.6-ds/taglib/mpeg/id3v2/frames/textidentificationframe.cpp ---- taglib-1.6/taglib/mpeg/id3v2/frames/textidentificationframe.cpp 2008-02-04 16:11:56.000000000 +0100 -+++ taglib-1.6-ds/taglib/mpeg/id3v2/frames/textidentificationframe.cpp 2009-10-02 17:53:08.000000000 +0200 -@@ -105,12 +105,12 @@ - - // read the string data type (the first byte of the field data) - -- d->textEncoding = String::Type(data[0]); -+ d->textEncoding = String::ID3Type(data[0]); - - // split the byte array into chunks based on the string type (two byte delimiter - // for unicode encodings) - -- int byteAlign = d->textEncoding == String::Latin1 || d->textEncoding == String::UTF8 ? 1 : 2; -+ int byteAlign = (d->textEncoding == String::Latin1 || d->textEncoding == String::Latin1ID3 || d->textEncoding == String::Latin1ID3V2 || d->textEncoding == String::UTF8) ? 1 : 2; - - // build a small counter to strip nulls off the end of the field - -@@ -139,11 +139,14 @@ - - ByteVector TextIdentificationFrame::renderFields() const - { -- String::Type encoding = checkEncoding(d->fieldList, d->textEncoding); -+ String::Type encoding = d->textEncoding; -+ -+ encoding = String::ID3WType(encoding); -+ encoding = checkEncoding(d->fieldList, encoding); - - ByteVector v; - -- v.append(char(encoding)); -+ v.append(char(String::ID3RealType(encoding))); - - for(StringList::ConstIterator it = d->fieldList.begin(); it != d->fieldList.end(); it++) { - -diff -dPNur taglib-1.6/taglib/toolkit/CMakeLists.txt taglib-1.6-ds/taglib/toolkit/CMakeLists.txt ---- taglib-1.6/taglib/toolkit/CMakeLists.txt 2006-09-20 14:52:28.000000000 +0200 -+++ taglib-1.6-ds/taglib/toolkit/CMakeLists.txt 2009-10-02 17:53:08.000000000 +0200 -@@ -1 +1 @@ --INSTALL( FILES taglib.h tstring.h tlist.h tlist.tcc tstringlist.h tbytevector.h tbytevectorlist.h tfile.h tmap.h tmap.tcc DESTINATION ${INCLUDE_INSTALL_DIR}/taglib) -+INSTALL( FILES rccpatch.h taglib.h tstring.h tlist.h tlist.tcc tstringlist.h tbytevector.h tbytevectorlist.h tfile.h tmap.h tmap.tcc DESTINATION ${INCLUDE_INSTALL_DIR}/taglib) -diff -dPNur taglib-1.6/taglib/toolkit/rccpatch.cpp taglib-1.6-ds/taglib/toolkit/rccpatch.cpp ---- taglib-1.6/taglib/toolkit/rccpatch.cpp 1970-01-01 01:00:00.000000000 +0100 -+++ taglib-1.6-ds/taglib/toolkit/rccpatch.cpp 2009-10-02 17:53:08.000000000 +0200 +diff --git a/taglib/toolkit/rccpatch.cpp b/taglib/toolkit/rccpatch.cpp +new file mode 100644 +index 0000000..eadbcb1 +--- /dev/null ++++ b/taglib/toolkit/rccpatch.cpp @@ -0,0 +1,198 @@ +#include + @@ -209,8 +182,8 @@ diff -dPNur taglib-1.6/taglib/toolkit/rccpatch.cpp taglib-1.6-ds/taglib/toolkit/ +void rccPatchSetContext(void *newctx) { +#ifdef HAVE_LIBRCC + if (newctx) { -+ ctx = (rcc_context)newctx; -+ rcc_initialized = 1; ++ ctx = (rcc_context)newctx; ++ rcc_initialized = 1; + } +#endif /* HAVE_LIBRCC */ +} @@ -218,8 +191,8 @@ diff -dPNur taglib-1.6/taglib/toolkit/rccpatch.cpp taglib-1.6-ds/taglib/toolkit/ +static void rccPatchTryInit() { +#ifdef HAVE_LIBRCC + if (!rcc_initialized) { -+ rccPatchInit(); -+ if (rcc_initialized) atexit(rccPatchFree); ++ rccPatchInit(); ++ if (rcc_initialized) atexit(rccPatchFree); + } +#endif /* HAVE_LIBRCC */ +} @@ -240,7 +213,7 @@ diff -dPNur taglib-1.6/taglib/toolkit/rccpatch.cpp taglib-1.6-ds/taglib/toolkit/ + return v; +#else + v.setData("", 0); -+ ++ + return v; +#endif /* HAVE_LIBRCC */ +} @@ -260,7 +233,7 @@ diff -dPNur taglib-1.6/taglib/toolkit/rccpatch.cpp taglib-1.6-ds/taglib/toolkit/ + return v; +#else + v.setData("", 0); -+ ++ + return v; +#endif /* HAVE_LIBRCC */ +} @@ -280,7 +253,7 @@ diff -dPNur taglib-1.6/taglib/toolkit/rccpatch.cpp taglib-1.6-ds/taglib/toolkit/ + return v; +#else + v.setData("", 0); -+ ++ + return v; +#endif /* HAVE_LIBRCC */ +} @@ -300,7 +273,7 @@ diff -dPNur taglib-1.6/taglib/toolkit/rccpatch.cpp taglib-1.6-ds/taglib/toolkit/ + return v; +#else + v.setData("", 0); -+ ++ + return v; +#endif /* HAVE_LIBRCC */ +} @@ -311,17 +284,17 @@ diff -dPNur taglib-1.6/taglib/toolkit/rccpatch.cpp taglib-1.6-ds/taglib/toolkit/ + char charset[32]; + + rccPatchTryInit(); -+ ++ + if (!rccLocaleGetCharset(charset, NULL, 31)) { -+ if (!strncmp(charset, "UTF", 3)) { -+ len = strlen(charset); -+ -+ if (charset[len-1]=='8') return TagLib::String::UTF8; -+ if (!strcmp(charset+(len-2),"16")) return TagLib::String::UTF16; -+ if (!strcmp(charset+(len-4),"16LE")) return TagLib::String::UTF16LE; -+ if (!strcmp(charset+(len-4),"16BE")) return TagLib::String::UTF16BE; -+ } -+ return TagLib::String::Latin1; ++ if (!strncmp(charset, "UTF", 3)) { ++ len = strlen(charset); ++ ++ if (charset[len-1]=='8') return TagLib::String::UTF8; ++ if (!strcmp(charset+(len-2),"16")) return TagLib::String::UTF16; ++ if (!strcmp(charset+(len-4),"16LE")) return TagLib::String::UTF16LE; ++ if (!strcmp(charset+(len-4),"16BE")) return TagLib::String::UTF16BE; ++ } ++ return TagLib::String::Latin1; + } +#endif /* HAVE_LIBRCC */ + return TagLib::String::UTF8; @@ -333,25 +306,27 @@ diff -dPNur taglib-1.6/taglib/toolkit/rccpatch.cpp taglib-1.6-ds/taglib/toolkit/ + const char *charset; + + rccPatchTryInit(); -+ ++ + charset = rccGetCurrentCharsetName(ctx, ID3V2_CLASS); + if (charset) { -+ if (!strncmp(charset, "UTF", 3)) { -+ len = strlen(charset); -+ -+ if (charset[len-1]=='8') return TagLib::String::UTF8; -+ if (!strcmp(charset+(len-2),"16")) return TagLib::String::UTF16; -+ if (!strcmp(charset+(len-4),"16LE")) return TagLib::String::UTF16LE; -+ if (!strcmp(charset+(len-4),"16BE")) return TagLib::String::UTF16BE; -+ } -+ return TagLib::String::Latin1ID3V2; ++ if (!strncmp(charset, "UTF", 3)) { ++ len = strlen(charset); ++ ++ if (charset[len-1]=='8') return TagLib::String::UTF8; ++ if (!strcmp(charset+(len-2),"16")) return TagLib::String::UTF16; ++ if (!strcmp(charset+(len-4),"16LE")) return TagLib::String::UTF16LE; ++ if (!strcmp(charset+(len-4),"16BE")) return TagLib::String::UTF16BE; ++ } ++ return TagLib::String::Latin1ID3V2; + } +#endif /* HAVE_LIBRCC */ + return TagLib::String::Latin1; +} -diff -dPNur taglib-1.6/taglib/toolkit/rccpatch.h taglib-1.6-ds/taglib/toolkit/rccpatch.h ---- taglib-1.6/taglib/toolkit/rccpatch.h 1970-01-01 01:00:00.000000000 +0100 -+++ taglib-1.6-ds/taglib/toolkit/rccpatch.h 2009-10-02 17:53:08.000000000 +0200 +diff --git a/taglib/toolkit/rccpatch.h b/taglib/toolkit/rccpatch.h +new file mode 100644 +index 0000000..9484a93 +--- /dev/null ++++ b/taglib/toolkit/rccpatch.h @@ -0,0 +1,20 @@ +#ifndef _RCC_PATCH_H +#define _RCC_PATCH_H @@ -373,9 +348,10 @@ diff -dPNur taglib-1.6/taglib/toolkit/rccpatch.h taglib-1.6-ds/taglib/toolkit/rc +TagLib::String::Type rccPatchGetID3Type(); + +#endif /* _RCC_PATCH_H */ -diff -dPNur taglib-1.6/taglib/toolkit/tstring.cpp taglib-1.6-ds/taglib/toolkit/tstring.cpp ---- taglib-1.6/taglib/toolkit/tstring.cpp 2009-04-29 17:57:05.000000000 +0200 -+++ taglib-1.6-ds/taglib/toolkit/tstring.cpp 2009-10-02 17:53:08.000000000 +0200 +diff --git a/taglib/toolkit/tstring.cpp b/taglib/toolkit/tstring.cpp +index 292f353..45b7d03 100644 +--- a/taglib/toolkit/tstring.cpp ++++ b/taglib/toolkit/tstring.cpp @@ -23,6 +23,7 @@ * http://www.mozilla.org/MPL/ * ***************************************************************************/ @@ -384,7 +360,7 @@ diff -dPNur taglib-1.6/taglib/toolkit/tstring.cpp taglib-1.6-ds/taglib/toolkit/t #include "tstring.h" #include "unicode.h" #include "tdebug.h" -@@ -167,7 +168,7 @@ +@@ -168,7 +169,7 @@ String::String(const ByteVector &v, Type t) if(v.isEmpty()) return; @@ -393,7 +369,7 @@ diff -dPNur taglib-1.6/taglib/toolkit/tstring.cpp taglib-1.6-ds/taglib/toolkit/t int length = 0; d->data.resize(v.size()); -@@ -369,10 +370,21 @@ +@@ -397,10 +398,21 @@ ByteVector String::data(Type t) const { ByteVector v; @@ -412,11 +388,11 @@ diff -dPNur taglib-1.6/taglib/toolkit/tstring.cpp taglib-1.6-ds/taglib/toolkit/t + else /* if (t == Latin1(Locale) */ v = rccPatchRecodeOutput(s); + + if (v.size()) return v; -+ ++ for(wstring::const_iterator it = d->data.begin(); it != d->data.end(); it++) v.append(char(*it)); break; -@@ -707,6 +719,31 @@ +@@ -750,6 +762,31 @@ void String::detach() void String::prepare(Type t) { @@ -429,26 +405,26 @@ diff -dPNur taglib-1.6/taglib/toolkit/tstring.cpp taglib-1.6-ds/taglib/toolkit/t + if (t == Latin1ID3) v = rccPatchRecodeInputID3(s, false); + else if (t == Latin1ID3V2) v = rccPatchRecodeInputID3(s, true); + else /* Latin1 converted from Locale */ v = rccPatchRecodeInput(s); -+ ++ + if (v.size()) { -+ int length = 0; -+ d->data.resize(v.size()); -+ wstring::iterator targetIt = d->data.begin(); -+ for(ByteVector::ConstIterator it = v.begin(); it != v.end() && (*it); ++it) { -+ *targetIt = uchar(*it); -+ ++targetIt; -+ ++length; -+ } -+ d->data.resize(length); ++ int length = 0; ++ d->data.resize(v.size()); ++ wstring::iterator targetIt = d->data.begin(); ++ for(ByteVector::ConstIterator it = v.begin(); it != v.end() && (*it); ++it) { ++ *targetIt = uchar(*it); ++ ++targetIt; ++ ++length; ++ } ++ d->data.resize(length); + } -+ ++ + t = UTF8; + } + switch(t) { case UTF16: { -@@ -796,6 +833,27 @@ +@@ -839,6 +876,27 @@ const TagLib::String operator+(const TagLib::String &s1, const char *s2) std::ostream &operator<<(std::ostream &s, const String &str) { @@ -459,17 +435,17 @@ diff -dPNur taglib-1.6/taglib/toolkit/tstring.cpp taglib-1.6-ds/taglib/toolkit/t } + +String::Type String::ID3Type(int i) { -+ if (i == Latin1) return Latin1ID3V2; -+ return Type(i); ++ if (i == Latin1) return Latin1ID3V2; ++ return Type(i); +}; + +String::Type String::ID3WType(Type type) { + Type rcc_type = rccPatchGetID3Type(); + if ((rcc_type == Latin1ID3)||(rcc_type == Latin1ID3V2)) { -+ if (type == Latin1) return rcc_type; -+ return type; ++ if (type == Latin1) return rcc_type; ++ return type; + } -+ ++ + return rcc_type; +}; + @@ -477,10 +453,11 @@ diff -dPNur taglib-1.6/taglib/toolkit/tstring.cpp taglib-1.6-ds/taglib/toolkit/t + if ((type == Latin1ID3)||(type == Latin1ID3V2)) return Latin1; + return type; +} -diff -dPNur taglib-1.6/taglib/toolkit/tstring.h taglib-1.6-ds/taglib/toolkit/tstring.h ---- taglib-1.6/taglib/toolkit/tstring.h 2009-07-02 22:54:32.000000000 +0200 -+++ taglib-1.6-ds/taglib/toolkit/tstring.h 2009-10-02 17:53:08.000000000 +0200 -@@ -81,6 +81,18 @@ +diff --git a/taglib/toolkit/tstring.h b/taglib/toolkit/tstring.h +index 759a175..af38090 100644 +--- a/taglib/toolkit/tstring.h ++++ b/taglib/toolkit/tstring.h +@@ -90,6 +90,18 @@ namespace TagLib { */ enum Type { /*! @@ -499,7 +476,7 @@ diff -dPNur taglib-1.6/taglib/toolkit/tstring.h taglib-1.6-ds/taglib/toolkit/tst * IS08859-1, or Latin1 encoding. 8 bit characters. */ Latin1 = 0, -@@ -103,6 +115,10 @@ +@@ -112,6 +124,10 @@ namespace TagLib { UTF16LE = 4 }; diff --git a/taglib-1.7.2-doxygen.patch b/taglib-1.7.2-doxygen.patch index 14f389d..4011235 100644 --- a/taglib-1.7.2-doxygen.patch +++ b/taglib-1.7.2-doxygen.patch @@ -1,13 +1,13 @@ -Index: taglib-1.7.2/CMakeLists.txt -=================================================================== ---- taglib-1.7.2.orig/CMakeLists.txt -+++ taglib-1.7.2/CMakeLists.txt -@@ -76,7 +76,7 @@ endif(NOT WIN32) +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 20a1141..0e9e884 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -94,7 +94,7 @@ if(BUILD_TESTS) + endif(BUILD_TESTS) + add_subdirectory(examples) - INSTALL( PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/taglib-config DESTINATION ${BIN_INSTALL_DIR}) - --CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.cmake ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile) -+CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.cmake ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile) +-configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.cmake ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile) ++configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.cmake ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile) file(COPY doc/taglib.png DESTINATION doc) - ADD_CUSTOM_TARGET(docs doxygen) + add_custom_target(docs doxygen) diff --git a/taglib-1.7.2.tar.bz2 b/taglib-1.7.2.tar.bz2 deleted file mode 100644 index b609086..0000000 --- a/taglib-1.7.2.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:77e4b50761d59269c591a0ae3f98fd2d6a555fcbf09a8b99f68083809925a1ef -size 459392 diff --git a/taglib-1.8.tar.gz b/taglib-1.8.tar.gz new file mode 100644 index 0000000..9cb5770 --- /dev/null +++ b/taglib-1.8.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:66d33481703c90236a0a9d1c38fd81b584ca7109ded049225f5463dcaffc209a +size 595937 diff --git a/taglib-noansiflags.patch b/taglib-noansiflags.patch deleted file mode 100644 index 175d3f8..0000000 --- a/taglib-noansiflags.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- CMakeLists.txt.orig -+++ CMakeLists.txt -@@ -24,8 +24,8 @@ set(INCLUDE_INSTALL_DIR "${CMAKE_IN - - if (CMAKE_COMPILER_IS_GNUCXX) - if (CMAKE_SYSTEM_NAME MATCHES Linux) -- set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-long-long -ansi -Wundef -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-common") -- set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -fno-check-new -fno-common") -+ set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-long-long -Wundef -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-common") -+ set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility-inlines-hidden -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -fno-check-new -fno-common") - endif (CMAKE_SYSTEM_NAME MATCHES Linux) - endif (CMAKE_COMPILER_IS_GNUCXX) - if(MSVC) diff --git a/taglib.changes b/taglib.changes index b5b186c..99641c3 100644 --- a/taglib.changes +++ b/taglib.changes @@ -1,3 +1,29 @@ +------------------------------------------------------------------- +Thu Sep 13 10:11:52 UTC 2012 - cgiboudeaux@gmx.com + +- Update to 1.8 + * Added support for OWNE ID3 frames. + * Changed key validation in the new PropertyMap API. + * ID3v1::Tag::setStringHandler will no londer delete the previous handler, the caller is responsible for this. + * File objects will also no longer delete the passed IOStream objects. It should be done in the caller code after the File object is no longer used. + * Added ID3v2::Tag::setLatin1StringHandler for custom handling of latin1-encoded text in ID3v2 frames. + * Fixed validation of ID3v2 frame IDs (IDs with ‘0’ were ignored). + * New API for accessing tags by name. + * New abstract I/O stream layer to allow custom I/O handlers. + * Support for writing ID3v2.3 tags. + * Support for various module file formats (MOD, S3M, IT, XM). + * Support for MP4 and ASF is now enabled by default. + * Started using atomic int operations for reference counting. + * Added methods for checking if WMA and MP4 files are DRM-protected. + * Added taglib_free to the C bindings. + * New method to allow removing pictures from FLAC files. + * Support for reading audio properties from ALAC and Musepack SV8 files. + * Added replay-gain information to Musepack audio properties. + * Support for APEv2 binary tags. + * Many AudioProperties subclasses now provide information about the total number of samples. + * Various small bug fixes. +- Drop taglib-noansiflags.patch (no longer relevant) + ------------------------------------------------------------------- Fri May 11 10:22:59 UTC 2012 - vdziewiecki@suse.com diff --git a/taglib.spec b/taglib.spec index 513b31d..b2b62fc 100644 --- a/taglib.spec +++ b/taglib.spec @@ -17,19 +17,17 @@ Name: taglib -Version: 1.7.2 +Version: 1.8 Release: 0 Summary: Audio Meta-Data Library License: LGPL-2.1+ ; MPL-1.1 Group: System/Libraries Url: http://ktown.kde.org/~wheeler/taglib/ -# http://ktown.kde.org/~wheeler/files/src/taglib-1.7.tar.gz -Source0: %{name}-%{version}.tar.bz2 +Source0: https://github.com/downloads/taglib/taglib/%{name}-%{version}.tar.gz Source1: %{name}.desktop Source100: baselibs.conf -Patch1: taglib-1.6-ds-rusxmms.patch -Patch2: taglib-noansiflags.patch -Patch3: taglib-1.7.2-doxygen.patch +Patch0: taglib-1.6-ds-rusxmms.patch +Patch1: taglib-1.7.2-doxygen.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: cmake BuildRequires: doxygen @@ -97,9 +95,9 @@ This package contains development files for taglib. %prep %setup -q +%patch0 -p1 %patch1 -p1 -%patch2 -%patch3 -p1 + %build mkdir build cd build