--- liblog4ada-1.0.orig/debian/build_log4ada.gpr +++ liblog4ada-1.0/debian/build_log4ada.gpr @@ -0,0 +1,32 @@ +with "xmlezout"; +project build_log4ada is + for Library_Name use "log4ada"; + for Library_Kind use External ("LIBRARY_KIND"); + for Library_Dir use ".."; + for Library_ALI_Dir use External ("OBJ_DIR") & "/ali"; + for Library_Version use External ("SONAME"); + for Object_Dir use External ("OBJ_DIR"); + for Source_Dirs use ("../client/src"); + for Excluded_Source_Files use ("events_receivers.ads", + "events_receivers.adb", + "log4ada-appenders-annex_e.ads", + "log4ada-appenders-annex_e.adb", + "events_receivers-local_consoles.ads", + "events_receivers-local_consoles.adb"); + + package Compiler is + for Default_Switches ("Ada") use + ("-gnat05", -- Ada 2005 mode + "-gnati1", -- Full ISO 8859-1 character set allowed in + -- source code (for generated CORBA stubs) + "-gnatf", -- Full compiler error messages + "-gnaty", -- Enable style checks + "-gnatwa", -- Enable all warnings + "-gnatwe"); -- Warning as errors + end Compiler; + + package Binder is + for Default_Switches ("Ada") use ("-E"); + end Binder; + +end build_log4ada; --- liblog4ada-1.0.orig/debian/changelog +++ liblog4ada-1.0/debian/changelog @@ -0,0 +1,30 @@ +liblog4ada (1.0-3) unstable; urgency=low + + * Fix missing dependency + - liblog4ada1-dev depends on libxmlezout1-dev + Closes: #571068 + + -- Xavier Grave Tue, 23 Feb 2010 09:51:21 +0100 + +liblog4ada (1.0-2) unstable; urgency=low + + * Lintian cleaning (warnings and some info) + I: binary-control-field-duplicates-source + W: native-package-with-dash-version + W: debhelper-but-no-misc-depends + W: quilt-build-dep-but-no-series-file + W: patch-system-but-no-source-readme + I: description-possibly-contains-homepage + * Architecture support changes to any. Closes: #568443. + + -- Xavier Grave Fri, 5 Feb 2010 15:01:00 +0100 + +liblog4ada (1.0-1) unstable; urgency=low + + * First upstream version. Closes: #562942 + + -- Xavier Grave Mon, 28 Dec 2009 22:24:00 +0100 + +Local variables: +left-margin: 2 +End: --- liblog4ada-1.0.orig/debian/compat +++ liblog4ada-1.0/debian/compat @@ -0,0 +1 @@ +7 --- liblog4ada-1.0.orig/debian/control +++ liblog4ada-1.0/debian/control @@ -0,0 +1,57 @@ +Source: liblog4ada +Priority: optional +Section: libs +Maintainer: Xavier Grave +DM-Upload-Allowed: yes +Build-Depends: debhelper (>= 7), libxmlezout1-dev, gnat-4.4, gnat +Build-Depends-Indep: texlive-latex-base +Homepage: http://logging.apache.org/log4j +Standards-Version: 3.8.4 + +Package: liblog4ada1-dev +Section: libdevel +Architecture: any +Depends: liblog4ada0 (= ${binary:Version}), gnat-4.4, ${misc:Depends}, libxmlezout1-dev +Description: An Ada library for flexible logging (development) + Log4Ada is a library that eases logging in applications written in + Ada. It is modelled after, and compatible with, log4j. For more + information about the logging scheme developed in this library see + the log4j project : http://logging.apache.org/log4j/docs/ + . + This package contains file needed to develop applications with Log4Ada. + +Package: liblog4ada0 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: An Ada library for flexible logging (runtime) + Log4Ada is a library that eases logging in applications written in + Ada. It is modelled after, and compatible with, log4j. For more + information about the logging scheme developed in this library see + the log4j project : http://logging.apache.org/log4j/docs/ + . + This is the runtime library for Log4Ada. + +Package: liblog4ada-dbg +Section: debug +Priority: extra +Architecture: any +Depends: liblog4ada0 (=${binary:Version}), ${misc:Depends} +Description: An Ada library for flexible logging (debug) + Log4Ada is a library that eases logging in applications written in + Ada. It is modelled after, and compatible with, log4j. For more + information about the logging scheme developed in this library see + the log4j project : http://logging.apache.org/log4j/docs/ + . + This is the library containing debugging symbols for Log4Ada. + +Package: liblog4ada-doc +Section: doc +Architecture: all +Depends: ${misc:Depends} +Description: An Ada library for flexible logging (documentation) + Log4Ada is a library that eases logging in applications written in + Ada. It is modelled after, and compatible with, log4j. For more + information about the logging scheme developed in this library see + the log4j project : http://logging.apache.org/log4j/docs/ + . + This package contains a pdf documentation file and some examples. --- liblog4ada-1.0.orig/debian/copyright +++ liblog4ada-1.0/debian/copyright @@ -0,0 +1,23 @@ +Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135 +Name: Log4Ada +Maintainer: Xavier Grave +Source:monotone server at www.ada-france.org branch org.log4Ada +Files: * +Copyright: 2007-2009 CNRS/IN2P3 Xavier Grave +License: GPL-2+ + Copyright: Copyright (c) 2007-2009 CNRS/IN2P3 +. + Log4Ada library is free software; you can redistribute it and/or + modify it under terms of the GNU General Public License as + published by the Free Software Foundation; either version 2, or + (at your option) any later version. McKae Software Utilities are + distributed in the hope that they 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 distributed with log4Ada; see file + COPYING. If not, write to the Free Software Foundation, Inc., 51 + Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. +. + The full text of the GNU Public License version 2 is available in + /usr/share/common-licenses/GPL-2 \ No newline at end of file --- liblog4ada-1.0.orig/debian/log4Ada.gpr +++ liblog4ada-1.0/debian/log4Ada.gpr @@ -0,0 +1,32 @@ +-- Log4Ada library project file for use with GCC 4.4 +-- Copyright (c) 2009 Xavier Grave +-- +-- 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. +-- +-- This project file is designed to help build applications that use +-- Log4Ada. Here is an example of how to use this project file: +-- +-- with "log4Ada"; +-- project Example is +-- for Object_Dir use "obj"; +-- for Exec_Dir use "."; +-- for Main use ("example"); +-- end Example; + +with "xmlezout"; +project Log4Ada is + for Library_Name use "log4ada"; + for Library_Dir use "/usr/lib/ada/adalib/log4ada"; + for Library_Kind use "dynamic"; + for Source_Dirs use ("/usr/share/ada/adainclude/log4ada"); + for Library_ALI_Dir use "/usr/lib/ada/adalib/log4ada"; + for Externally_Built use "true"; +end Log4Ada; --- liblog4ada-1.0.orig/debian/log4Ada_annex_e.gpr +++ liblog4ada-1.0/debian/log4Ada_annex_e.gpr @@ -0,0 +1,27 @@ +-- Log4Ada library project file for use with GCC 4.4 and annex E +-- Copyright (c) 2009 Xavier Grave +-- +-- 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. +-- +-- This project file is designed to help build applications that use +-- Log4Ada. Here is an example of how to use this project file: +-- +-- with "log4Ada_annex_e"; +-- project Example is +-- for Object_Dir use "obj"; +-- for Exec_Dir use "."; +-- for Main use ("example"); +-- end Example; + +with "log4Ada"; +project Log4Ada_Annex_E is + for Source_Dirs use ("/usr/share/ada/adainclude/log4ada/annex_e"); +end Log4Ada_Annex_E; --- liblog4ada-1.0.orig/debian/rules +++ liblog4ada-1.0/debian/rules @@ -0,0 +1,120 @@ +#!/usr/bin/make -f +# Debian build script for log4Ada - Copyright (c) 2009 Xavier Grave + +ALL_ADA_SOURCES=$(wildcard client/src/log4ada*.ad[sb] client/src/options.ad[sb]) +CLIENT_ADA_SOURCES=$(filter-out %annex_e.ads %annex_e.adb,$(ALL_ADA_SOURCES)) +ANNEX_E_ADA_SOURCES=$(wildcard client/src/events*.ad[sb] client/src/*annex_e.ad[sb]) +EXAMPLES_ADA_SOURCES=$(wildcard server/src/*.ad[sb] server/demos/*.ad[sb]) + +aliversion := $(shell sed -n -r 's/^Package: liblog4ada(.*)-dev$$/\1/p' debian/control) +soversion := $(shell sed -n -r 's/^Package: liblog4ada([^-]+)$$/\1/p' debian/control) +soname := liblog4ada.so.$(soversion) +regexp := ^Version: ([^.]+)\.([^.]+)-(.*) +major := $(shell dpkg-parsechangelog | grep "^Version: " | sed -r 's/$(regexp)/\1/') +minor := $(shell dpkg-parsechangelog | grep "^Version: " | sed -r 's/$(regexp)/\2/') +upload := $(shell dpkg-parsechangelog | grep "^Version: " | sed -r 's/$(regexp)/\3/') +mtnversion := a53d96b58aea48be98ff3f68c10c6ed3f6052fdf +mtnbase := base_debian.db +branch := org.log4Ada +orig_dir := liblog4ada-$(major).$(minor).orig +orig_tgz := liblog4ada_$(major).$(minor).orig.tar.gz + +CPUS := $(shell getconf _NPROCESSORS_ONLN) + +test_env: + @echo $(ALL_ADA_SOURCES) + @echo $(CLIENT_ADA_SOURCES) + @echo $(ANNEX_E_ADA_SOURCES) + +gen-orig-source: + if [ ! -e ../$(mtnbase) ]; then \ + mtn -d../$(mtnbase) db init; \ + fi; \ + mtn -d../$(mtnbase) pull www.ada-france.org '$(branch)'; \ + cd .. && \ + mtn -d$(mtnbase) co -r$(mtnversion) -b$(branch) $(orig_dir) && \ + rm -r $(orig_dir)/_MTN && \ + tar czf $(orig_tgz) $(orig_dir) && \ + rm -r $(orig_dir) + +build: + +build-stamp: static-lib shared-lib + touch $@ + +build-doc-stamp: documentation + touch $@ + +documentation: + $(MAKE) -C doc + +static-lib:liblog4ada.a + +shared-lib:liblog4ada.so.$(soversion) + +clean:pre-whatever-checks + rm -f build-stamp liblog4ada.a liblog4ada.so.0 liblog4ada.so + rm -Rf debian/obj-static debian/obj-shared + dh_clean -a -i + $(MAKE) -C doc clean + +pre-whatever-checks: + dh_testdir + dh_testroot + +liblog4ada-doc: build-doc-stamp pre-whatever-checks + dh_installdocs -p$@ doc/*.pdf + dh_installexamples -p$@ server/src/*.ad[sb] \ + server/demos/*.ad[sb] client/demos/*.ad[sb] + +liblog4ada$(aliversion)-dev: build-stamp pre-whatever-checks + dh_installdirs -p$@ \ + /usr/lib \ + /usr/share/ada/adainclude/log4ada \ + /usr/share/ada/adainclude/log4ada/annex_e \ + /usr/lib/ada/adalib/log4ada + dh_install -p$@ liblog4ada.a /usr/lib/ada/adalib/log4ada + dh_install -p$@ debian/obj-shared/*.ali /usr/lib/ada/adalib/log4ada + dh_install -p$@ $(CLIENT_ADA_SOURCES) /usr/share/ada/adainclude/log4ada + dh_install -p$@ $(ANNEX_E_ADA_SOURCES) \ + /usr/share/ada/adainclude/log4ada/annex_e + dh_install -p$@ debian/log4Ada.gpr /usr/share/ada/adainclude/ + dh_install -p$@ debian/log4Ada_annex_e.gpr /usr/share/ada/adainclude/ + dh_link -p$@ usr/lib/liblog4ada.so.$(soversion) usr/lib/liblog4ada.so + dh_strip -p$@ -X.a + +liblog4ada$(soversion): build-stamp pre-whatever-checks + dh_installdirs -p$@ /usr/lib + dh_install -p$@ liblog4ada.so.$(soversion) /usr/lib + dh_strip -p$@ --dbg-package=liblog4ada-dbg + +binary:binary-arch binary-indep + +binary-arch: liblog4ada$(soversion) liblog4ada$(aliversion)-dev + dh_installchangelogs -a + dh_installdocs -a + dh_compress -a + dh_fixperms -a + dh_makeshlibs -a + dh_installdeb -a + dh_shlibdeps -a -Lliblog4ada$(soversion) -ldebian/liblog4ada$(soversion)/usr/lib + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +binary-indep: liblog4ada-doc + dh_installchangelogs -i + dh_compress -i + dh_fixperms -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +liblog4ada.a:$(ADA_SOURCES) + gnatmake -p -j$(CPUS) -Pdebian/build_log4ada.gpr \ + -XLIBRARY_KIND=static -XOBJ_DIR=obj-static + +liblog4ada.so.$(soversion):$(ADA_SOURCES) + gnatmake -p -j$(CPUS) -Pdebian/build_log4ada.gpr \ + -XLIBRARY_KIND=dynamic -XOBJ_DIR=obj-shared -XSONAME=$(soname)