packages: gtkpod/gtkpod.spec, gtkpod/itmf_tags.patch (NEW) - use mp4v2 impl...

glen glen at pld-linux.org
Thu Aug 18 00:30:01 CEST 2011


Author: glen                         Date: Wed Aug 17 22:30:01 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- use mp4v2 implementation instead of mpeg4ip, fix itmf_tags.h detection

---- Files affected:
packages/gtkpod:
   gtkpod.spec (1.37 -> 1.38) , itmf_tags.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/gtkpod/gtkpod.spec
diff -u packages/gtkpod/gtkpod.spec:1.37 packages/gtkpod/gtkpod.spec:1.38
--- packages/gtkpod/gtkpod.spec:1.37	Mon Aug 15 22:51:45 2011
+++ packages/gtkpod/gtkpod.spec	Thu Aug 18 00:29:56 2011
@@ -1,16 +1,17 @@
 # $Revision$, $Date$
 # TODO
-# - Check for MP4 Headers: mp4v2/mp4v2.h: mp4v2-devel
+# - build system breaks autoconf cache: i.e PKGCONFIG and FAAD should not be set to custom values
 Summary:	Graphical song management program for Apple's iPod
 Summary(pl.UTF-8):	Graficzny menadżer utworów muzycznych dla urządzeń Apple iPod
 Name:		gtkpod
 Version:	2.1.0
-Release:	3
+Release:	4
 License:	GPL/LGPL
 Group:		X11/Applications/Multimedia
 Source0:	http://downloads.sourceforge.net/gtkpod/%{name}-%{version}.tar.gz
 # Source0-md5:	8e01f7cf2db1a421140eab561aee26d7
-Patch1:		desktop.patch
+Patch0:		desktop.patch
+Patch1:		itmf_tags.patch
 URL:		http://www.gtkpod.org/
 BuildRequires:	flex
 BuildRequires:	gdl-devel >= 3.0.0
@@ -24,6 +25,7 @@
 BuildRequires:	libgpod-devel >= 0.4.0
 BuildRequires:	libid3tag-devel >= 0.15
 BuildRequires:	libxml2-devel >= 2.7.7
+BuildRequires:	mp4v2-devel
 BuildRequires:	perl-XML-Parser
 BuildRequires:	pkgconfig
 BuildRequires:	rpm-pythonprov
@@ -37,6 +39,9 @@
 Suggests:	faad2
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+# clears PKGCONFIG, making cache reuse impossible
+%undefine	configure_cache
+
 %description
 Platform independent graphical song management program for Apple's
 iPod. It allows you to upload songs and playlists to your iPod.
@@ -47,10 +52,16 @@
 
 %prep
 %setup -q
+%patch0 -p1
 %patch1 -p1
 %{__sed} -i -e 's!/usr/bin/awk!/bin/awk!g' scripts/ldif2vcf.sh
 
 %build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
 %configure \
 	FAAD=yes \
 	--disable-static
@@ -114,6 +125,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.38  2011/08/17 22:29:56  glen
+- use mp4v2 implementation instead of mpeg4ip, fix itmf_tags.h detection
+
 Revision 1.37  2011/08/15 20:51:45  glen
 - typo
 

================================================================
Index: packages/gtkpod/itmf_tags.patch
diff -u /dev/null packages/gtkpod/itmf_tags.patch:1.1
--- /dev/null	Thu Aug 18 00:30:01 2011
+++ packages/gtkpod/itmf_tags.patch	Thu Aug 18 00:29:56 2011
@@ -0,0 +1,27 @@
+--- gtkpod-2.1.0/./CMakeLists.txt~	2011-07-17 20:46:59.000000000 +0300
++++ gtkpod-2.1.0/./CMakeLists.txt	2011-08-18 01:19:43.993660139 +0300
+@@ -51,7 +51,7 @@
+ # typedef void* MP4FileHandle;//>
+ # #include <mp4v2/itmf_tags.h>
+ # This matches the way it's used in the code, and the autoconf test
+-CHECK_INCLUDE_FILES("mp4v2/platform.h>\ntypedef void* MP4FileHandle\;//;mp4v2/itmf_tags.h" HAVE_MP4V2_ITMF_TAGS_H)
++CHECK_INCLUDE_FILES("mp4v2/platform.h>\ninclude <stdint.h>\ntypedef void* MP4FileHandle\;//;mp4v2/itmf_tags.h" HAVE_MP4V2_ITMF_TAGS_H)
+ 
+ set(OPT_INCLUDES "")
+ set(OPT_CFLAGS "")
+--- gtkpod-2.1.0/configure.ac	2011-08-18 01:19:58.317693619 +0300
++++ gtkpod-2.1.0/configure.ac	2011-08-18 01:24:48.655205091 +0300
+@@ -280,9 +280,12 @@
+ 	dnl rollback to older mp4 library - should help with distros
+ 	dnl not using 1.9.1 of the mp4v2 library
+ 	AC_CHECK_HEADERS([mp4.h], have_mp4=yes, have_mp4=no)
++else
++	AC_CHECK_HEADERS([mp4v2/platform.h], [], [])
+ fi
+ AC_CHECK_HEADERS([mp4v2/itmf_tags.h], [], [],
+-		 [#ifdef HAVE_MP4V2_PLATFORM_H
++		 [#include <stdint.h>
++		  #ifdef HAVE_MP4V2_PLATFORM_H
+ 		  # include <mp4v2/platform.h>
+ 		  #endif
+ 		  typedef void* MP4FileHandle;
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gtkpod/gtkpod.spec?r1=1.37&r2=1.38&f=u



More information about the pld-cvs-commit mailing list