[med-svn] [fw4spl] 01/01: add debian/*

Corentin Desfarges corentin-guest at moszumanska.debian.org
Mon Oct 6 14:44:47 UTC 2014


This is an automated email from the git hooks/post-receive script.

corentin-guest pushed a commit to branch master
in repository fw4spl.

commit 360d7283564eb162e7f5786889305525cab32690
Author: Corentin Desfarges <corentin.desfarges.dev at gmail.com>
Date:   Mon Oct 6 16:44:14 2014 +0200

    add debian/*
---
 debian/changelog                        |   5 ++
 debian/compat                           |   1 +
 debian/control                          |  36 +++++++++
 debian/copyright                        |  19 +++++
 debian/patches/remove_fwItkIOTest.patch | 139 ++++++++++++++++++++++++++++++++
 debian/patches/series                   |   1 +
 debian/rules                            |  45 +++++++++++
 debian/source/format                    |   1 +
 debian/watch                            |   2 +
 9 files changed, 249 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..7942597
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+fw4spl (0.9.2-1) unstable; urgency=low
+
+  * Initial release (Closes: #999)  <test>
+
+ -- Corentin Desfarges <corentin.desfarges at gmail.com>  Wed, 16 Jul 2014 12:07:41 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..69d9155
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,36 @@
+Source: fw4spl
+Homepage: https://code.google.com/p/fw4spl/
+Section: science
+Priority: optional
+Maintainer: Corentin D <corentin.desfarges at gmail.com>
+Build-Depends:	debhelper (>= 9),
+		cmake (>=2.8.11),
+		libboost-all-dev (>=1.54),
+		zlib1g-dev,
+		libexpat1-dev,
+		libjpeg8-dev,
+		libpng12-dev,
+		libtiff5-dev,
+		libcppunit-dev,
+		libhdf5-dev,
+		libqt4-dev,
+		libvtk5-dev,
+		libgdcm2-dev,
+		libinsighttoolkit3-dev,
+		libann-dev,
+		libvtkgdcm2-dev,
+		libvtk5.8-qt4,
+		libvxl1-dev,
+		libcamp0.7
+Standards-Version: 3.9.5
+#Vcs-Git: git://anonscm.debian.org/collab-maint/fw4spl.git
+#Vcs-Browser: http://anonscm.debian.org/?p=collab-maint/fw4spl.git;a=summary
+
+Package: fw4spl
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends},
+Description: It is a component-oriented architecture.
+ It includes the notion of role-based programming.
+ FW4SPL consists of a set of cross-platform C++ libraries.
+ For now, FW4SPL focuses on the problem of medical images
+ processing and visualization. 
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..ae60525
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,19 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: fw4spl
+Source: https://code.google.com/p/fw4spl/
+
+Files: *
+Copyright: 2009-2013 Johan Moreau <johan.moreau at ircad.fr>
+License: LGPL-3
+ Distributed under the terms of the GNU Lesser General Public License (LGPL) as
+ published by the Free Software Foundation.
+
+Files: debian/*
+Copyright: 2014 Corentin Desfarges <corentin.desfarges.dev at gmail.com>
+License: GPL-3
+ The Debian packaging information is under the GPL, version 2 or later.
+ .
+ On Debian GNU/Linux systems, the complete text of the GNU General
+ Public License can be found in `/usr/share/common-licenses/GPL' and the
+ complete text of the GNU Lesser General Public License can be found in
+ `/usr/share/common-licenses/LGPL'.
diff --git a/debian/patches/remove_fwItkIOTest.patch b/debian/patches/remove_fwItkIOTest.patch
new file mode 100644
index 0000000..f53bb61
--- /dev/null
+++ b/debian/patches/remove_fwItkIOTest.patch
@@ -0,0 +1,139 @@
+--- a/SrcLib/io/fwItkIO/test/tu/src/ImageConversionTest.cpp
++++ /dev/null
+@@ -1,136 +0,0 @@
+-/* ***** BEGIN LICENSE BLOCK *****
+- * FW4SPL - Copyright (C) IRCAD, 2009-2012.
+- * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
+- * published by the Free Software Foundation.
+- * ****** END LICENSE BLOCK ****** */
+-
+-#include <fwData/Object.hpp>
+-
+-#include <fwDataCamp/visitor/CompareObjects.hpp>
+-
+-#include <fwTest/generator/Image.hpp>
+-#include <fwTest/helper/compare.hpp>
+-
+-#include <fwItkIO/itk.hpp>
+-
+-#include "helper.hpp"
+-#include "ImageConversionTest.hpp"
+-
+-// Registers the fixture into the 'registry'
+-CPPUNIT_TEST_SUITE_REGISTRATION( ::fwItkIO::ut::ImageConversionTest );
+-
+-namespace fwItkIO
+-{
+-namespace ut
+-{
+-
+-//------------------------------------------------------------------------------
+-
+-void ImageConversionTest::setUp()
+-{
+-    // Set up context before running a test.
+-    srand(time(NULL));
+-}
+-
+-//------------------------------------------------------------------------------
+-
+-void ImageConversionTest::tearDown()
+-{
+-    // Clean up after the test run.
+-}
+-
+-//------------------------------------------------------------------------------
+-
+-void ImageConversionTest::testConversion()
+-{
+-    // create Image
+-    ::fwData::Image::sptr image = ::fwData::Image::New();
+-    ::fwTest::generator::Image::generateRandomImage(image, ::fwTools::Type::create("int16"));
+-
+-    typedef itk::Image< ::boost::int16_t , 3 > ImageType;
+-    ImageType::Pointer itkImage = ::fwItkIO::itkImageFactory<ImageType>( image );
+-
+-    ::fwData::Image::sptr image2 = ::fwData::Image::New();
+-    bool image2ManagesHisBuffer = false;
+-    ::fwItkIO::dataImageFactory< ImageType >( itkImage, image2, image2ManagesHisBuffer );
+-
+-    ::fwItkIO::ut::helper::roundSpacing(image);
+-    ::fwItkIO::ut::helper::roundSpacing(image2);
+-
+-    ::fwTest::helper::ExcludeSetType exclude;
+-    exclude.insert("array.isOwner");
+-
+-    CPPUNIT_ASSERT(::fwTest::helper::compare(image, image2, exclude));
+-
+-    bool image3ManagesHisBuffer = false;
+-    ::fwData::Image::sptr image3 = ::fwItkIO::dataImageFactory< ImageType >( itkImage, image3ManagesHisBuffer );
+-    CPPUNIT_ASSERT(::fwTest::helper::compare(image, image3, exclude));
+-}
+-
+-//------------------------------------------------------------------------------
+-
+-void ImageConversionTest::stressTest()
+-{
+-    stressTestForAType< ::boost::int8_t >();
+-    stressTestForAType< ::boost::uint8_t >();
+-
+-    stressTestForAType< ::boost::int16_t >();
+-    stressTestForAType< ::boost::uint16_t >();
+-
+-    stressTestForAType< ::boost::int32_t >();
+-    stressTestForAType< ::boost::uint32_t >();
+-
+-    stressTestForAType< ::boost::int64_t >();
+-    stressTestForAType< ::boost::uint64_t >();
+-
+-    stressTestForAType< float >();
+-    stressTestForAType< double >();
+-}
+-
+-//------------------------------------------------------------------------------
+-
+-void ImageConversionTest::testConversion2D()
+-{
+-    // create Image
+-    ::fwData::Image::sptr image = ::fwData::Image::New();
+-    const ::boost::uint8_t dim = 2;
+-    ::fwData::Image::SizeType size(dim);
+-    size[0] = rand()%100 + 2;
+-    size[1] = rand()%100 + 2;
+-    std::vector<double> spacing(dim);
+-    spacing[0] = (rand()%200 +1) / 100.;
+-    spacing[1] = (rand()%200 +1) / 100.;
+-    std::vector<double> origin(dim);
+-    origin[0] = (rand()%200 - 100) / 3.;
+-    origin[1] = (rand()%200 - 100) / 3.;
+-    ::fwTools::Type type = ::fwTools::Type::create< ::boost::int16_t >();
+-
+-    ::fwTest::generator::Image::generateImage(image, size, spacing, origin, type);
+-    ::fwData::Array::sptr array = image->getDataArray();
+-    ::fwTest::generator::Image::randomizeArray(array);
+-
+-    typedef itk::Image< ::boost::int16_t , 2 > ImageType;
+-
+-    ImageType::Pointer itkImage = ::fwItkIO::itkImageFactory<ImageType>( image );
+-
+-    ::fwData::Image::sptr image2 = ::fwData::Image::New();
+-    bool image2ManagesHisBuffer = false;
+-    ::fwItkIO::dataImageFactory< ImageType >( itkImage, image2, image2ManagesHisBuffer );
+-
+-    ::fwItkIO::ut::helper::roundSpacing(image);
+-    ::fwItkIO::ut::helper::roundSpacing(image2);
+-
+-    ::fwTest::helper::ExcludeSetType exclude;
+-    exclude.insert("array.isOwner");
+-
+-    CPPUNIT_ASSERT(::fwTest::helper::compare(image, image2, exclude));
+-
+-    bool image3ManagesHisBuffer = false;
+-    ::fwData::Image::sptr image3 = ::fwItkIO::dataImageFactory< ImageType >( itkImage, image3ManagesHisBuffer );
+-    CPPUNIT_ASSERT(::fwTest::helper::compare(image, image3, exclude));
+-}
+-
+-//------------------------------------------------------------------------------
+-
+-} //namespace ut
+-} //namespace fwItkIO
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..203bf7c
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+remove_fwItkIOTest.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..0e577a0
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,45 @@
+#!/usr/bin/make -f
+# See debhelper(7) (uncomment to enable)
+# output every command that modifies files on the build system.
+#DH_VERBOSE = 1
+
+# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/default.mk
+
+# see FEATURE AREAS in dpkg-buildflags(1)
+#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+# see ENVIRONMENT in dpkg-buildflags(1)
+# package maintainers to append CFLAGS
+#export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
+# package maintainers to append LDFLAGS
+
+export DEB_LDFLAGS_MAINT_APPEND = -Wl,--no-as-needed -Wl,-rpath=/usr/lib/fw4spl -ldl 
+
+# main packaging script based on dh7 syntax
+
+%:
+	dh $@
+
+override_dh_auto_configure:
+	dh_auto_configure || dh_auto_configure
+
+override_dh_auto_install:
+	dh_auto_install --destdir=debian/fw4spl
+
+override_dh_auto_test:
+	echo "Unit tests disabled"
+
+override_dh_shlibdeps:
+	dh_shlibdeps -v -l/usr/lib:/usr/lib/fw4spl:/usr/lib/fw4spl/Bundles:/usr/lib/fw4spl/Bundles/gui_0-1/:/usr/lib/fw4spl/Bundles:/usr/lib/fw4spl/Bundles/io_0-1/:/usr/lib/fw4spl/Bundles:/usr/lib/fw4spl/Bundles/ctrlSelection_0-1/:/usr/lib/fw4spl/Bundles/ioITK_0-1/
+
+# debmake generated override targets
+# This is example for Cmake (See http://bugs.debian.org/641051 )
+#override_dh_auto_configure:
+#	dh_auto_configure -- \
+#	-DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
+
+
+
+
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..6e5418e
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+https://github.com/corentindesfarges/fw4spl/releases .*/archive/(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/fw4spl.git



More information about the debian-med-commit mailing list