debian/0000755000000000000000000000000011734541150007167 5ustar debian/source/0000755000000000000000000000000011734541150010467 5ustar debian/source/format0000644000000000000000000000001411734541150011675 0ustar 3.0 (quilt) debian/control0000644000000000000000000000300011734541150010563 0ustar Source: dbusada Section: libs Priority: optional Maintainer: Reto Buerki DM-Upload-Allowed: yes Build-Depends: asciidoc, debhelper (>= 8), gnat, gnat-4.6, libahven3-dev, libdbus-1-dev, libdbus-glib-1-dev, source-highlight Standards-Version: 3.9.3 Homepage: http://www.codelabs.ch/dbus-ada/ Vcs-Browser: http://git.codelabs.ch/?p=dbus-ada.git Vcs-Git: http://git.codelabs.ch/git/dbus-ada.git Package: libdbusada0.2 Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Ada bindings to the D-Bus message bus system The D_Bus/Ada library provides an Ada binding to the D-Bus message bus used for inter-process communication on Linux desktop systems. Package: libdbusada0.2-dev Section: libdevel Architecture: any Depends: ${misc:Depends}, libdbusada0.2 (= ${binary:Version}), libdbus-1-dev, libdbus-glib-1-dev, gnat, gnat-4.6 Description: Ada bindings to the D-Bus message bus system The D_Bus/Ada library provides an Ada binding to the D-Bus message bus used for inter-process communication on Linux desktop systems. . This package contains the development files. Package: libdbusada0.2-dbg Section: debug Priority: extra Architecture: any Depends: ${misc:Depends}, libdbusada0.2 (= ${binary:Version}), libdbusada0.2-dev (= ${binary:Version}) Description: Ada bindings to the D-Bus message bus system The D_Bus/Ada library provides an Ada binding to the D-Bus message bus used for inter-process communication on Linux desktop systems. . This package contains the debugging symbols. debian/patches/0000755000000000000000000000000011734541150010616 5ustar debian/patches/0001-Build-dynamic-static-libs-in-separate-Obj-Lib-dirs.patch0000644000000000000000000001122411734541150023473 0ustar From: Reto Buerki Date: Mon, 26 Mar 2012 18:24:21 +0200 Subject: Build dynamic/static libs in separate Obj/Lib dirs This avoids position-independent code (PIC) in the static libraries. Closes: #663672 Conflicts: Makefile --- Makefile | 14 ++++++++------ d_bus_ada_common.gpr | 5 ++++- d_bus_ada_lib.gpr | 8 ++++---- d_bus_ada_lib_thin.gpr | 8 ++++---- 4 files changed, 20 insertions(+), 15 deletions(-) diff --git a/Makefile b/Makefile index d7033a3..602d2a2 100644 --- a/Makefile +++ b/Makefile @@ -44,17 +44,19 @@ install_lib: build_lib install -d $(PREFIX)/lib/gnat install -m 644 $(SRCDIR)/*.ad[bs] $(PREFIX)/include/dbus-ada install -m 644 $(THINDIR)/*.ad[bs] $(PREFIX)/include/dbus-ada/thin - install -m 444 $(LIBDIR)/*.ali $(PREFIX)/lib/dbus-ada - install -m 444 $(LIBDIR)/thin/*.ali $(PREFIX)/lib/dbus-ada/thin + install -m 444 $(LIBDIR)/$(LIBRARY_KIND)/*.ali $(PREFIX)/lib/dbus-ada + install -m 444 $(LIBDIR)/thin/$(LIBRARY_KIND)/*.ali \ + $(PREFIX)/lib/dbus-ada/thin install -m 644 $(GPR_FILES) $(PREFIX)/lib/gnat install_static: - install -m 444 $(LIBDIR)/libdbusada.a $(PREFIX)/lib/dbus-ada - install -m 444 $(LIBDIR)/thin/libdbusada-thin.a $(PREFIX)/lib/dbus-ada/thin + install -m 444 $(LIBDIR)/$(LIBRARY_KIND)/libdbusada.a $(PREFIX)/lib/dbus-ada + install -m 444 $(LIBDIR)/thin/$(LIBRARY_KIND)/libdbusada-thin.a $(PREFIX)/lib/dbus-ada/thin install_dynamic: - install -m 444 $(LIBDIR)/$(SO_LIBRARY) $(PREFIX)/lib/dbus-ada - install -m 444 $(LIBDIR)/thin/$(SO_LIBRARY_THIN) $(PREFIX)/lib/dbus-ada/thin + install -m 444 $(LIBDIR)/$(LIBRARY_KIND)/$(SO_LIBRARY) $(PREFIX)/lib/dbus-ada + install -m 444 $(LIBDIR)/thin/$(LIBRARY_KIND)/$(SO_LIBRARY_THIN) \ + $(PREFIX)/lib/dbus-ada/thin cd $(PREFIX)/lib/dbus-ada && \ ln -sf $(SO_LIBRARY) libdbusada.so && \ ln -sf $(SO_LIBRARY) libdbusada.so.$(MAJOR) diff --git a/d_bus_ada_common.gpr b/d_bus_ada_common.gpr index 21ac3e1..b6f8a21 100644 --- a/d_bus_ada_common.gpr +++ b/d_bus_ada_common.gpr @@ -1,7 +1,7 @@ -- -- D_Bus/Ada - An Ada binding to D-Bus -- --- Copyright (C) 2011 Reto Buerki +-- Copyright (C) 2011, 2012 Reto Buerki -- -- This program is free software; you can redistribute it and/or -- modify it under the terms of the GNU General Public License @@ -32,6 +32,9 @@ project D_Bus_Ada_Common is Version := external ("VERSION", "unknown"); + type Lib_Type is ("static", "dynamic"); + Libtype : Lib_Type := external ("LIBRARY_KIND", "static"); + Compiler_Switches := ("-gnatygAdISuxo", "-gnatVa", "-gnat05", diff --git a/d_bus_ada_lib.gpr b/d_bus_ada_lib.gpr index 8f82f1e..317db91 100644 --- a/d_bus_ada_lib.gpr +++ b/d_bus_ada_lib.gpr @@ -1,7 +1,7 @@ -- -- D_Bus/Ada - An Ada binding to D-Bus -- --- Copyright (C) 2011 Reto Buerki +-- Copyright (C) 2011, 2012 Reto Buerki -- -- This program is free software; you can redistribute it and/or -- modify it under the terms of the GNU General Public License @@ -32,10 +32,10 @@ with "d_bus_ada_lib_thin"; project D_Bus_Ada_Lib is for Source_Dirs use ("src"); - for Object_Dir use "obj/lib"; + for Object_Dir use "obj/lib/" & D_Bus_Ada_Common.Libtype; for Library_Name use "dbusada"; - for Library_Dir use "lib"; - for Library_Kind use external ("LIBRARY_KIND", "dynamic"); + for Library_Dir use "lib/" & D_Bus_Ada_Common.Libtype; + for Library_Kind use D_Bus_Ada_Common.Libtype; for Library_Version use "libdbusada.so." & D_Bus_Ada_Common.Version; for Library_Options use D_Bus_Ada_Common.Linker_Switches; diff --git a/d_bus_ada_lib_thin.gpr b/d_bus_ada_lib_thin.gpr index 7198b73..8d4aed5 100644 --- a/d_bus_ada_lib_thin.gpr +++ b/d_bus_ada_lib_thin.gpr @@ -1,7 +1,7 @@ -- -- D_Bus/Ada - An Ada binding to D-Bus -- --- Copyright (C) 2011 Reto Buerki +-- Copyright (C) 2011, 2012 Reto Buerki -- -- This program is free software; you can redistribute it and/or -- modify it under the terms of the GNU General Public License @@ -31,10 +31,10 @@ with "d_bus_ada_common"; project D_Bus_Ada_Lib_Thin is for Source_Dirs use ("thin"); - for Object_Dir use "obj/thin"; + for Object_Dir use "obj/thin/" & D_Bus_Ada_Common.Libtype; for Library_Name use "dbusada-thin"; - for Library_Dir use "lib/thin"; - for Library_Kind use external ("LIBRARY_KIND", "dynamic"); + for Library_Dir use "lib/thin/" & D_Bus_Ada_Common.Libtype; + for Library_Kind use D_Bus_Ada_Common.Libtype; for Library_Version use "libdbusada-thin.so." & D_Bus_Ada_Common.Version; Compiler_Switches := ("-gnat05", debian/patches/series0000644000000000000000000000007611734541150012036 0ustar 0001-Build-dynamic-static-libs-in-separate-Obj-Lib-dirs.patch debian/changelog0000644000000000000000000000060011734541150011035 0ustar dbusada (0.2-2) unstable; urgency=low * Add project specific git-buildpackage configuration * Build dynamic/static libs in separate Obj/Lib dirs (Closes: #663672) -- Reto Buerki Tue, 27 Mar 2012 14:39:21 +0200 dbusada (0.2-1) unstable; urgency=low * Initial release (Closes: #651159) -- Reto Buerki Sun, 11 Mar 2012 21:15:11 +0100 debian/gbp.conf0000644000000000000000000000011611734541150010604 0ustar [DEFAULT] upstream-branch = master debian-branch = debian pristine-tar = True debian/addon/0000755000000000000000000000000011734541150010254 5ustar debian/addon/dbus_ada.gpr0000644000000000000000000000224711734541150012535 0ustar -- D_Bus/Ada project file -- Copyright (C) 2012 Reto Buerki -- -- 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 2 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. -- -- This project file is designed to help build applications that use -- D_Bus/Ada. Here is an example of how to use this project file: -- -- with "dbus_ada"; -- project Example is -- for Object_Dir use "obj"; -- for Exec_Dir use "."; -- for Main use ("example"); -- end Example; project DBus_Ada is for Source_Dirs use ("/usr/share/ada/adainclude/dbus-ada"); for Library_Name use "dbusada"; for Library_Dir use "/usr/lib"; for Library_ALI_Dir use "/usr/lib/ada/adalib/dbus-ada"; for Library_Kind use "dynamic"; for Externally_Built use "true"; end DBus_Ada; debian/rules0000755000000000000000000000125711734541150010254 0ustar #!/usr/bin/make -f %: dh ${@} override_dh_auto_build: $(MAKE) $(MAKE) LIBRARY_KIND=static $(MAKE) doc override_dh_auto_install: $(MAKE) PREFIX=$(CURDIR)/debian/tmp install $(MAKE) LIBRARY_KIND=static PREFIX=$(CURDIR)/debian/tmp install rm -rf debian/tmp/lib/gnat rm debian/tmp/lib/dbus-ada/libdbusada.so.0 rm debian/tmp/lib/dbus-ada/thin/libdbusada-thin.so.0 mkdir -p debian/tmp/usr/share/ada/adainclude cp debian/addon/*.gpr debian/tmp/usr/share/ada/adainclude override_dh_auto_test: $(MAKE) tests override_dh_install: dh_install --fail-missing override_dh_compress: dh_compress -X.ads -X.adb -XMakefile override_dh_strip: dh_strip --dbg-package=libdbusada0.2-dbg debian/libdbusada0.2-dev.examples0000644000000000000000000000001311734541150014007 0ustar examples/* debian/libdbusada0.2-dev.install0000644000000000000000000000056411734541150013652 0ustar /usr/share/ada/adainclude lib/dbus-ada/*.so /usr/lib/ lib/dbus-ada/thin/*.so /usr/lib/ lib/dbus-ada/*.a /usr/lib/ lib/dbus-ada/thin/*.a /usr/lib/ lib/dbus-ada/*.ali /usr/lib/ada/adalib/dbus-ada/ lib/dbus-ada/thin/*.ali /usr/lib/ada/adalib/dbus-ada/ include/dbus-ada/*.ad* /usr/share/ada/adainclude/dbus-ada/ include/dbus-ada/thin/*.ad* /usr/share/ada/adainclude/dbus-ada/ debian/libdbusada0.2.lintian-overrides0000644000000000000000000000010511734541150015055 0ustar libdbusada0.2: shlib-with-executable-stack usr/lib/libdbusada.so.0.2 debian/copyright0000644000000000000000000000262711734541150011131 0ustar Author: Reto Buerki Download: http://www.codelabs.ch/download/ Files: * Copyright: (C) 2011 Reto Buerki License: GPL-2+ with Ada exception 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 2 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. . As special exception, if other files instantiate generics from this unit, or you link this unit with other files to produce an executable this unit does not by itself cause the resulting executable to be covered by the GNU General Public License. This exception does not however invalidate any other reasons why the executable file might be covered by the GNU Public License. . On Debian systems, the complete text of the GNU Lesser General Public License can be found in /usr/share/common-licenses/GPL-2 file. debian/libdbusada0.2.install0000644000000000000000000000010311734541150013063 0ustar lib/dbus-ada/*.so.0.2 /usr/lib lib/dbus-ada/thin/*.so.0.2 /usr/lib debian/libdbusada0.2-dev.docs0000644000000000000000000000001311734541150013121 0ustar doc/html/* debian/compat0000644000000000000000000000000211734541150010365 0ustar 8 debian/watch0000644000000000000000000000010411734541150010213 0ustar version=3 http://www.codelabs.ch/download/libdbusada-(.*)\.tar\.bz2