--- ahven-1.6.orig/debian/rules +++ ahven-1.6/debian/rules @@ -0,0 +1,78 @@ +#!/usr/bin/make -f + +include /usr/share/quilt/quilt.make + +DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH) + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp + + $(MAKE) clean + rm -f tester tap_tester + + dh_clean + +build: build-stamp +build-stamp: $(QUILT_STAMPFN) + dh_testdir + + CFLAGS="$(CFLAGS)" $(MAKE) + + LD_LIBRARY_PATH=./lib $(MAKE) check + +ifneq ($(DEB_BUILD_ARCH),armel) +ifneq ($(DEB_BUILD_ARCH),mips) + $(MAKE) docs +endif +endif + + touch build-stamp + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + + $(MAKE) PREFIX=$(CURDIR)/debian/tmp/usr install + + mv debian/tmp/usr/lib/ahven/libahven.so.* debian/tmp/usr/lib + ln -sf libahven.so.`basename debian/tmp/usr/lib/libahven.so.*.* | sed -e 's/libahven.so.//'` debian/tmp/usr/lib/libahven.so + ln -sf libahven.so.`basename debian/tmp/usr/lib/libahven.so.*.* | sed -e 's/libahven.so.//'` debian/tmp/usr/lib/libahven.so.`basename debian/tmp/usr/lib/libahven.so.*.* | sed -e 's/libahven.so.//' -e 's/\..*//'` + + mkdir -p debian/tmp/usr/share/ada/adainclude + mv debian/tmp/usr/include/ahven debian/tmp/usr/share/ada/adainclude + + mkdir -p debian/tmp/usr/lib/ada/adalib + mv debian/tmp/usr/lib/ahven debian/tmp/usr/lib/ada/adalib + + mv debian/tmp/usr/lib/gnat/* debian/tmp/usr/share/ada/adainclude + rmdir debian/tmp/usr/lib/gnat + + cp debian/addon/*.gpr debian/tmp/usr/share/ada/adainclude + +binary: binary-arch + +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples + dh_install --fail-missing --sourcedir=debian/tmp + dh_lintian + dh_strip --dbg-package=ahven-dbg + dh_compress + dh_fixperms + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-indep: + +.PHONY: clean build install binary binary-arch binary-indep --- ahven-1.6.orig/debian/compat +++ ahven-1.6/debian/compat @@ -0,0 +1 @@ +7 --- ahven-1.6.orig/debian/libahven16.install +++ ahven-1.6/debian/libahven16.install @@ -0,0 +1 @@ +/usr/lib/*.so.* --- ahven-1.6.orig/debian/libahven-dev.install +++ ahven-1.6/debian/libahven-dev.install @@ -0,0 +1,3 @@ +/usr/lib/*.so +/usr/lib/ada +/usr/share/ada/adainclude --- ahven-1.6.orig/debian/control +++ ahven-1.6/debian/control @@ -0,0 +1,44 @@ +Source: ahven +Section: libs +Priority: optional +Maintainer: Reto Buerki +Uploaders: Adrian-Ken Rueegsegger +Build-Depends: debhelper (>= 7), adabrowse [alpha amd64 hppa i386 ia64 kfreebsd-i386 mips mipsel powerpc ppc64 s390 sparc], gnat, quilt +Standards-Version: 3.8.1 +Homepage: http://ahven.sourceforge.net/ +Vcs-Browser: http://git.codelabs.ch/?p=debian/ahven.git +Vcs-Git: git://git.codelabs.ch/debian/ahven.git + +Package: libahven16 +Architecture: alpha amd64 armel hppa i386 ia64 kfreebsd-i386 mips mipsel powerpc ppc64 s390 sparc +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Unit test library for Ada + Ahven is a simple unit test library for the Ada 95 programming language. It + is loosely modeled after JUnit, and some ideas are taken from AUnit. Ahven is + free software distributed under permissive ISC license and should work with any + Ada 95 compiler. + +Package: libahven-dev +Section: libdevel +Architecture: alpha amd64 armel hppa i386 ia64 kfreebsd-i386 mips mipsel powerpc ppc64 s390 sparc +Depends: libahven16 (= ${binary:Version}) +Description: Unit test library for Ada (development) + Ahven is a simple unit test library for the Ada 95 programming language. It + is loosely modeled after JUnit, and some ideas are taken from AUnit. Ahven is + free software distributed under permissive ISC license and should work with any + Ada 95 compiler. + . + This package contains the development files. + +Package: ahven-dbg +Section: debug +Priority: extra +Architecture: alpha amd64 armel hppa i386 ia64 kfreebsd-i386 mips mipsel powerpc ppc64 s390 sparc +Depends: libahven16 (= ${binary:Version}), libahven-dev (= ${binary:Version}) +Description: Unit test library for Ada (debug) + Ahven is a simple unit test library for the Ada 95 programming language. It + is loosely modeled after JUnit, and some ideas are taken from AUnit. Ahven is + free software distributed under permissive ISC license and should work with any + Ada 95 compiler. + . + This package contains the debug symbols. --- ahven-1.6.orig/debian/libahven-dev.examples +++ ahven-1.6/debian/libahven-dev.examples @@ -0,0 +1 @@ +examples/* --- ahven-1.6.orig/debian/libahven-dev.docs +++ ahven-1.6/debian/libahven-dev.docs @@ -0,0 +1 @@ +doc/* --- ahven-1.6.orig/debian/changelog +++ ahven-1.6/debian/changelog @@ -0,0 +1,93 @@ +ahven (1.6-2) unstable; urgency=low + + * Fix wrong-section-according-to-package-name warning. + - ahven-dbg: devel -> debug. + * Add patch to fix vstring truncation bug. + * Update to Standards-Version 3.8.1 (no changes). + + -- Reto Buerki Sun, 10 May 2009 19:30:58 +0200 + +ahven (1.6-1) unstable; urgency=low + + * Update upstream homepage location. + * Add Vcs-Browser setting to control file. + * Remove "section" field from binary package. + * Expand extended package description. + * Merging upstream version 1.6. + * Bump soname from 14 to 16 (new upstream release). + * Update clean target in debian/rules. + * Point the watch file to the new Sourceforge location. + * Update the download location in debian/copyright. + * Add Vcs-Git setting to control file. + + -- Reto Buerki Wed, 04 Mar 2009 11:55:29 +0100 + +ahven (1.4-2) unstable; urgency=low + + * Don't generate docs on mips (Closes: #486861, #513745). + * Use dh_prep instead of deprecated dh_clean -k. + + -- Reto Buerki Wed, 04 Feb 2009 21:54:06 +0100 + +ahven (1.4-1) unstable; urgency=low + + * Update maintainer and uploader e-mail address. + * Merging upstream version 1.4. + * Run ahven unit tests in build target. + * Add Debian specific ahven project file. + + -- Reto Buerki Wed, 28 Jan 2009 01:07:43 +0100 + +ahven (1.3-2) unstable; urgency=low + + * Removed CFLAGS from rules (deprecated with new dpkg). + * Don't build ahven docs for armel architecture, adabrowse is not + available there. + * Added fail-missing to dh_install. + * Corrected architecture fields in control file. + + -- Reto Buerki Tue, 02 Sep 2008 10:36:04 +0200 + +ahven (1.3-1) unstable; urgency=low + + * New upstream release: + - Bumps soname from 12 to 13 - no other packages need to be transitioned. + * Updated ahven sources to version 1.3. + * Removed dpatch from Build-Depends. + - No need to patch documentation generation any more. + * Updated to Standards-Version: 3.8.0 (no changes). + * Updated supported architectures. + - Added kfreebsd-i386, mips, mipsel, ppc64 to list. + + -- Reto Buerki Mon, 25 Aug 2008 23:24:01 +0200 + +ahven (1.2-1) unstable; urgency=low + + * New upstream release: + - Bumps soname 11 to 12 - no other packages need to be transitioned. + * API-documentation is built with adabrowse now. + * Added adabrowse to Build-Depends. + * Added patch to build docs for ahven-xml_runner.ads and ahven-compat.ads + as well. + + -- Reto Buerki Sun, 18 May 2008 21:02:37 +0200 + +ahven (1.1-3) unstable; urgency=low + + * Added missing docs in libahven-dev package. + + -- Reto Buerki Sun, 11 May 2008 08:59:23 +0000 + +ahven (1.1-2) unstable; urgency=low + + * Only building ahven on architectures supported by gnat + (alpha amd64 hppa i386 ia64 powerpc s390 sparc). + * Further excluding mips, mipsel (not ported yet). + + -- Reto Buerki Thu, 08 May 2008 10:16:06 +0200 + +ahven (1.1-1) unstable; urgency=low + + * Initial release. + + -- Reto Buerki Fri, 11 Apr 2008 11:20:14 +0200 --- ahven-1.6.orig/debian/copyright +++ ahven-1.6/debian/copyright @@ -0,0 +1,35 @@ +Author: Tero Koskinen +Download: http://ahven.sourceforge.net/index.html#download + +Files: * +Copyright: (C) 2007-2008 Tero Koskinen +License: other-BSD + Permission to use, copy, modify, and distribute this software for any purpose + with or without fee is hereby granted, provided that the above copyright + notice and this permission notice appear in all copies. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH + REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND + FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, + INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM + LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR + OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + PERFORMANCE OF THIS SOFTWARE. + +Files: debian/* +Copyright: (C) 2008 Reto Buerki +License: GPL-3+ + 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-3 file. --- ahven-1.6.orig/debian/libahven16.docs +++ ahven-1.6/debian/libahven16.docs @@ -0,0 +1 @@ +ROADMAP --- ahven-1.6.orig/debian/watch +++ ahven-1.6/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://sf.net/ahven/ahven-(.+)\.tar\.gz --- ahven-1.6.orig/debian/ahven-dbg.lintian-overrides +++ ahven-1.6/debian/ahven-dbg.lintian-overrides @@ -0,0 +1 @@ +ahven-dbg: dbg-package-missing-depends ahven --- ahven-1.6.orig/debian/patches/fix-vstrings-truncation.patch +++ ahven-1.6/debian/patches/fix-vstrings-truncation.patch @@ -0,0 +1,58 @@ +Author: Reto Buerki +Description: Fix vstrings off-by one truncation error, add test for bug. + +--- ahven-1.6.orig/src/ahven-vstrings.adb ++++ ahven-1.6/src/ahven-vstrings.adb +@@ -31,7 +31,7 @@ + else + return VString'(Len => VString_Size'Last, + Data => Source (Source'First .. Source'First +- + VString_Size'Last)); ++ + VString_Size'Last - 1)); + end if; + end Truncate; + +--- ahven-1.6.orig/test/vstring_tests.adb ++++ ahven-1.6/test/vstring_tests.adb +@@ -26,7 +26,8 @@ + "Test Overlong String"); + Framework.Add_Test_Routine (T, Test_VString_Create'Access, + "Test VString Create"); +- ++ Framework.Add_Test_Routine (T, Test_Overlong_Truncate'Access, ++ "Test Overlong Truncate"); + end Initialize; + + procedure Test_Overlong_String is +@@ -49,6 +50,19 @@ + null; -- ok, this was expected + end Test_Overlong_String; + ++ procedure Test_Overlong_Truncate is ++ use Ahven.VStrings; ++ Too_Big_Length : constant := 200; ++ ++ Long_String : constant String (1 .. Too_Big_Length) := (others => ' '); ++ Target : VString; ++ begin ++ Target := Truncate (Source => Long_String); ++ ++ Assert (Condition => Length (Target) = VString_Max_Size, ++ Message => "Length was invalid"); ++ end Test_Overlong_Truncate; ++ + procedure Test_VString_Create is + use Ahven.VStrings; + +--- ahven-1.6.orig/test/vstring_tests.ads ++++ ahven-1.6/test/vstring_tests.ads +@@ -20,6 +20,9 @@ + type Test is new Ahven.Framework.Test_Case with null record; + + procedure Initialize (T : in out Test); ++ ++ procedure Test_Overlong_Truncate; ++ + private + procedure Test_Overlong_String; + procedure Test_VString_Create; --- ahven-1.6.orig/debian/patches/series +++ ahven-1.6/debian/patches/series @@ -0,0 +1 @@ +fix-vstrings-truncation.patch --- ahven-1.6.orig/debian/addon/ahven.gpr +++ ahven-1.6/debian/addon/ahven.gpr @@ -0,0 +1,31 @@ +-- Ahven project file for use with GCC 4.3 +-- Copyright (c) 2008 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 +-- Ahven. Here is an example of how to use this project file: +-- +-- with "ahven"; +-- project Example is +-- for Object_Dir use "obj"; +-- for Exec_Dir use "."; +-- for Main use ("example"); +-- end Example; + +project Ahven is + for Source_Dirs use ("/usr/share/ada/adainclude/ahven"); + for Library_Name use "ahven"; + for Library_Dir use "/usr/lib"; + for Library_ALI_Dir use "/usr/lib/ada/adalib/ahven"; + for Library_Kind use "dynamic"; + for Externally_Built use "true"; +end Ahven;