diff -Nru grilo-0.3.9/bindings/vala/meson.build grilo-0.3.10/bindings/vala/meson.build --- grilo-0.3.9/bindings/vala/meson.build 2019-07-17 08:56:58.000000000 +0000 +++ grilo-0.3.10/bindings/vala/meson.build 2019-09-12 15:01:01.000000000 +0000 @@ -5,13 +5,6 @@ # # Copyright (C) 2016 Igalia S.L. All rights reserved. -vapidir = join_paths([ - prefix, - get_option('datadir'), - 'vala', - 'vapi', -]) - vala_sources = [ # LIBRARY, GIR, DEPS ['grilo-@0@'.format(grl_majorminor), grl_gir[0], ['gmodule-2.0', 'gio-2.0']], ['grilo-net-@0@'.format(grl_majorminor), grlnet_gir[0], ['gio-2.0']], @@ -26,6 +19,7 @@ gnome.generate_vapi(lib, sources: [custom_vala, gir], packages: deps, - install: true) + install: true, + install_dir: vapidir) endforeach diff -Nru grilo-0.3.9/debian/changelog grilo-0.3.10/debian/changelog --- grilo-0.3.9/debian/changelog 2019-08-09 12:10:34.000000000 +0000 +++ grilo-0.3.10/debian/changelog 2019-09-16 19:09:04.000000000 +0000 @@ -1,3 +1,9 @@ +grilo (0.3.10-1) unstable; urgency=medium + + * New upstream release (Closes: #940518) + + -- Alberto Garcia Mon, 16 Sep 2019 22:09:04 +0300 + grilo (0.3.9-1) unstable; urgency=medium * New upstream release. diff -Nru grilo-0.3.9/grilo-0.3.pc.in grilo-0.3.10/grilo-0.3.pc.in --- grilo-0.3.9/grilo-0.3.pc.in 2019-07-17 08:56:58.000000000 +0000 +++ grilo-0.3.10/grilo-0.3.pc.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,17 +0,0 @@ -prefix=@prefix@ -exec_prefix=@exec_prefix@ -libdir=@libdir@ -includedir=@includedir@/@GRL_NAME@ -plugindir=@GRL_PLUGINS_DIR@ -datarootdir=${prefix}/share -datadir=${datarootdir} -girdir=@INTROSPECTION_GIRDIR@ -typelibdir=@INTROSPECTION_TYPELIBDIR@ - -Name: Grilo Framework -Description: Grilo Framework for multimedia developers -Version: @VERSION@ -Libs: -L${libdir} -l@GRL_NAME@ -Cflags: -I${includedir} -Requires: glib-2.0 gobject-2.0 gmodule-2.0 gio-2.0 libxml-2.0 -Requires.Private: diff -Nru grilo-0.3.9/grilo-net-0.3.pc.in grilo-0.3.10/grilo-net-0.3.pc.in --- grilo-0.3.9/grilo-net-0.3.pc.in 2019-07-17 08:56:58.000000000 +0000 +++ grilo-0.3.10/grilo-net-0.3.pc.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,15 +0,0 @@ -prefix=@prefix@ -exec_prefix=@exec_prefix@ -libdir=@libdir@ -includedir=@includedir@/@GRL_NAME@ -datarootdir=${prefix}/share -datadir=${datarootdir} -girdir=@INTROSPECTION_GIRDIR@ -typelibdir=@INTROSPECTION_TYPELIBDIR@ - -Name: Grilo networking library -Description: Grilo networking helpers for plug-ins -Requires: @GRL_NAME@ -Version: @GRLNET_VERSION@ -Libs: -L${libdir} -lgrlnet-0.3 -Cflags: -I${includedir} diff -Nru grilo-0.3.9/grilo-net-uninstalled.pc.in grilo-0.3.10/grilo-net-uninstalled.pc.in --- grilo-0.3.9/grilo-net-uninstalled.pc.in 2019-07-17 08:56:58.000000000 +0000 +++ grilo-0.3.10/grilo-net-uninstalled.pc.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,15 +0,0 @@ -# the standard variables don't make sense for an uninstalled copy -prefix= -exec_prefix= -libdir= -includedir= -girdir=@abs_top_builddir@/libs/ -typelibdir=@abs_top_builddir@/libs - -Name: Grilo networking library -Description: Grilo networking helpers for plug-ins -Requires: @GRL_NAME@ -Version: @GRLNET_VERSION@ - -Libs: @abs_top_builddir@/libs/net/libgrlnet-0.3.la -Cflags: -I@abs_top_srcdir@/libs -I@abs_top_builddir@/libs diff -Nru grilo-0.3.9/grilo-pls-0.3.pc.in grilo-0.3.10/grilo-pls-0.3.pc.in --- grilo-0.3.9/grilo-pls-0.3.pc.in 2019-07-17 08:56:58.000000000 +0000 +++ grilo-0.3.10/grilo-pls-0.3.pc.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,15 +0,0 @@ -prefix=@prefix@ -exec_prefix=@exec_prefix@ -libdir=@libdir@ -includedir=@includedir@/@GRL_NAME@ -datarootdir=${prefix}/share -datadir=${datarootdir} -girdir=@INTROSPECTION_GIRDIR@ -typelibdir=@INTROSPECTION_TYPELIBDIR@ - -Name: Grilo playlist library -Description: Grilo playlist utility -Requires: @GRL_NAME@ -Version: @GRLPLS_VERSION@ -Libs: -L${libdir} -lgrlpls-0.3 -Cflags: -I${includedir} diff -Nru grilo-0.3.9/grilo-pls-uninstalled.pc.in grilo-0.3.10/grilo-pls-uninstalled.pc.in --- grilo-0.3.9/grilo-pls-uninstalled.pc.in 2019-07-17 08:56:58.000000000 +0000 +++ grilo-0.3.10/grilo-pls-uninstalled.pc.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,15 +0,0 @@ -# the standard variables don't make sense for an uninstalled copy -prefix= -exec_prefix= -libdir= -includedir= -girdir=@abs_top_builddir@/libs/ -typelibdir=@abs_top_builddir@/libs - -Name: Grilo playlist library -Description: Grilo playlist utility -Requires: @GRL_NAME@ -Version: @GRLPLS_VERSION@ - -Libs: @abs_top_builddir@/libs/pls/libgrlpls-0.3.la -Cflags: -I@abs_top_srcdir@/libs -I@abs_top_builddir@/libs diff -Nru grilo-0.3.9/grilo-uninstalled.pc.in grilo-0.3.10/grilo-uninstalled.pc.in --- grilo-0.3.9/grilo-uninstalled.pc.in 2019-07-17 08:56:58.000000000 +0000 +++ grilo-0.3.10/grilo-uninstalled.pc.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,17 +0,0 @@ -# the standard variables don't make sense for an uninstalled copy -prefix= -exec_prefix= -libdir= -includedir=@abs_top_builddir@/src -plugindir=@abs_top_builddir@ -girdir=@abs_top_builddir@/src -typelibdir=@abs_top_builddir@/src - -Name: Grilo Framework -Description: Grilo Framework for multimedia developers, Not Installed -Version: @VERSION@ -Libs: @abs_top_builddir@/src/lib@GRL_NAME@.la -Cflags: -I@abs_top_srcdir@/src -I@abs_top_srcdir@/src/data -Requires: glib-2.0 gobject-2.0 gmodule-2.0 gio-2.0 libxml-2.0 -Requires.Private: - diff -Nru grilo-0.3.9/libs/net/meson.build grilo-0.3.10/libs/net/meson.build --- grilo-0.3.9/libs/net/meson.build 2019-07-17 08:56:58.000000000 +0000 +++ grilo-0.3.10/libs/net/meson.build 2019-09-12 15:01:01.000000000 +0000 @@ -43,6 +43,22 @@ include_directories: [libgrl_inc, libgrlnet_inc], dependencies: [libsoup_dep, libgrl_dep]) +grlnet_pc = pkgconfig.generate(libgrlnet, + filebase: 'grilo-net-@0@'.format(grl_majorminor), + requires: libgrl, + subdirs: grl_name, + name: 'Grilo networking library', + description: 'Grilo networking helpers for plug-ins', + version: grlnet_version, + variables: [ + 'exec_prefix=${prefix}', + 'datarootdir=' + datadir_for_pc_file, + 'datadir=${datarootdir}', + 'girdir=' + girdir_for_pc_file, + 'typelibdir=' + typelibdir_for_pc_file, + ], +) + if enable_gir grlnet_gir = gnome.generate_gir(libgrlnet, sources: grlnet_headers + grlnet_sources, diff -Nru grilo-0.3.9/libs/pls/meson.build grilo-0.3.10/libs/pls/meson.build --- grilo-0.3.9/libs/pls/meson.build 2019-07-17 08:56:58.000000000 +0000 +++ grilo-0.3.10/libs/pls/meson.build 2019-09-12 15:01:01.000000000 +0000 @@ -28,6 +28,22 @@ dependencies: [totem_plparser_dep, libgrl_dep], include_directories: libgrl_inc) +grlpls_pc = pkgconfig.generate(libgrlpls, + filebase: 'grilo-pls-@0@'.format(grl_majorminor), + requires: libgrl, + subdirs: grl_name, + name: 'Grilo playlist library', + description: 'Grilo playlist utility', + version: grlpls_version, + variables: [ + 'exec_prefix=${prefix}', + 'datarootdir=' + datadir_for_pc_file, + 'datadir=${datarootdir}', + 'girdir=' + girdir_for_pc_file, + 'typelibdir=' + typelibdir_for_pc_file, + ], +) + if enable_gir gnome.generate_gir(libgrlpls, sources: grlpls_headers + grlpls_sources, diff -Nru grilo-0.3.9/meson.build grilo-0.3.10/meson.build --- grilo-0.3.9/meson.build 2019-07-17 08:56:58.000000000 +0000 +++ grilo-0.3.10/meson.build 2019-09-12 15:01:01.000000000 +0000 @@ -6,14 +6,14 @@ # Copyright (C) 2016 Igalia S.L. All rights reserved. project('grilo', 'c', - version: '0.3.9', + version: '0.3.10', default_options: [ 'buildtype=debugoptimized', 'c_std=gnu99', 'warning_level=1' ], license: 'LGPL 2.1', - meson_version: '>= 0.37.0') + meson_version: '>= 0.46.0') grilo_version = meson.project_version() grlnet_version = meson.project_version() @@ -63,7 +63,7 @@ enable_vala = get_option('enable-vala') if enable_vala - vapigen = find_program('vapigen', required: true) + find_program('vapigen', required: true) endif enable_testui = get_option('enable-test-ui') @@ -73,9 +73,32 @@ endif prefix = get_option('prefix') +includedir = join_paths(prefix, get_option('includedir')) libdir = join_paths(prefix, get_option('libdir')) plugins_dir = join_paths(libdir, grl_name) +plugins_dir_for_pc_file = join_paths('${libdir}', grl_name) localedir = join_paths(prefix, get_option('localedir')) +datadir_unprefixed = get_option('datadir') +datadir = join_paths(prefix, datadir_unprefixed) +datadir_for_pc_file = join_paths('${prefix}', datadir_unprefixed) + +girdir = join_paths(datadir, 'gir-1.0') +girdir_for_pc_file = join_paths('${datadir}', 'gir-1.0') +typelibdir = join_paths(libdir, 'girepository-1.0') +typelibdir_for_pc_file = join_paths('${libdir}', 'girepository-1.0') +gobject_introspection = dependency('gobject-introspection-1.0', required: false) +if gobject_introspection.found() + girdir = gobject_introspection.get_pkgconfig_variable('girdir', define_variable: ['datadir', datadir]) + girdir_for_pc_file = gobject_introspection.get_pkgconfig_variable('girdir', define_variable: ['datadir', '${datadir}']) + typelibdir = gobject_introspection.get_pkgconfig_variable('typelibdir', define_variable: ['libdir', libdir]) + typelibdir_for_pc_file = gobject_introspection.get_pkgconfig_variable('typelibdir', define_variable: ['libdir', '${libdir}']) +endif + +vapidir = join_paths(datadir, 'vala', 'vapi') +vapigen = dependency('vapigen', required: false) +if vapigen.found() + vapidir = vapigen.get_pkgconfig_variable('vapidir', define_variable: ['datadir', datadir]) +endif cdata = configuration_data() cdata.set_quoted('VERSION', grilo_version) @@ -89,35 +112,8 @@ cdata.set('HAVE_OAUTH', oauth_dep.found()) endif -pkgconfig_files = [ - 'grilo-@0@'.format(grl_majorminor), - 'grilo-net-@0@'.format(grl_majorminor), - 'grilo-pls-@0@'.format(grl_majorminor), -] - -pkgconf = configuration_data() -pkgconf.set('prefix', prefix) -pkgconf.set('exec_prefix', '${prefix}') -pkgconf.set('libdir', libdir) -pkgconf.set('includedir', '${prefix}/@0@'.format(get_option('includedir'))) -pkgconf.set('GRL_NAME', grl_name) -pkgconf.set('GRL_PLUGINS_DIR', plugins_dir) -pkgconf.set('INTROSPECTION_GIRDIR', '${datarootdir}/gir-1.0') -pkgconf.set('INTROSPECTION_TYPELIBDIR', '${libdir}/girepository-1.0'.format(get_option('libdir'))) -pkgconf.set('VERSION', grilo_version) -pkgconf.set('GRLNET_VERSION', grlnet_version) -pkgconf.set('GRLPLS_VERSION', grlpls_version) - -foreach p: pkgconfig_files - infile = p + '.pc.in' - outfile = p + '.pc' - configure_file(input: infile, - output: outfile, - configuration: pkgconf, - install_dir: '@0@/pkgconfig'.format(get_option('libdir'))) -endforeach - gnome = import('gnome') +pkgconfig = import('pkgconfig') subdir('src') subdir('libs') diff -Nru grilo-0.3.9/NEWS grilo-0.3.10/NEWS --- grilo-0.3.9/NEWS 2019-07-17 08:56:58.000000000 +0000 +++ grilo-0.3.10/NEWS 2019-09-12 15:01:01.000000000 +0000 @@ -1,3 +1,16 @@ +NEW in 0.3.10 +============= + * !48 - build: Use variables in pc files + * !47 - fix grl_data_add_related_keys annotation + * !46 - Use only one primary header for style + + * Contributors to this release: + Jan Tojnar + Jean Felder + Roger + Victor Toso + worldofpeace + NEW in 0.3.9 ============ * !43 - grl-metadata-key: fix introspection diff -Nru grilo-0.3.9/README.md grilo-0.3.10/README.md --- grilo-0.3.9/README.md 2019-07-17 08:56:58.000000000 +0000 +++ grilo-0.3.10/README.md 2019-09-12 15:01:01.000000000 +0000 @@ -1,44 +1,47 @@ +# Grilo + Thanks for using Grilo! -# What is Grilo? +## What is Grilo? Grilo is a framework for browsing and searching media content from various sources using a single API. -# Where can I find more? +## Where can I find more? We have a [wiki page](https://wiki.gnome.org/Projects/Grilo) You can subscribe to our [mailing list](http://mail.gnome.org/mailman/listinfo/grilo-list) You can join us on the IRC: + #grilo on GIMPNet -# How do I start? +## How do I start? Once you have Grilo installed, you may want to play around with the examples (See section "Examples") or check its documentation and tutorials (See section "Documentation"). -## Fedora +### Fedora ``` sudo dnf install grilo ``` -## Archlinux +### Arch Linux ``` sudo pacman -S grilo ``` -## Others +### Others Otherwise you have to download Grilo's source code from GNOME's repository and build it -don't worry, it takes only a few seconds-, see the section below if you want to do that. -## Building from git +### Building from git ``` git clone https://gitlab.gnome.org/GNOME/grilo.git @@ -48,7 +51,7 @@ sudo ninja -C build install ``` -# Examples +## Examples If you are looking for some example to play with you can try grilo-test-ui, a simple GTK+ based test application for testing purposes. You can find it @@ -72,11 +75,11 @@ If you are looking for a step-by-step guide from beginning to end, here it is: -## Building Grilo-Plugins +### Building Grilo-Plugins Check the [Grilo-Plugins README file](https://gitlab.gnome.org/GNOME/grilo-plugins/blob/master/README.md) for instructions -## Compiling/Running grilo-test-ui +### Compiling/Running grilo-test-ui ``` git clone https://gitlab.gnome.org/GNOME/grilo.git diff -Nru grilo-0.3.9/src/data/grl-data.c grilo-0.3.10/src/data/grl-data.c --- grilo-0.3.9/src/data/grl-data.c 2019-07-17 08:56:58.000000000 +0000 +++ grilo-0.3.10/src/data/grl-data.c 2019-09-12 15:01:01.000000000 +0000 @@ -635,7 +635,7 @@ /** * grl_data_set_for_id: * @data: data to change - * @key_name: name of the key to change or add + * @key_name: name of the key to change or add * @value: the new value * * Sets the first value associated with @key_name in @data. This @key_name is used to create @@ -693,7 +693,7 @@ /** * grl_data_add_for_id: * @data: data to change - * @key_name: name of the key to change or add + * @key_name: name of the key to change or add * @value: the new value * * Appends the value associated with @key_name to @data. This @key_name is used to create @@ -868,7 +868,7 @@ /** * grl_data_add_related_keys: * @data: data to change - * @relkeys: a set of related properties with their values + * @relkeys: (transfer full): a set of related properties with their values * * Adds a new set of values into @data. * diff -Nru grilo-0.3.9/src/meson.build grilo-0.3.10/src/meson.build --- grilo-0.3.9/src/meson.build 2019-07-17 08:56:58.000000000 +0000 +++ grilo-0.3.10/src/meson.build 2019-09-12 15:01:01.000000000 +0000 @@ -89,19 +89,40 @@ '-DHAVE_CONFIG_H', ] +libgrl_deps = [ + glib_dep, gobject_dep, gmodule_dep, gio_dep, libxml_dep +] + libgrl = shared_library(grl_name, sources: grl_sources + grl_marshal + grl_type_builtins + grl_priv_headers, install: true, soversion: soversion, version: grilo_lt_version, - dependencies: [glib_dep, gobject_dep, gmodule_dep, gio_dep, libxml_dep], + dependencies: libgrl_deps, c_args: c_args, link_args: '-Wl,--no-undefined', include_directories: libgrl_inc) - + libgrl_dep = declare_dependency(link_with: libgrl, include_directories: libgrl_inc, - dependencies: [glib_dep, gobject_dep, gmodule_dep, gio_dep, libxml_dep]) + dependencies: libgrl_deps) + +grl_pc = pkgconfig.generate(libgrl, + filebase: grl_name, + requires: libgrl_deps, + subdirs: grl_name, + name: 'Grilo Framework', + description: 'Grilo Framework for multimedia developers', + version: grilo_version, + variables: [ + 'exec_prefix=${prefix}', + 'datarootdir=' + datadir_for_pc_file, + 'datadir=${datarootdir}', + 'girdir=' + girdir_for_pc_file, + 'typelibdir=' + typelibdir_for_pc_file, + 'plugindir=' + plugins_dir_for_pc_file, + ], +) if enable_gir gir_extra_args = [ @@ -120,5 +141,7 @@ dependencies: [ gobject_dep, gmodule_dep, gio_dep ], includes: [ 'GObject-2.0', 'GModule-2.0', 'Gio-2.0' ], install: true, + install_dir_gir: girdir, + install_dir_typelib: typelibdir, extra_args: gir_extra_args) endif