]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/commitdiff
libid3tag: New package.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 7 Jul 2013 20:35:26 +0000 (22:35 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 7 Jul 2013 20:35:26 +0000 (22:35 +0200)
libid3tag/libid3tag.nm [new file with mode: 0644]
libid3tag/patches/libid3tag-0.15.1b-fix_overflow.patch0 [new file with mode: 0644]

diff --git a/libid3tag/libid3tag.nm b/libid3tag/libid3tag.nm
new file mode 100644 (file)
index 0000000..0462e34
--- /dev/null
@@ -0,0 +1,65 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+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 (file)
index 0000000..26c54c5
--- /dev/null
@@ -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;