From 50eeb37047d9611e95d83559b395b4a6a783895a Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Sun, 7 Jul 2013 22:35:26 +0200 Subject: [PATCH] libid3tag: New package. --- libid3tag/libid3tag.nm | 65 +++++++++++++++++++ .../libid3tag-0.15.1b-fix_overflow.patch0 | 11 ++++ 2 files changed, 76 insertions(+) create mode 100644 libid3tag/libid3tag.nm create mode 100644 libid3tag/patches/libid3tag-0.15.1b-fix_overflow.patch0 diff --git a/libid3tag/libid3tag.nm b/libid3tag/libid3tag.nm new file mode 100644 index 000000000..0462e3406 --- /dev/null +++ b/libid3tag/libid3tag.nm @@ -0,0 +1,65 @@ +############################################################################### +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # +############################################################################### + +name = libid3tag +version = 0.15.1b +release = 1 + +groups = System/Libraries +url = http://www.underbit.com/products/mad/ +license = GPLv2+ +summary = ID3 tag manipulation library. + +description + libid3tag is a library for reading and (eventually) writing ID3 tags, + both ID3v1 and the various versions of ID3v2. +end + +source_dl = http://sourceforge.net/projects/mad/files/%{name}/%{version}/ + +build + requires + zlib-devel + end + + configure_options += \ + --disable-static + + # Honor our CFLAGS. + make_build_targets += \ + CFLAGS="%{CFLAGS}" + + install_cmds + # Generate pkg-config file for libid3tag. + cat << \EOF > %{name}.pc + prefix=%{prefix} + exec_prefix=%{exec_prefix} + libdir=%{libdir} + includedir=%{includedir} + + Name: id3tag + Description: ID3 tag manipulation library + Requires: + Version: %{version} + Libs: -lid3tag + Cflags: + EOF + + # Install generated libid3tag.pc file. + install -Dpm 644 %{name}.pc %{BUILDROOT}%{libdir}/pkgconfig/id3tag.pc + end +end + +packages + package %{name} + + package %{name}-devel + template DEVEL + end + + package %{name}-debuginfo + template DEBUGINFO + end +end diff --git a/libid3tag/patches/libid3tag-0.15.1b-fix_overflow.patch0 b/libid3tag/patches/libid3tag-0.15.1b-fix_overflow.patch0 new file mode 100644 index 000000000..26c54c5d2 --- /dev/null +++ b/libid3tag/patches/libid3tag-0.15.1b-fix_overflow.patch0 @@ -0,0 +1,11 @@ +--- field.c.orig 2008-05-05 09:49:15.000000000 -0400 ++++ field.c 2008-05-05 09:49:25.000000000 -0400 +@@ -291,7 +291,7 @@ + + end = *ptr + length; + +- while (end - *ptr > 0) { ++ while (end - *ptr > 0 && **ptr != '\0') { + ucs4 = id3_parse_string(ptr, end - *ptr, *encoding, 0); + if (ucs4 == 0) + goto fail; -- 2.47.3