debian/0000755000000000000000000000000012102244450007160 5ustar debian/patches/0000755000000000000000000000000011734570141010620 5ustar debian/patches/series0000644000000000000000000000007611734570141012040 0ustar 0001-Build-dynamic-static-libs-in-separate-Obj-Lib-dirs.patch debian/patches/0001-Build-dynamic-static-libs-in-separate-Obj-Lib-dirs.patch0000644000000000000000000000570111734570141023500 0ustar From: Reto Buerki Date: Wed, 28 Mar 2012 11:48:15 +0200 Subject: Build dynamic/static libs in separate Obj/Lib dirs This avoids position-independent code (PIC) in the static libraries. Conflicts: Makefile --- Makefile | 12 ++++++------ pcscada_common.gpr | 5 ++++- pcscada_lib.gpr | 8 ++++---- 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index 407aeeb..8a197a0 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ # -# Copyright (c) 2008-2009, +# Copyright (c) 2008-2012, # Reto Buerki # # This file is part of PCSC/Ada. @@ -32,9 +32,11 @@ REV = 1 VERSION = $(MAJOR).$(MINOR).$(REV) PCSCADA = libpcscada-$(VERSION) +LIBRARY_KIND = dynamic + SOURCEDIR = src DOCDIR = doc/html -ALI_FILES = lib/*.ali +ALI_FILES = lib/$(LIBRARY_KIND)/*.ali SO_LIBRARY = libpcscada.so.$(VERSION) A_LIBRARY = libpcscada.a @@ -42,8 +44,6 @@ TMPDIR = /tmp DISTDIR = $(TMPDIR)/$(PCSCADA) TARBALL = $(PCSCADA).tar.bz2 -LIBRARY_KIND = dynamic - all: build_lib build_lib: prepare @@ -98,10 +98,10 @@ install_lib: build_lib $(INSTALL) -m 444 $(ALI_FILES) $(ALIDIR) install_static: - $(INSTALL) -m 444 lib/$(A_LIBRARY) $(PREFIX)/lib + $(INSTALL) -m 444 lib/$(LIBRARY_KIND)/$(A_LIBRARY) $(PREFIX)/lib install_dynamic: - $(INSTALL) -m 444 lib/$(SO_LIBRARY) $(PREFIX)/lib + $(INSTALL) -m 444 lib/$(LIBRARY_KIND)/$(SO_LIBRARY) $(PREFIX)/lib @cd $(PREFIX)/lib && \ ln -sf $(SO_LIBRARY) libpcscada.so && \ ln -sf $(SO_LIBRARY) libpcscada.so.$(MAJOR) diff --git a/pcscada_common.gpr b/pcscada_common.gpr index 93ed61a..421b965 100644 --- a/pcscada_common.gpr +++ b/pcscada_common.gpr @@ -1,5 +1,5 @@ -- --- Copyright (c) 2009, +-- Copyright (c) 2009-2012, -- Reto Buerki -- -- This file is part of PCSC/Ada. @@ -28,6 +28,9 @@ project PCSCAda_Common is Version := external ("PCSCADA_VERSION", "0.1"); + type Lib_Type is ("static", "dynamic"); + Libtype : Lib_Type := external ("LIBRARY_KIND", "static"); + Compiler_Switches := ("-gnatygAdISuxo", "-gnatVa", "-gnat05", diff --git a/pcscada_lib.gpr b/pcscada_lib.gpr index 4621333..6542e68 100644 --- a/pcscada_lib.gpr +++ b/pcscada_lib.gpr @@ -1,5 +1,5 @@ -- --- Copyright (c) 2008, +-- Copyright (c) 2008-2012, -- Reto Buerki -- -- This file is part of PCSC/Ada. @@ -25,10 +25,10 @@ with "pcscada_common"; project PCSCAda_Lib is for Source_Dirs use ("src"); - for Object_Dir use "obj/lib"; + for Object_Dir use "obj/lib/" & PCSCAda_Common.Libtype; for Library_Name use "pcscada"; - for Library_Dir use "lib"; - for Library_Kind use external ("LIBRARY_KIND", "dynamic"); + for Library_Dir use "lib/" & PCSCAda_Common.Libtype; + for Library_Kind use PCSCAda_Common.Libtype; for Library_Version use "libpcscada.so." & PCSCAda_Common.Version; for Library_Options use ("-lpcsclite"); debian/changelog0000644000000000000000000000651412102244450011040 0ustar pcscada (0.7.1-4) unstable; urgency=low * Update copyright information * Break and replace libpcscada1-dev (Closes: #699194) -- Reto Buerki Wed, 30 Jan 2013 09:44:29 +0100 pcscada (0.7.1-3) unstable; urgency=low * Also depend on gnat package (Closes: #664722) * Add project specific git-buildpackage configuration * Add patch to build dynamic/static libs in separate dirs. This avoids position-independent code (PIC) in the static library. * libpcscada2-dev: Build and install static library * Update to Standards-Version 3.9.3 (no changes) -- Reto Buerki Wed, 28 Mar 2012 13:43:07 +0200 pcscada (0.7.1-2) unstable; urgency=low * Drop unneeded debian/README.source * Update comment header in GNAT project file * Drop incorrect libpcscada.0 symlink (Closes: #657417) -- Reto Buerki Mon, 20 Feb 2012 11:25:48 +0100 pcscada (0.7.1-1) unstable; urgency=low * Merge upstream version 0.7.1 * Migrate to gnat-4.6 * Build-Depend on libahven3-dev (Closes: #647796) * Switch to 3.0 (quilt) source package format * Drop disable-stack-check.patch * Rename libpcscada0.6 package to libpcscada0.7.1 * Bump dev package aliversion to 2 * Unapply patches from source * Update to debhelper 8 * Switch to minimal debian/rules syntax * Update to Standards-Version 3.9.2 (no changes) * Enable DM upload * Update copyright time period * Update project URLs (now hosted at codelabs.ch) * Add asciidoc and source-highlight to Build-Depends * libpcscada2-dev: Build and install html doc -- Reto Buerki Sat, 26 Nov 2011 12:27:35 +0100 pcscada (0.6-2) unstable; urgency=low * Add aliversion to dev package. * Declare conflict with libpcscada-dev. * Declare conflict with libpcscada0 (Closes: #566096). * Update to Standards-Version 3.8.4 (no changes). * Disable stack overflow checking (Closes: #520434). -- Reto Buerki Wed, 03 Feb 2010 23:08:41 +0100 pcscada (0.6-1) unstable; urgency=low * Update to Standards-Version 3.8.3 (no changes). * Update debian/rules. * Migrate to gnat-4.4 (Closes: #555100). * Update libahven Build-Depends (Closes: #560603). * Merge upstream version 0.6. * Change soname from 0 to 0.6. * Fix debhelper-but-no-misc-depends lintian warning. -- Reto Buerki Mon, 18 Jan 2010 22:05:32 +0100 pcscada (0.5-4) unstable; urgency=low * Fix wrong-section-according-to-package-name warning. - pcscada-dbg: devel -> debug. * Remove unused pcscada-dbg lintian override. * Remove "section" field from libpcscada0 package. * libpcscada-dev: Add dependency to gnat-4.3 (Closes: #533157). * Don't dh_compress .ads and .adb files. * Update to Standards-Version 3.8.2 (no changes). -- Reto Buerki Wed, 17 Jun 2009 23:00:39 +0200 pcscada (0.5-3) unstable; urgency=low * Link libpcscada (dynamic) against pcsclite. * Remove manually added libpcsclite1 shlibs:Depends. -- Reto Buerki Thu, 22 Jan 2009 21:42:49 +0100 pcscada (0.5-2) unstable; urgency=low * Fix typo in manually added libpcsclite1 shlibs:Depends. -- Reto Buerki Wed, 21 Jan 2009 11:04:11 +0100 pcscada (0.5-1) unstable; urgency=low * Initial release (Closes: #508846). -- Reto Buerki Tue, 16 Dec 2008 14:54:36 +0100 debian/copyright0000644000000000000000000000215412102244450011115 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: PCSC/Ada Upstream-Contact: Reto Buerki Source: http://www.codelabs.ch/download/ Files: * Copyright: (C) 2008-2012 Reto Buerki License: LGPL-2.1+ 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.1 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 Street, 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-2.1 file. debian/compat0000644000000000000000000000000211734567725010405 0ustar 8 debian/libpcscada0.7.1.install0000644000000000000000000000002411734567725013244 0ustar /usr/lib/*.so.0.7.1 debian/libpcscada0.7.1.lintian-overrides0000644000000000000000000000011111734567725015231 0ustar libpcscada0.7.1: shlib-with-executable-stack usr/lib/libpcscada.so.0.7.1 debian/libpcscada2-dev.examples0000644000000000000000000000001311734567725013664 0ustar examples/* debian/libpcscada2-dev.install0000644000000000000000000000010211734571110013472 0ustar /usr/lib/*.so /usr/lib/*.a /usr/lib/ada /usr/share/ada/adainclude debian/libpcscada2-dev.docs0000644000000000000000000000001311734567725012776 0ustar doc/html/* debian/gbp.conf0000644000000000000000000000011611734567725010624 0ustar [DEFAULT] upstream-branch = master debian-branch = debian pristine-tar = True debian/source/0000755000000000000000000000000011734567725010507 5ustar debian/source/format0000644000000000000000000000001411734567725011715 0ustar 3.0 (quilt) debian/rules0000755000000000000000000000116011734571003010245 0ustar #!/usr/bin/make -f %: dh ${@} override_dh_auto_build: $(MAKE) LIBRARY_KIND=dynamic $(MAKE) LIBRARY_KIND=static $(MAKE) doc override_dh_auto_install: $(MAKE) LIBRARY_KIND=dynamic PREFIX=$(CURDIR)/debian/tmp/usr install $(MAKE) LIBRARY_KIND=static PREFIX=$(CURDIR)/debian/tmp/usr install cp debian/addon/*.gpr debian/tmp/usr/share/ada/adainclude override_dh_auto_test: $(MAKE) utests # disabled for now: incorrect libpcscada.so.0 symlink problem #override_dh_install: # dh_install --fail-missing override_dh_compress: dh_compress -X.ads -X.adb -XMakefile override_dh_strip: dh_strip --dbg-package=pcscada-dbg debian/control0000644000000000000000000000331712102244450010567 0ustar Source: pcscada Section: libs Priority: optional Maintainer: Reto Buerki DM-Upload-Allowed: yes Build-Depends: asciidoc, debhelper (>= 8), gnat, gnat-4.6, libahven3-dev, libpcsclite-dev (>= 1.4.0), source-highlight Standards-Version: 3.9.3 Homepage: http://www.codelabs.ch/pcscada/ Vcs-Browser: http://git.codelabs.ch/?p=pcscada.git Vcs-Git: http://git.codelabs.ch/git/pcscada.git Package: libpcscada0.7.1 Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Ada bindings to PC/SC middleware PCSC/Ada provides thin- and thick-bindings to PC/SC-middleware for the Ada programming language. The library allows applications written in Ada to communicate with smart cards using the SCard API. Package: libpcscada2-dev Section: libdevel Architecture: any Replaces: libpcscada1-dev Breaks: libpcscada1-dev Depends: ${misc:Depends}, libpcscada0.7.1 (= ${binary:Version}), libpcsclite-dev (>= 1.4.0), gnat, gnat-4.6 Description: Ada bindings to PC/SC middleware (development) PCSC/Ada provides thin- and thick-bindings to PC/SC-middleware for the Ada programming language. The library allows applications written in Ada to communicate with smart cards using the SCard API. . This package contains the development files. Package: pcscada-dbg Section: debug Priority: extra Architecture: any Depends: ${misc:Depends}, libpcscada0.7.1 (= ${binary:Version}), libpcscada2-dev (= ${binary:Version}) Description: Ada bindings to PC/SC middleware (debug) PCSC/Ada provides thin- and thick-bindings to PC/SC-middleware for the Ada programming language. The library allows applications written in Ada to communicate with smart cards using the SCard API. . This package contains the debugging symbols. debian/addon/0000755000000000000000000000000011734567725010274 5ustar debian/addon/pcscada.gpr0000644000000000000000000000224411734567725012406 0ustar -- PCSCAda project file -- Copyright (c) 2008-2011 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 -- PCSC/Ada. Here is an example of how to use this project file: -- -- with "pcscada"; -- project Example is -- for Object_Dir use "obj"; -- for Exec_Dir use "."; -- for Main use ("example"); -- end Example; project PCSCAda is for Source_Dirs use ("/usr/share/ada/adainclude/pcscada"); for Library_Name use "pcscada"; for Library_Dir use "/usr/lib"; for Library_ALI_Dir use "/usr/lib/ada/adalib/pcscada"; for Library_Kind use "dynamic"; for Externally_Built use "true"; end PCSCAda; debian/watch0000644000000000000000000000010411734567725010233 0ustar version=3 http://www.codelabs.ch/download/libpcscada-(.*)\.tar\.bz2