--- gobject-introspection-0.6.8.orig/debian/gir1.0-glib-2.0.install +++ gobject-introspection-0.6.8/debian/gir1.0-glib-2.0.install @@ -0,0 +1,5 @@ +debian/tmp/usr/lib/girepository-1.0/Gio-2.0.typelib +debian/tmp/usr/lib/girepository-1.0/GObject-2.0.typelib +debian/tmp/usr/lib/girepository-1.0/GLib-2.0.typelib +debian/tmp/usr/lib/girepository-1.0/GIRepository-2.0.typelib +debian/tmp/usr/lib/girepository-1.0/GModule-2.0.typelib --- gobject-introspection-0.6.8.orig/debian/gobject-introspection.docs +++ gobject-introspection-0.6.8/debian/gobject-introspection.docs @@ -0,0 +1 @@ +debian/policy.txt --- gobject-introspection-0.6.8.orig/debian/compat +++ gobject-introspection-0.6.8/debian/compat @@ -0,0 +1 @@ +5 --- gobject-introspection-0.6.8.orig/debian/libgirepository1.0-dev.install +++ gobject-introspection-0.6.8/debian/libgirepository1.0-dev.install @@ -0,0 +1,5 @@ +debian/tmp/usr/lib/libgirepository-1.0.so +debian/tmp/usr/lib/libgirepository-1.0.a +debian/tmp/usr/include +debian/tmp/usr/lib/pkgconfig +debian/tmp/usr/share/gir-1.0 --- gobject-introspection-0.6.8.orig/debian/rules +++ gobject-introspection-0.6.8/debian/rules @@ -0,0 +1,29 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk +include /usr/share/cdbs/1/class/autotools.mk +include /usr/share/cdbs/1/rules/utils.mk +include /usr/share/gnome-pkg-tools/1/rules/uploaders.mk +-include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk + +DEB_MAKE_ENVVARS += HOME=$(CURDIR) +DEB_MAKE_CHECK_TARGET = check || true + +libgirepositoryN := $(shell sed -rn 's/^Package:[[:space:]]*(libgirepository-1.0[0-9]+)[[:space:]]*$$/\1/p' debian/control) + +DEB_DH_MAKESHLIBS_ARGS_$(libgirepositoryN) = -V '$(libgirepositoryN) (>= 0.6.7)' + +binary-install/gobject-introspection:: + dh_pysupport -p$(cdbs_curpkg) + +build/gobject-introspection:: debian/dh_girepository.1 +debian/dh_girepository.1:: debian/dh_girepository + pod2man -c "gobject-introspection" -r "$(DEB_VERSION)" $< $@ + +$(patsubst %,binary-predeb/%,$(DEB_ALL_PACKAGES)) :: + debian/gobject-introspection/usr/bin/dh_girepository -p$(cdbs_curpkg) + +clean:: + rm -rf $(CURDIR)/.cache + rm -f debian/dh_girepository.1 --- gobject-introspection-0.6.8.orig/debian/changelog +++ gobject-introspection-0.6.8/debian/changelog @@ -0,0 +1,141 @@ +gobject-introspection (0.6.8-1) unstable; urgency=low + + * New upstream release. + - Catch OSError when trying to run libtool. Closes: #573798. + * debian/watch: + - Don't uupdate. + * debian/control.in: + - Standards-Version is 3.8.4, no changes needed. + * debian/patches/01_disable-tests.patch: + - Removed. Build the tests again. + * debian/rules: + - Run the test suite during the build, but don't make it fatal yet. + + -- Emilio Pozuelo Monfort Sun, 14 Mar 2010 16:57:57 +0100 + +gobject-introspection (0.6.7-3) unstable; urgency=low + + * debian/gobject-introspection.install: + + Include autoconf/automake m4 macros and Makefile helpers for + gobject-introspection autoconf/automake integration. + + -- Sebastian Dröge Wed, 13 Jan 2010 09:10:57 +0100 + +gobject-introspection (0.6.7-2) unstable; urgency=low + + * debian/control.in: + - add libffi-dev as a Dependency for libgirepository1.0-dev + (Closes: #564050) + + -- Gustavo Noronha Silva Thu, 07 Jan 2010 09:30:36 -0200 + +gobject-introspection (0.6.7-1) unstable; urgency=low + + * New upstream release: + + debian/patches/02_home_permissions.patch: + - Dropped, merged upstream. + + debian/rules: + - Update shlibs version for new API. + + -- Sebastian Dröge Wed, 06 Jan 2010 07:36:50 +0100 + +gobject-introspection (0.6.5-4) unstable; urgency=low + + * Run dh_girepository in binary-predeb so that permissions are fixed + before. Closes: #551529. + + -- Josselin Mouette Mon, 19 Oct 2009 08:14:55 +0200 + +gobject-introspection (0.6.5-3) unstable; urgency=low + + * Remove obsolete statement regarding a dropped package. + * Switch to python-support, the dependencies created by python-central + are broken. + * Introduce debhelper script, dh_girepository. + + Install it in /usr/bin. + * policy.txt: ship the GObject introspection mini policy. + * Rename packages and rearrange files according to it. + * Fix sections accordingly. + + -- Josselin Mouette Sun, 18 Oct 2009 11:57:20 +0200 + +gobject-introspection (0.6.5-2) unstable; urgency=low + + * 02_home_permissions.patch: new patch. Do not crash when $HOME is not + writable. Closes: #549126. + * Fix spelling errors in copyright. + + -- Josselin Mouette Thu, 01 Oct 2009 09:49:46 +0200 + +gobject-introspection (0.6.5-1) unstable; urgency=low + + * New upstream release: + + debian/rules: + - Update shlibs version to 0.6.5. + * debian/control.in: + + Update Standards-Version to 3.8.3. + + -- Sebastian Dröge Sat, 05 Sep 2009 07:31:58 +0200 + +gobject-introspection (0.6.4-1) unstable; urgency=low + + * New upstream release + + -- Gustavo Noronha Silva Wed, 01 Jul 2009 09:45:28 -0300 + +gobject-introspection (0.6.3-1) unstable; urgency=low + + * New upstream release + * debian/control, debian/python-giscanner.install, + debian/gobject-introspection.install: + - python modules were made private with this release; I consulted with + upstream and decided that following suit, and removing + python-giscanner was in order + * debian/control.in: + - Make libgirepository1.0-dev conflict with and replace + libgirepository-dev + - Add a gobject-introspection-freedesktop package to hold the + freedesktop-related modules which are also being shipped in this + source package now. + + -- Gustavo Noronha Silva Wed, 24 Jun 2009 17:03:09 -0300 + +gobject-introspection (0.6.2-1) unstable; urgency=low + + * New upstream release: + + debian/control.in, + debian/*.install, + debian/rules: + - All libraries and directories now have 1.0 in their filenames, + change everything accordingly. + + -- Sebastian Dröge Thu, 22 Jan 2009 07:43:46 +0100 + +gobject-introspection (0.6.1-2) unstable; urgency=low + + * debian/rules: + + Set HOME to the builddir and clean it correctly as it's used + for a cache directory and otherwise fails on buildds with non-writable + HOME. + + -- Sebastian Dröge Sat, 06 Dec 2008 21:19:19 +0100 + +gobject-introspection (0.6.1-1) unstable; urgency=low + + [ Loic Minier ] + * Extract libgirepository package name from control. + * Use $(cdbs_curpkg). + + [ Sebastian Dröge ] + * New upstream release: + + debian/control.in: + - Update build-depends. + + -- Sebastian Dröge Thu, 27 Nov 2008 08:23:51 +0100 + +gobject-introspection (0.6.0-1) unstable; urgency=low + + * Initial version (Closes: #497451). + + -- Sebastian Dröge Sat, 01 Nov 2008 12:16:00 +0100 + --- gobject-introspection-0.6.8.orig/debian/control +++ gobject-introspection-0.6.8/debian/control @@ -0,0 +1,128 @@ +# This file is autogenerated. DO NOT EDIT! +# +# Modifications should be made to debian/control.in instead. +# This file is regenerated automatically in the clean target. + +Source: gobject-introspection +Section: devel +Priority: optional +Maintainer: Sebastian Dröge +Uploaders: Debian GNOME Maintainers , Emilio Pozuelo Monfort , Gustavo Noronha Silva , Josselin Mouette +Build-Depends: debhelper (>= 5), + cdbs, + gnome-pkg-tools (>= 0.10), + python-dev (>= 2.5), + python-support, + pkg-config, + flex, + bison, + libglib2.0-dev (>= 2.16.0), + libffi-dev, + libtool +Standards-Version: 3.8.4 +XS-Python-Version: >= 2.5 +Homepage: http://live.gnome.org/GObjectIntrospection + +Package: libgirepository1.0-0 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, + ${misc:Depends} +Description: Library for handling GObject introspection data (runtime library) + GObject Introspection is a project for providing machine readable + introspection data of the API of C libraries. This introspection + data can be used in several different use cases, for example + automatic code generation for bindings, API verification and documentation + generation. + . + GObject Introspection contains tools to generate and handle the + introspection data. + . + This package contains a C library for handling the introspection data. + +Package: libgirepository1.0-dev +Section: libdevel +Architecture: any +Depends: libgirepository1.0-0 (= ${binary:Version}), + libglib2.0-dev (>= 2.16.0), + libffi-dev, + ${shlibs:Depends}, + ${misc:Depends} +Conflicts: libgirepository-dev, + gobject-introspection-glib-2.0, + gobject-introspection-freedesktop +Replaces: libgirepository-dev +Description: Library for handling GObject introspection data (development files) + GObject Introspection is a project for providing machine readable + introspection data of the API of C libraries. This introspection + data can be used in several different use cases, for example + automatic code generation for bindings, API verification and documentation + generation. + . + GObject Introspection contains tools to generate and handle the + introspection data. + . + This package contains the headers for the C library for handling the + introspection data. + +Package: gobject-introspection +Architecture: any +Depends: ${shlibs:Depends}, + ${misc:Depends}, + ${python:Depends}, + libgirepository1.0-0 (= ${binary:Version}) +Provides: ${python:Provides} +Description: Generate interface introspection data for GObject libraries + GObject Introspection is a project for providing machine readable + introspection data of the API of C libraries. This introspection + data can be used in several different use cases, for example + automatic code generation for bindings, API verification and documentation + generation. + . + GObject Introspection contains tools to generate and handle the + introspection data. + . + This package contains tools for extracting introspection data from libraries + and transforming it to different formats. + +Package: gir1.0-glib-2.0 +Architecture: any +Section: libs +Depends: ${gir:Depends}, + ${misc:Depends} +Conflicts: gobject-introspection-glib-2.0 +Description: Introspection data for GLib, GObject, Gio and GModule + GObject Introspection is a project for providing machine readable + introspection data of the API of C libraries. This introspection + data can be used in several different use cases, for example + automatic code generation for bindings, API verification and documentation + generation. + . + GObject Introspection contains tools to generate and handle the + introspection data. + . + This package contains the introspection data for the GLib, GObject, + GModule and Gio libraries. + +Package: gir1.0-freedesktop +Architecture: any +Section: libs +Depends: ${gir:Depends}, + ${misc:Depends} +Conflicts: gobject-introspection-freedesktop +Description: Introspection data for some FreeDesktop components + GObject Introspection is a project for providing machine readable + introspection data of the API of C libraries. This introspection + data can be used in several different use cases, for example + automatic code generation for bindings, API verification and documentation + generation. + . + GObject Introspection contains tools to generate and handle the + introspection data. + . + This package contains small pieces of introspection data for the Cairo, + FontConfig, FreeType, GL, and some XOrg libraries. They are + distributed in this package temporarily, while the original sources + do not include support for GObject Introspection. They are far from + complete and only include what is necessary for other introspection + packages to work properly. --- gobject-introspection-0.6.8.orig/debian/dh_girepository +++ gobject-introspection-0.6.8/debian/dh_girepository @@ -0,0 +1,308 @@ +#! /usr/bin/perl -w + +=head1 NAME + +dh_girepository - compute dependencies for GObject introspection packages + +=cut + +use strict; +use File::Find; +use Debian::Debhelper::Dh_Lib; + +=head1 SYNOPSIS + +B [I] [-lI] [-X I [...]] + +=head1 DESCRIPTION + +dh_girepository is a debhelper program to compute dependencies for packages +shipping GObject introspection data. + +The dependencies are generated in the ${gir:Depends} substitution variable. + +=head1 OPTIONS + +=over 4 + +=item B<-l>I + +Specify a directory (or a colon-separated list of directories) where to look +for the .gir XML files that were used to generate the .typelib files that +are scanned. This option is only necessary if those files are not shipped in +another, architecture-dependent package. + +=item B<-X> I + +Exclude files that contain I anywhere in their filename from being +analyzed. + +=back + +=head1 CONFORMS TO + +GObject introspection mini policy as of 2009-10-18. + +=cut + +# Initialisation code +init(options => { + "l=s", => \$dh{L_PARAMS}, +}); +my @paths_first = (); +if ($dh{L_PARAMS}) { + push @paths_first, split /:/, $dh{L_PARAMS}; +} +isnative($dh{MAINPACKAGE}); # Necessary to have $dh{VERSION} +my $bin_version = $dh{VERSION}; +my @archpackages = getpackages("arch"); + +my $typelib_path = "/usr/lib/girepository-1.0"; +my $gir_path = "/usr/share/gir-1.0"; +my $arch_triplet = `dpkg-architecture -qDEB_BUILD_GNU_TYPE`; +chomp $arch_triplet; +my @libdirs = ("/lib/$arch_triplet", "/lib", "/usr/lib/$arch_triplet", "/usr/lib"); + +# Get Build-Depends in an array +my @bdeps; +my $cur = 0; +open (my $control, "<", "debian/control") or error ("Cannot open debian/control"); +while (<$control>) { + chomp; + s/\s+$//; + if ($cur) { + if (/^\s+(.*)$/) { + push @bdeps, split ",",$1; + if ($1 !~ /,$/) { + $cur = 0; + } + } else { + $cur = 0; + } + } + if (/^Build-Depends:\s*(.*)$/) { + push @bdeps, split ",",$1; + if ($1 =~ /,$/) { + $cur = 1; + } else { + $cur = 0; + } + } +} +close $control; + + +# We can’t parse .typelib files, so we need the corresponding .gir +# somewhere in the same source package (or with -l). + +sub find_gir { + my $req = shift; + $req =~ s/\.typelib$//; + my $f; + foreach my $path (@paths_first) { + $f = "$path/$req.gir"; + if (-f $f) { + verbose_print ("Found $req.gir in $path"); + return $f; + } + } + foreach my $otherpkg (@archpackages) { + $f = tmpdir($otherpkg)."$gir_path/$req.gir"; + if (-f $f) { + verbose_print ("Found $req.gir in $otherpkg package"); + return $f; + } + } + error("Could not find gir file for $req.typelib"); +} + + +# Function used for dependencies on other .typelib files + +sub require_typelib { + my $req = shift; + my $package = shift; + my $fullpath = "$typelib_path/$req"; + + verbose_print ("Dependency: $req"); + if (-f tmpdir($package)."$fullpath") { + verbose_print(" found in the same package"); + return; + } + foreach my $otherpkg (@archpackages) { + if (-f tmpdir($otherpkg)."$fullpath") { + verbose_print (" found in $otherpkg"); + addsubstvar ($package, "gir:Depends", $otherpkg, "= $bin_version"); + return; + } + } + error("Could not find $req dependency") unless -f "$fullpath"; + my @output = (split ':', `dpkg -S $fullpath 2>/dev/null`); + error("$fullpath does not belong to any package") unless @output; + my $deppkg = $output[0]; + # Look for version information in build-dependencies + my $found = 0; + foreach my $bdep (@bdeps) { + if ($bdep =~ /^\s*([a-z0-9\._\-\+]+)\s*\((.*)\)/) { + if ($1 eq $deppkg) { + addsubstvar ($package, "gir:Depends", $1, $2); + $found = 1; + } + } + } + if (! $found) { + addsubstvar ($package, "gir:Depends", $deppkg); + } +} + + +sub find_library_in_package { + my $req = shift; + my $package = shift; + my $tmp = ""; + if ($package) { + $tmp = tmpdir ($package); + } + my @loclibdirs = grep -d, map "$tmp$_", @libdirs; + foreach my $libdir (@loclibdirs) { + if (-f "$libdir/$req" or -l "$libdir/$req") { + return "$libdir/$req"; + } + } +} + +sub find_library { + my $req = shift; + my $package = shift; + + my $file = find_library_in_package ($req, $package); + if ($file) { + verbose_print (" found in the same package"); + } else { + foreach my $otherpkg (@archpackages) { + $file = find_library_in_package ($req, $otherpkg); + if ($file) { + verbose_print (" found in $otherpkg"); + last; + } + } + } + if (!$file) { + $file = find_library_in_package ($req); + if ($file) { + verbose_print (" found on filesystem"); + } else { + error ("Could not find library $req"); + } + } + + if (-l $file and not -f $file) { + # We have a symbolic link that points to another package + verbose_print (" ... it's a symlink ..."); + return find_library (readlink ($file), $package); + } + return $file; +} + +foreach my $package (@{$dh{DOPACKAGES}}) { + my $tmp = tmpdir($package); + my $ext = pkgext($package); + my $typelibdir = "$tmp$typelib_path"; + my @bin_files = (); + my @c_files = (); + my @typelib_deps = (); + next unless -d $typelibdir; + opendir(DIRHANDLE, $typelibdir); + while (my $typelib = readdir(DIRHANDLE)) { + next unless $typelib =~ /\.typelib$/; + next if excludefile ($typelib); + my $girfile = find_gir ($typelib); + error("Unable to open $girfile") unless open (my $f, "<", $girfile); + verbose_print ("$girfile..."); + my @libraries = (); + my @symbols = (); + my $infunction = 0; + while (<$f>) { + # "Parse" the XML file + chomp; + if (//) { + # Dependency on another typelib file + my $deptypelib="$1-$2.typelib"; + verbose_print (" Dependency: $deptypelib"); + if (! grep { $_ eq $deptypelib } @typelib_deps) { + push @typelib_deps, $deptypelib; + } + } elsif (/shared-library="(.*?)"/) { + # Dependency on a shared library + foreach my $shlibname (split ",", $1) { + if ($shlibname !~ /\.so/) { + $shlibname = "lib$shlibname.so" + } + verbose_print (" Library: $shlibname"); + push @libraries, find_library ($shlibname, $package); + } + } elsif (/<(method|constructor|function)\s.*c:identifier="(.*?)"/) { + push @symbols, $2; + } elsif (/<(method|constructor|function)/) { + $infunction = 1; + } elsif ($infunction and /c:identifier="(.*?)"/) { + push @symbols, $1; + } + if (/>$/) { + $infunction = 0; + } + } + close $f; + verbose_print(sprintf(" %d symbols found", $#symbols+1)); + if (@libraries or @symbols) { + my $c_file = "$typelibdir/$typelib.c"; + my $bin_file = "$typelibdir/$typelib.so"; + verbose_print (" writing $c_file"); + if (!$dh{NO_ACT}){ + error("Unable to open $girfile") unless open (F, ">", $c_file); + print F "void gir_dummy_function () {\n"; + foreach my $symbol (@symbols) { + print F "$symbol ();\n"; + } + print F "}"; + close F; + } + push @c_files, $c_file; + + # Build a dummy binary using all referenced symbols and libraries + # We use -shared so that gcc doesn’t try to resolve references + verbose_print (" building $bin_file"); + doit (("gcc", "-shared", "-fPIC", "-o", $bin_file, $c_file, @libraries)); + push @bin_files, $bin_file; + } + } + if (@bin_files) { + # dpkg-shlibdeps expects this directory to exist + if (! -d "$tmp/DEBIAN") { + doit("install","-o",0,"-g",0,"-d","$tmp/DEBIAN"); + } + + # Let dpkg-shlibdeps generate the corresponding dependencies + # It must run first since otherwise it overwrites the variable + doit (("dpkg-shlibdeps", "-pgir", "-Tdebian/${ext}substvars", "-xlibc6", "-xlibc0", @bin_files)); + } + doit (("rm", "-f", @c_files, @bin_files)); + + # Generate dependencies on other .typelib files + foreach my $dep (@typelib_deps) { + require_typelib ($dep, $package); + } +} + +=head1 SEE ALSO + +L + +This program is a part of gobject-introspection but is made to work with +debhelper. + +=head1 AUTHOR + +Josselin Mouette + +=cut --- gobject-introspection-0.6.8.orig/debian/libgirepository1.0-0.install +++ gobject-introspection-0.6.8/debian/libgirepository1.0-0.install @@ -0,0 +1 @@ +debian/tmp/usr/lib/libgirepository-1.0.so.* --- gobject-introspection-0.6.8.orig/debian/gobject-introspection.install +++ gobject-introspection-0.6.8/debian/gobject-introspection.install @@ -0,0 +1,7 @@ +debian/tmp/usr/bin +debian/tmp/usr/share/aclocal +debian/tmp/usr/share/gobject-introspection-1.0 +debian/tmp/usr/share/man +debian/tmp/usr/lib/gobject-introspection/giscanner/*.py +debian/tmp/usr/lib/gobject-introspection/giscanner/*.so +debian/dh_girepository /usr/bin --- gobject-introspection-0.6.8.orig/debian/copyright +++ gobject-introspection-0.6.8/debian/copyright @@ -0,0 +1,152 @@ +This package was debianized by Sebastian Dröge on +Sun, 21 Sep 2008 19:32:37 +0200. + +It was downloaded from: + + +Upstream Authors: + Matthias Clasen + Johan Dahlin + Jürg Billeter + Philip Van Hoof + Rob Taylor + +Copyright: + + For everything not noted explicitly below: + Copyright (C) 2005 Matthias Clasen + + + For girepository/girparser.c: + Copyright (C) 2008 Philip Van Hoof + + For giscanner/ast.py, + giscanner/cgobject.py, + giscanner/config.py.in, + giscanner/girparser.py, + giscanner/girwriter.py, + giscanner/giscannermodule.c, + giscanner/glibast.py, + giscanner/glibtransformer.py, + giscanner/__init__.py, + giscanner/odict.py, + giscanner/utils.py, + giscanner/transformer.py, + giscanner/xmlwriter.py, + giscanner/sourcescanner.py: + Copyright (C) 2008 Johan Dahlin + + For giscanner/sourcescanner.[ch]: + Copyright (C) 2007 Jürg Billeter + Copyright (C) 2008 Johan Dahlin + + For giscanner/scannerparser.y, + giscanner/scannerlexer.l: + Copyright (c) 1997 Sandro Sigala + Copyright (c) 2007-2008 Jürg Billeter + + For misc/pep8.py: + Copyright (C) 2006 Johann C. Rocholl + + For misc/pyflakes.py: + Copyright (c) 2005-2008 Divmod, Inc. + + For tools/g-ir-scanner: + Copyright (C) 2008 Johan Dahlin + +License: + + For everything not noted explicitly below: + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program 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 General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + + On Debian systems, the complete text of the GNU General Public + License can be found in `/usr/share/common-licenses/GPL'. + +---------------------------------------- + + For girepository/*.[ch], + giscanner/giscannermodule.c, + giscanner/sourcescanner.[ch], + tools/compiler.c, + tools/generate.c: + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This 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 + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the + Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + MA 02110-1301, USA. + + On Debian systems, the complete text of the GNU Lesser General Public + License can be found in `/usr/share/common-licenses/LGPL'. + +---------------------------------------- + + For giscanner/scannerlexer.l, + giscanner/scannerparser.y: + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR + IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, + INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +---------------------------------------- + + For misc/pep8.py, + misc/pyflakes.py: + + Permission is hereby granted, free of charge, to any person + obtaining a copy of this software and associated documentation files + (the "Software"), to deal in the Software without restriction, + including without limitation the rights to use, copy, modify, merge, + publish, distribute, sublicense, and/or sell copies of the Software, + and to permit persons to whom the Software is furnished to do so, + subject to the following conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS + BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + --- gobject-introspection-0.6.8.orig/debian/gir1.0-freedesktop.install +++ gobject-introspection-0.6.8/debian/gir1.0-freedesktop.install @@ -0,0 +1,8 @@ +debian/tmp/usr/lib/girepository-1.0/cairo-1.0.typelib +debian/tmp/usr/lib/girepository-1.0/fontconfig-2.0.typelib +debian/tmp/usr/lib/girepository-1.0/freetype2-2.0.typelib +debian/tmp/usr/lib/girepository-1.0/GL-1.0.typelib +debian/tmp/usr/lib/girepository-1.0/libxml2-2.0.typelib +debian/tmp/usr/lib/girepository-1.0/xfixes-4.0.typelib +debian/tmp/usr/lib/girepository-1.0/xft-2.0.typelib +debian/tmp/usr/lib/girepository-1.0/xlib-2.0.typelib --- gobject-introspection-0.6.8.orig/debian/policy.txt +++ gobject-introspection-0.6.8/debian/policy.txt @@ -0,0 +1,95 @@ +GObject introspection mini-policy +================================= + +1. Directory layout + +GObject-introspection data is generally provided in two formats: + * XML format in /usr/share/gir-1.0/Foo-X.Y.gir + * binary format in /usr/lib/girepository-1.0/Foo-X.Y.typelib + + +2. Binary introspection packages + +The binary typelib file must be put in an architecture-dependent package +named after its namespace. The name should be gir1.0-NAMESPACE-VERSION. +For example, the package containing WebKit-1.0.typelib will be named +gir1.0-webkit-1.0. + +Giant repositories of unrelated introspection data should be avoided. +However, related libraries that are known to evolve together can live in +the same package (example: Gst*-0.10). + +Introspection packages belong in section libs for the moment. If there +are enough packages to justify it, a new section will be requested to +the FTP masters. + + +3. XML introspection data + +The XML format introspection must be shipped in another +architecture-dependent* package of the same source. + + * This is so that it is guaranteed to be accessible at + build time by the tool that will compute the + dependencies for the .typelib files. + +If the source package also contains the library itself, this data should +be in the development binary package. If the introspection data is split +from the library source (e.g. for gobject-instrospection-repository), a +separate package containing this XML data can be created, in section +libdevel. + +The package containing the XML data doesn’t need to depend on the +introspection package. It can contain XML data for several unrelated +libraries, since in the end it doesn’t depend on them. + + +4. Dependencies of introspection packages + +Introspection packages must depend on the libraries they reference, with +a sufficient version for the symbols they reference. + +For that effect, the dh_girepository helper, shipped in the +gobject-introspection binary package, wraps dpkg-shlibdeps and adds all +dependencies accordingly, in the ${gir:Depends} variable. + +Introspection packages must depend on other introspection packages that +are referenced through statements. The helper generates such +dependencies as well. Build-dependencies on packages containing them +must be set, with sufficient version information. + +Packages containing the XML data don’t need any specific new +dependencies. + + +5. Dependencies on introspection packages + +Currently, there are only Seed (JavaScript) scripts to use these +introspection packages. In the future, there might also be Python or +other interpreted languages. + +Generating dependencies automatically for interpreted languages is not +reliable. Therefore, these packages must depend by hand on the +appropriate gir1.0-* packages. The interpreters themselves don’t need to +depend on packages they don’t use directly. + + +6. Example + +Suppose that libfoo-2.0 is an API built on libbar-3.0. The libfoo-2.0 +source generates the following files, put in the following packages: + libfoo-2.0-3 /usr/lib/libfoo-2.0.so.3* + libfoo-2.0-dev /usr/lib/libfoo-2.0.so (and other usual stuff) + libfoo-2.0-dev /usr/share/gir-1.0/Foo-2.0.gir + gir1.0-foo-2.0 /usr/lib/girepository-1.0/Foo-2.0.typelib + +libfoo-2.0-dev Depends: libfoo-2.0-3, libbar-3.0-dev +gir1.0-foo-2.0 Depends: ${gir:Depends} which expands to: +libfoo-2.0-3, gir1.0-bar-3.0 + +If foobar is a package containing the following JS script: + #! /usr/bin/seed + Foo = imports.gi.Foo; + // Stuff that uses the Foo 2.0 API + +Then foobar Depends: gir1.0-foo-2.0 --- gobject-introspection-0.6.8.orig/debian/gobject-introspection.manpages +++ gobject-introspection-0.6.8/debian/gobject-introspection.manpages @@ -0,0 +1 @@ +debian/dh_girepository.1 --- gobject-introspection-0.6.8.orig/debian/control.in +++ gobject-introspection-0.6.8/debian/control.in @@ -0,0 +1,123 @@ +Source: gobject-introspection +Section: devel +Priority: optional +Maintainer: Sebastian Dröge +Uploaders: @GNOME_TEAM@ +Build-Depends: debhelper (>= 5), + cdbs, + gnome-pkg-tools (>= 0.10), + python-dev (>= 2.5), + python-support, + pkg-config, + flex, + bison, + libglib2.0-dev (>= 2.16.0), + libffi-dev, + libtool +Standards-Version: 3.8.4 +XS-Python-Version: >= 2.5 +Homepage: http://live.gnome.org/GObjectIntrospection + +Package: libgirepository1.0-0 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, + ${misc:Depends} +Description: Library for handling GObject introspection data (runtime library) + GObject Introspection is a project for providing machine readable + introspection data of the API of C libraries. This introspection + data can be used in several different use cases, for example + automatic code generation for bindings, API verification and documentation + generation. + . + GObject Introspection contains tools to generate and handle the + introspection data. + . + This package contains a C library for handling the introspection data. + +Package: libgirepository1.0-dev +Section: libdevel +Architecture: any +Depends: libgirepository1.0-0 (= ${binary:Version}), + libglib2.0-dev (>= 2.16.0), + libffi-dev, + ${shlibs:Depends}, + ${misc:Depends} +Conflicts: libgirepository-dev, + gobject-introspection-glib-2.0, + gobject-introspection-freedesktop +Replaces: libgirepository-dev +Description: Library for handling GObject introspection data (development files) + GObject Introspection is a project for providing machine readable + introspection data of the API of C libraries. This introspection + data can be used in several different use cases, for example + automatic code generation for bindings, API verification and documentation + generation. + . + GObject Introspection contains tools to generate and handle the + introspection data. + . + This package contains the headers for the C library for handling the + introspection data. + +Package: gobject-introspection +Architecture: any +Depends: ${shlibs:Depends}, + ${misc:Depends}, + ${python:Depends}, + libgirepository1.0-0 (= ${binary:Version}) +Provides: ${python:Provides} +Description: Generate interface introspection data for GObject libraries + GObject Introspection is a project for providing machine readable + introspection data of the API of C libraries. This introspection + data can be used in several different use cases, for example + automatic code generation for bindings, API verification and documentation + generation. + . + GObject Introspection contains tools to generate and handle the + introspection data. + . + This package contains tools for extracting introspection data from libraries + and transforming it to different formats. + +Package: gir1.0-glib-2.0 +Architecture: any +Section: libs +Depends: ${gir:Depends}, + ${misc:Depends} +Conflicts: gobject-introspection-glib-2.0 +Description: Introspection data for GLib, GObject, Gio and GModule + GObject Introspection is a project for providing machine readable + introspection data of the API of C libraries. This introspection + data can be used in several different use cases, for example + automatic code generation for bindings, API verification and documentation + generation. + . + GObject Introspection contains tools to generate and handle the + introspection data. + . + This package contains the introspection data for the GLib, GObject, + GModule and Gio libraries. + +Package: gir1.0-freedesktop +Architecture: any +Section: libs +Depends: ${gir:Depends}, + ${misc:Depends} +Conflicts: gobject-introspection-freedesktop +Description: Introspection data for some FreeDesktop components + GObject Introspection is a project for providing machine readable + introspection data of the API of C libraries. This introspection + data can be used in several different use cases, for example + automatic code generation for bindings, API verification and documentation + generation. + . + GObject Introspection contains tools to generate and handle the + introspection data. + . + This package contains small pieces of introspection data for the Cairo, + FontConfig, FreeType, GL, and some XOrg libraries. They are + distributed in this package temporarily, while the original sources + do not include support for GObject Introspection. They are far from + complete and only include what is necessary for other introspection + packages to work properly. --- gobject-introspection-0.6.8.orig/debian/watch +++ gobject-introspection-0.6.8/debian/watch @@ -0,0 +1,3 @@ +version=2 +http://ftp.gnome.org/pub/GNOME/sources/gobject-introspection/([\d.]*)/ \ + gobject-introspection-(.*)\.tar\.gz