[maemo-commits] [maemo-commits] r16590 - in projects/haf/trunk/totem-pl-parser: . docs/reference plparse po
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Thu Nov 6 13:32:00 EET 2008
- Previous message: [maemo-commits] r16589 - projects/connectivity/osso-obc/trunk/src
- Next message: [maemo-commits] r16591 - projects/connectivity/osso-obc/trunk/src
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: ifrade Date: 2008-11-06 13:31:58 +0200 (Thu, 06 Nov 2008) New Revision: 16590 Added: projects/haf/trunk/totem-pl-parser/configure.in projects/haf/trunk/totem-pl-parser/docs/reference/version.xml.in projects/haf/trunk/totem-pl-parser/plparse/totem-pl-parser-features.h.in projects/haf/trunk/totem-pl-parser/po/POTFILES.in projects/haf/trunk/totem-pl-parser/totem-pl-parser.spec.in projects/haf/trunk/totem-pl-parser/totem-plparser-mini-uninstalled.pc.in projects/haf/trunk/totem-pl-parser/totem-plparser-mini.pc.in projects/haf/trunk/totem-pl-parser/totem-plparser-uninstalled.pc.in projects/haf/trunk/totem-pl-parser/totem-plparser.pc.in Log: Added missing .in files Added: projects/haf/trunk/totem-pl-parser/configure.in =================================================================== --- projects/haf/trunk/totem-pl-parser/configure.in 2008-11-06 11:16:05 UTC (rev 16589) +++ projects/haf/trunk/totem-pl-parser/configure.in 2008-11-06 11:31:58 UTC (rev 16590) @@ -0,0 +1,146 @@ +AC_PREREQ(2.52) + +m4_define(totem_version_major, 2) +m4_define(totem_version_minor, 23) +m4_define(totem_version_micro, 91) + +AC_INIT([totem-pl-parser], + [totem_version_major.totem_version_minor.totem_version_micro], + [http://bugzilla.gnome.org/enter_bug.cgi?product=totem&component=playlist%20parser]) + +AC_CONFIG_SRCDIR([plparse/totem-pl-parser.c]) +AC_CONFIG_HEADERS([config.h]) +AC_GNU_SOURCE + +AM_INIT_AUTOMAKE([1.9 dist-bzip2 no-dist-gzip check-news subdir-objects]) + +dnl Add the languages which your application supports to po/LINGUAS +GETTEXT_PACKAGE=totem-pl-parser +AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, ["$GETTEXT_PACKAGE"], [Define to the Gettext package name]) +AC_SUBST(GETTEXT_PACKAGE) +AM_GLIB_GNU_GETTEXT +IT_PROG_INTLTOOL([0.35.0]) + +AC_PROG_CXX +AM_PROG_CC_C_O +AC_PROG_LIBTOOL() +PKG_PROG_PKG_CONFIG + +dnl Use local version of asprintf when not on the current system. +AC_CHECK_FUNCS(asprintf) +AC_CONFIG_LIBOBJ_DIR([lib]) +AC_REPLACE_FUNCS([asprintf]) + +AC_PATH_PROG([GLIB_GENMARSHAL],[glib-genmarshal]) +AC_PATH_PROG([GLIB_MKENUMS],[glib-mkenums]) + +# Requirements +GLIB_REQS=2.16.3 +GIO_REQS=2.17.3 +DBUS_REQS=0.61 + +# Before making a release, the PLPARSER_LT_VERSION string should be modified. +# The string is of the form C:R:A. +# - If interfaces have been changed or added, but binary compatibility has +# been preserved, change to C+1:0:A+1 +# - If binary compatibility has been broken (eg removed or changed interfaces) +# change to C+1:0:0 +# - If the interface is the same as the previous version, change to C:R+1:A +PLPARSER_LT_VERSION=12:2:0 +AC_SUBST(PLPARSER_LT_VERSION) + +TOTEM_PL_PARSER_VERSION_MAJOR=totem_version_major +TOTEM_PL_PARSER_VERSION_MINOR=totem_version_minor +TOTEM_PL_PARSER_VERSION_MICRO=totem_version_micro +AC_SUBST(TOTEM_PL_PARSER_VERSION_MAJOR) +AC_SUBST(TOTEM_PL_PARSER_VERSION_MINOR) +AC_SUBST(TOTEM_PL_PARSER_VERSION_MICRO) + +pkg_modules="glib-2.0 >= $GLIB_REQS gtk+-2.0 libxml-2.0 gthread-2.0 gio-2.0 >= $GIO_REQS" + +################################## +# Checking libcamel dependency +################################## +camel_message="" + +AC_ARG_ENABLE(camel-i-know-what-im-doing, + AS_HELP_STRING([--disable-camel-i-know-what-im-doing], + [Disable libcamel (Unsupported, breaks Podcast support).]), + [enable_camel=no], + [enable_camel=yes]) + +if test "x$enable_camel" = "xyes" ; then + PKG_CHECK_MODULES(LIBCAMEL, + camel-1.2, + [have_camel=yes], + [have_camel=no]) + + if test "x$have_camel" = "xyes" ; then + AC_SUBST(LIBCAMEL, camel-1.2) + AC_SUBST(USELIBCAMEL, yes) + AC_DEFINE(HAVE_CAMEL, 1, [Camel available in the system]) + pkg_modules="$pkg_modules camel-1.2" + else + AC_MSG_ERROR([libcamel is required to compile totem-pl-parser.]) + fi +else + AC_SUBST(USELIBCAMEL, no) + camel_message=" + ************************************************************** + Compiling totem-pl-parser without libcamel. + This will break podcast support and is completely unsupported. + **************************************************************" +fi + +dnl Check for packages for building libtotem-plparser.la +PKG_CHECK_MODULES(TOTEM_PLPARSER, [$pkg_modules]) +AC_SUBST(TOTEM_PLPARSER_CFLAGS) +AC_SUBST(TOTEM_PLPARSER_LIBS) + +PKG_CHECK_MODULES([TOTEM_PLPARSER_MINI], [gio-2.0]) + +GNOME_COMMON_INIT +GNOME_DEBUG_CHECK +GNOME_COMPILE_WARNINGS([maximum]) +GNOME_CXX_WARNINGS +GNOME_MAINTAINER_MODE_DEFINES + +if test "$GCC" = "yes" ; then + CFLAGS="\ + -Wall \ + -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \ + -Wnested-externs -Wpointer-arith \ + -Wcast-align -Wsign-compare \ + -fno-strict-aliasing \ + $CFLAGS" +fi + +AC_SUBST([AM_CPPFLAGS]) +AC_SUBST([AM_CFLAGS]) +AC_SUBST([AM_CXXFLAGS]) +AC_SUBST([AM_LDFLAGS]) + +GTK_DOC_CHECK(1.0) + +AC_CONFIG_FILES([ +Makefile +totem-plparser.pc +totem-plparser-uninstalled.pc +totem-plparser-mini.pc +totem-plparser-mini-uninstalled.pc +totem-pl-parser.spec +lib/Makefile +plparse/Makefile +plparse/totem-pl-parser-features.h +po/Makefile.in +docs/Makefile +docs/reference/Makefile +docs/reference/version.xml +]) + + +AC_OUTPUT + +echo " +$camel_message +" Added: projects/haf/trunk/totem-pl-parser/docs/reference/version.xml.in =================================================================== --- projects/haf/trunk/totem-pl-parser/docs/reference/version.xml.in 2008-11-06 11:16:05 UTC (rev 16589) +++ projects/haf/trunk/totem-pl-parser/docs/reference/version.xml.in 2008-11-06 11:31:58 UTC (rev 16590) @@ -0,0 +1 @@ + at TOTEM_PL_PARSER_VERSION_MAJOR@. at TOTEM_PL_PARSER_VERSION_MINOR@. at TOTEM_PL_PARSER_VERSION_MICRO@ Property changes on: projects/haf/trunk/totem-pl-parser/docs/reference/version.xml.in ___________________________________________________________________ Name: svn:executable + * Added: projects/haf/trunk/totem-pl-parser/plparse/totem-pl-parser-features.h.in =================================================================== --- projects/haf/trunk/totem-pl-parser/plparse/totem-pl-parser-features.h.in 2008-11-06 11:16:05 UTC (rev 16589) +++ projects/haf/trunk/totem-pl-parser/plparse/totem-pl-parser-features.h.in 2008-11-06 11:31:58 UTC (rev 16590) @@ -0,0 +1,43 @@ +/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- + + Copyright (C) 2006 William Jon McCann <mccann at jhu.edu> + + The Gnome Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. + + The Gnome Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with the Gnome Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301 USA. + + Authors: William Jon McCann <mccann at jhu.edu> + */ + +#ifndef __TOTEM_PL_PARSER_VERSION_H__ +#define __TOTEM_PL_PARSER_VERSION_H__ + +/* compile time version + */ +#define TOTEM_PL_PARSER_VERSION_MAJOR (@TOTEM_PL_PARSER_VERSION_MAJOR@) +#define TOTEM_PL_PARSER_VERSION_MINOR (@TOTEM_PL_PARSER_VERSION_MINOR@) +#define TOTEM_PL_PARSER_VERSION_MICRO (@TOTEM_PL_PARSER_VERSION_MICRO@) + +/* check whether a version equal to or greater than + * major.minor.micro is present. + */ +#define TOTEM_PL_PARSER_CHECK_VERSION(major,minor,micro) \ + (TOTEM_PL_PARSER_VERSION_MAJOR > (major) || \ + (TOTEM_PL_PARSER_VERSION_MAJOR == (major) && TOTEM_PL_PARSER_VERSION_MINOR > (minor)) || \ + (TOTEM_PL_PARSER_VERSION_MAJOR == (major) && TOTEM_PL_PARSER_VERSION_MINOR == (minor) && \ + TOTEM_PL_PARSER_VERSION_MICRO >= (micro))) + + +#endif /* __TOTEM_PL_PARSER_VERSION_H__ */ + Added: projects/haf/trunk/totem-pl-parser/po/POTFILES.in =================================================================== --- projects/haf/trunk/totem-pl-parser/po/POTFILES.in 2008-11-06 11:16:05 UTC (rev 16589) +++ projects/haf/trunk/totem-pl-parser/po/POTFILES.in 2008-11-06 11:31:58 UTC (rev 16590) @@ -0,0 +1,9 @@ +# List of source files containing translatable strings. +# Please keep this file sorted alphabetically. +[encoding: UTF-8] +plparse/totem-disc.c +plparse/totem-pl-parser.c +plparse/totem-pl-parser-lines.c +plparse/totem-pl-parser-pla.c +plparse/totem-pl-parser-pls.c +plparse/totem-pl-parser-xspf.c Added: projects/haf/trunk/totem-pl-parser/totem-pl-parser.spec.in =================================================================== --- projects/haf/trunk/totem-pl-parser/totem-pl-parser.spec.in 2008-11-06 11:16:05 UTC (rev 16589) +++ projects/haf/trunk/totem-pl-parser/totem-pl-parser.spec.in 2008-11-06 11:31:58 UTC (rev 16590) @@ -0,0 +1,70 @@ +Summary: Playlist Parser Library +Name: totem-pl-parser +Version: @VERSION@ +Release: 1 +License: LGPL +Group: Libraries/Multimedia +URL: http://www.gnome.org/projects/totem/ +Source0: http://ftp.gnome.org/pub/GNOME/sources/totem/2.20/totem-pl-parser-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +BuildRequires: gcc-c++, pkgconfig, gettext, scrollkeeper +BuildRequires: perl-XML-Parser + +%description +Totem-pl-parser is a library for parsing the various playlist formats used for +online audio and video streams. + +%package devel +Summary: Libraries/include files for Totem-pl-parser. +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +Totem-pl-parser is a library for parsing the various playlist formats used for +online audio and video streams. + +This package contains the libraries and includes files necessary to develop +applications with Totem's plparser library. + + +%prep +%setup -q + +%build +%configure + +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + +# no static libs and libtool archives either +rm -f $RPM_BUILD_ROOT%{_libdir}/*.a +rm -f $RPM_BUILD_ROOT%{_libdir}/*.la + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +/sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%doc AUTHORS COPYING.LIB ChangeLog NEWS README +%{_libdir}/libtotem-plparser.so.* +%{_libdir}/libtotem-plparser-mini.so.* +%{_datadir}/gtk-doc/html +%{_datadir}/locale + +%files devel +%defattr(-, root, root) +%{_includedir}/%{name}/1/plparser +%{_libdir}/pkgconfig/*.pc +%{_libdir}/*so + +%changelog +* Fri Feb 29 2008 Christian Schaller <christian at collabora.co.uk> +- First spec file for stand alone library Added: projects/haf/trunk/totem-pl-parser/totem-plparser-mini-uninstalled.pc.in =================================================================== --- projects/haf/trunk/totem-pl-parser/totem-plparser-mini-uninstalled.pc.in 2008-11-06 11:16:05 UTC (rev 16589) +++ projects/haf/trunk/totem-pl-parser/totem-plparser-mini-uninstalled.pc.in 2008-11-06 11:31:58 UTC (rev 16590) @@ -0,0 +1,12 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ +gconf_serverdir=@libexecdir@ + + +Name: totem-plparser +Description: Totem Playlist Parser library +Version: @VERSION@ +Libs: ${pc_top_builddir}/${pcfiledir}/plparse/libtotem-plparser-mini.la +Cflags: -I${pc_top_builddir}/${pcfiledir}/plparse Added: projects/haf/trunk/totem-pl-parser/totem-plparser-mini.pc.in =================================================================== --- projects/haf/trunk/totem-pl-parser/totem-plparser-mini.pc.in 2008-11-06 11:16:05 UTC (rev 16589) +++ projects/haf/trunk/totem-pl-parser/totem-plparser-mini.pc.in 2008-11-06 11:31:58 UTC (rev 16590) @@ -0,0 +1,12 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ +gconf_serverdir=@libexecdir@ + + +Name: totem-plparser-mini +Description: Totem Playlist Parser library, mini version +Version: @VERSION@ +Libs: -L${libdir} -ltotem-plparser-mini +Cflags: -I${includedir}/totem-pl-parser/1/plparser Added: projects/haf/trunk/totem-pl-parser/totem-plparser-uninstalled.pc.in =================================================================== --- projects/haf/trunk/totem-pl-parser/totem-plparser-uninstalled.pc.in 2008-11-06 11:16:05 UTC (rev 16589) +++ projects/haf/trunk/totem-pl-parser/totem-plparser-uninstalled.pc.in 2008-11-06 11:31:58 UTC (rev 16590) @@ -0,0 +1,14 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ +gconf_serverdir=@libexecdir@ + + +Name: totem-plparser +Description: Totem Playlist Parser library +Version: @VERSION@ +Requires: gtk+-2.0 +Requires.private: libxml-2.0 camel-1.2 +Libs: ${pc_top_builddir}/${pcfiledir}/plparse/libtotem-plparser.la +Cflags: -I${pc_top_builddir}/${pcfiledir}/plparse Added: projects/haf/trunk/totem-pl-parser/totem-plparser.pc.in =================================================================== --- projects/haf/trunk/totem-pl-parser/totem-plparser.pc.in 2008-11-06 11:16:05 UTC (rev 16589) +++ projects/haf/trunk/totem-pl-parser/totem-plparser.pc.in 2008-11-06 11:31:58 UTC (rev 16590) @@ -0,0 +1,15 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ +gconf_serverdir=@libexecdir@ + + +Name: totem-plparser +Description: Totem Playlist Parser library +Version: @VERSION@ +Requires: gtk+-2.0 +Requires.private: libxml-2.0 @LIBCAMEL@ +Libs: -L${libdir} -ltotem-plparser +Cflags: -I${includedir}/totem-pl-parser/1/plparser +uselibcamel=@USELIBCAMEL@
- Previous message: [maemo-commits] r16589 - projects/connectivity/osso-obc/trunk/src
- Next message: [maemo-commits] r16591 - projects/connectivity/osso-obc/trunk/src
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]