[med-svn] [simpleitk] 02/03: Initial debianization

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Oct 31 19:00:10 UTC 2017


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

ghisvail-guest pushed a commit to branch master
in repository simpleitk.

commit c9e34fa1c1742036253e106ad596d39c95aaa2ee
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Fri Aug 4 17:14:36 2017 +0100

    Initial debianization
---
 debian/changelog                                   |   5 +
 debian/compat                                      |   1 +
 debian/control                                     |  65 +++
 debian/copyright                                   | 535 +++++++++++++++++++++
 debian/gbp.conf                                    |   8 +
 debian/libsimpleitk1-dev.install                   |   3 +
 debian/libsimpleitk1.0.install                     |   1 +
 debian/libsimpleitk1.0.lintian-overrides           |   1 +
 ...ix-build-with-ITKV3_COMPATIBILITY-enabled.patch |  21 +
 ...h-created-for-output-of-4D-images-in-test.patch |  42 ++
 debian/patches/series                              |   2 +
 debian/python3-simpleitk.install                   |   1 +
 debian/rules                                       |  50 ++
 debian/source/format                               |   1 +
 debian/source/lintian-overrides                    |   2 +
 debian/watch                                       |   7 +
 16 files changed, 745 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..191c3cb
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+simpleitk (1.0.1-1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: #740296)
+
+ -- Ghislain Antony Vaillant <ghisvail at gmail.com>  Fri, 04 Aug 2017 17:13:54 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f599e28
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..4fd479c
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,65 @@
+Source: simpleitk
+Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
+Uploaders: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Section: libs
+Priority: optional
+Build-Depends: cmake (>= 3.0),
+               debhelper (>= 10),
+               dh-python,
+               googletest,
+               libfftw3-dev,
+               libinsighttoolkit4-dev (>= 4.11),
+               lua5.1,
+               python3-dev,
+               python3-numpy,
+               python3-setuptools,
+               swig (>= 3.0.12)
+Standards-Version: 4.1.1
+Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/simpleitk.git
+Vcs-Git: https://anonscm.debian.org/git/debian-med/simpleitk.git
+Homepage: http://www.simpleitk.org/
+
+Package: libsimpleitk1.0
+Architecture: any
+Multi-Arch: same
+Depends: ${misc:Depends},
+         ${shlibs:Depends}
+Description: cross-platform image analysis toolkit
+ SimpleITK is an image analysis toolkit with a large number of components
+ supporting general filtering operations, image segmentation and registration.
+ It is built on top of the Insight Segmentation and Registration Toolkit ITK
+ with the intent of providing a simplified interface to ITK. SimpleITK itself is
+ written in C++ but is available for a large number of programming languages.
+ .
+ This package provides the shared libraries.
+
+Package: libsimpleitk1-dev
+Architecture: any
+Multi-Arch: same
+Section: libdevel
+Depends: ${misc:Depends},
+         ${shlibs:Depends},
+         libsimpleitk1.0 (= ${binary:Version})
+Description: development files for SimpleITK
+ SimpleITK is an image analysis toolkit with a large number of components
+ supporting general filtering operations, image segmentation and registration.
+ It is built on top of the Insight Segmentation and Registration Toolkit ITK
+ with the intent of providing a simplified interface to ITK. SimpleITK itself is
+ written in C++ but is available for a large number of programming languages.
+ .
+ This package provides the development files.
+
+Package: python3-simpleitk
+Architecture: any
+Section: python
+Depends: ${misc:Depends},
+         ${python3:Depends},
+         ${shlibs:Depends}
+Description: Python bindings for SimpleITK
+ SimpleITK is an image analysis toolkit with a large number of components
+ supporting general filtering operations, image segmentation and registration.
+ It is built on top of the Insight Segmentation and Registration Toolkit ITK
+ with the intent of providing a simplified interface to ITK. SimpleITK itself is
+ written in C++ but is available for a large number of programming languages.
+ .
+ This package provides the Python bindings.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..c4fd094
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,535 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: SimpleITK
+Source: https://sourceforge.net/projects/simpleitk/
+
+Files: *
+Copyright: Insight Software Consortium
+License: Apache-2.0
+
+Files: CMake/FindCSharp.cmake
+ CMake/FindDotNetFrameworkSdk.cmake
+ CMake/FindMono.cmake
+ CMake/UseCSharp.cmake
+ CMake/UseDotNetFrameworkSdk.cmake
+ CMake/UseMono.cmake
+Copyright: 2006-2010 Mathieu Malaterre <mathieu.malaterre at gmail.com>
+License: BSD-2-Clause
+
+Files: CMake/ExternalData.cmake
+ CMake/FindGTest.cmake
+ CMake/GoogleTest.cmake
+Copyright: 2000-2017 Kitware, Inc. and Contributors
+License: BSD-3-Clause
+
+Files: CMake/GetGitRevisionDescription.cmake
+Copyright: 2009-2010 Iowa State University
+License: BSL-1.0
+
+Files: Code/Common/include/Ancillary/hl_*.*
+Copyright: 2007-2010 Benjamin Grüdelbach
+License: BSD-2-Clause
+
+Files: debian/*
+Copyright: 2017 Ghislain Antony Vaillant <ghisvail at gmail.com>
+License: Apache-2.0
+
+Files: Utilities/C99/inttypes.h
+Copyright: 2006 Alexander Chemeris
+License: BSD-3-Clause
+
+Files: Utilities/C99/stdint.h
+Copyright: 2006-2008 Alexander Chemeris
+License: BSD-3-Clause
+
+Files: Utilities/GenerateDocs/doxy2swig.py
+Copyright: Prabhu Ramachandran
+License: BSD-2-Clause
+
+Files: Utilities/Hooks/pre-commit-style.bash
+Copyright: 2010-2011 Kitware, Inc.
+License: Apache-2.0
+
+Files: Wrapping/Python/sitkPython.h
+Copyright: Ken Martin, Will Schroeder, Bill Lorensen
+License: BSD-3-Clause
+
+Files: Wrapping/R/Packaging/SimpleITK/vignettes/algorithm.sty
+ Wrapping/R/Packaging/SimpleITK/vignettes/algorithmic.sty
+Copyright: 1994 Peter Williams
+License: Latex2e
+ Permission is granted to make and distribute verbatim copies of this manual
+ provided the copyright notice and this permission notice are preserved on all
+ copies.
+ .
+ Permission is granted to copy and distribute modified versions of this manual
+ under the conditions for verbatim copying, provided that the entire resulting
+ derived work is distributed under the terms of a permission notice identical
+ to this one.
+ .
+ Permission is granted to copy and distribute translations of this manual into
+ another language, under the above conditions for modified versions.
+
+Files: Wrapping/R/Packaging/SimpleITK/vignettes/amssymb.sty
+Copyright: 2001 American Mathematical Society
+License: amsfonts
+ Copying of this file is authorized only if either:
+ (1) you make absolutely no changes to your copy, including name; OR
+ (2) if you do make changes, you first rename it to some other name.
+
+Files: Wrapping/R/Packaging/SimpleITK/vignettes/fancyhdr.sty
+Copyright: 1994-1998 Piet van Oostrum
+License: fancyhdr.sty
+ This is free software. You are allowed to use and distribute
+ this software in any way you like. You are also allowed to make modified
+ versions of it, but you can distribute a modified version only if you
+ clearly indicate that it is a modified version and the person(s) who
+ modified it. This indication should be in a prominent place, e.g. in the
+ top of the file. If possible a contact address, preferably by email,
+ should be given for these persons. If that is feasible the modifications
+ should be indicated in the source code.
+
+Files: Wrapping/R/Packaging/SimpleITK/vignettes/floatflt.sty
+Copyright: 1994-1998 Mats Dahlgren <matsd at sssk.se>
+License: LPPL-1.2
+Comment: https://ctan.org/tex-archive/macros/latex/contrib/floatflt
+
+Files: Wrapping/R/Packaging/SimpleITK/vignettes/fncychap.sty
+Copyright: 1998 Ulf A. Lindgren
+License: fncychap.sty
+ Permission is granted to modify this file under
+ the condition that it is saved using another
+ file and package name.
+
+Files: Wrapping/R/Packaging/SimpleITK/vignettes/jss.cls
+Copyright: Achim Zeileis
+License: GPL-2
+
+Files: Wrapping/R/Packaging/SimpleITK/vignettes/times.sty
+Copyright: 1995-1998 Sebastian Rahtz
+License: psfonts.dtx
+ Any modified versions of this file must be renamed
+ with new filenames distinct from times.sty.
+ .
+ For distribution of the original source see the terms
+ for copying and modification in the file psfonts.dtx.
+ .
+ This generated file may be distributed as long as the
+ original source files, as listed above, are part of the
+ same distribution. (The sources need not necessarily be
+ in the same archive or directory.)
+Comment: The original source files were: psfonts.dtx (with options: `times')
+
+Files: Wrapping/R/Packaging/SimpleITK/vignettes/upquote.sty
+Copyright: 2000 Michael A. Covington
+ 2003 Michael A. Covington, Frank Mittelbach
+License: LPPL-1.2
+
+License: Apache-2.0
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+     http://www.apache.org/licenses/LICENSE-2.0
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS"BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ .
+ On Debian systems, the complete text of the Apache License,
+ Version 2.0 can be found in '/usr/share/common-licenses/Apache-2.0'.
+
+License: BSD-2-Clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+ .
+ * Redistributions of source code must retain the above copyright notice, this
+   list of conditions and the following disclaimer.
+ .
+ * Redistributions in binary form must reproduce the above copyright notice,
+   this list of conditions and the following disclaimer in the documentation
+   and/or other materials provided with the distribution.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+License: BSD-3-Clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+ .
+ * Redistributions of source code must retain the above copyright notice, this
+   list of conditions and the following disclaimer.
+ .
+ * Redistributions in binary form must reproduce the above copyright notice,
+   this list of conditions and the following disclaimer in the documentation
+   and/or other materials provided with the distribution.
+ .
+ * Neither the name of the copyright holder nor the names of its
+   contributors may be used to endorse or promote products derived from
+   this software without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+License: BSL-1.0
+ Permission is hereby granted, free of charge, to any person or organization
+ obtaining a copy of the software and accompanying documentation covered by
+ this license (the "Software") to use, reproduce, display, distribute,
+ execute, and transmit the Software, and to prepare derivative works of the
+ Software, and to permit third-parties to whom the Software is furnished to
+ do so, all subject to the following:
+ .
+ The copyright notices in the Software and this entire statement, including
+ the above license grant, this restriction and the following disclaimer,
+ must be included in all copies of the Software, in whole or in part, and
+ all derivative works of the Software, unless such copies or derivative
+ works are solely in the form of machine-executable object code generated by
+ a source language processor.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
+ SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
+ FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ DEALINGS IN THE SOFTWARE.
+
+License: GPL-2
+ 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; version 2 dated June, 1991.
+ .
+ On Debian systems, the complete text of version 2 of the GNU General
+ Public License can be found in '/usr/share/common-licenses/GPL-2'.
+
+License: LPPL-1.2
+ .
+ The LaTeX Project Public License
+ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
+ .
+ LPPL Version 1.2  1999-09-03
+ .
+ Copyright 1999 LaTeX3 Project
+     Everyone is allowed to distribute verbatim copies of this
+     license document, but modification of it is not allowed.
+ .
+ .
+ PREAMBLE
+ ========
+ .
+ The LaTeX Project Public License (LPPL) is the license under which the
+ base LaTeX distribution is distributed.
+ .
+ You may use this license for any program that you have written and wish
+ to distribute.  This license may be particularly suitable if your
+ program is TeX-related (such as a LaTeX package), but you may use it
+ even if your program is unrelated to TeX.  The section `WHETHER AND HOW
+ TO DISTRIBUTE PROGRAMS UNDER THIS LICENSE', below, gives instructions,
+ examples, and recommendations for authors who are considering
+ distributing their programs under this license.
+ .
+ In this license document, `The Program' refers to any program
+ distributed under this license.
+ .
+ This license gives conditions under which The Program may be distributed
+ and conditions under which modified versions of The Program may be
+ distributed.  Individual files of The Program may bear supplementary
+ and/or superseding conditions on modification of themselves and on the
+ distribution of modified versions of themselves, but *no* file of The
+ Program may bear supplementary or superseding conditions on the
+ distribution of an unmodified copy of the file.  A distributor wishing
+ to distribute a complete, unmodified copy of The Program therefore
+ needs to check the conditions only in this license and nowhere else.
+ .
+ Activities other than distribution and/or modification of The Program
+ are not covered by this license; they are outside its scope.  In
+ particular, the act of running The Program is not restricted.
+ .
+ We, the LaTeX3 Project, believe that the conditions below give you
+ the freedom to make and distribute modified versions of The Program
+ that conform with whatever technical specifications you wish while
+ maintaining the availability, integrity, and reliability of
+ The Program.  If you do not see how to achieve your goal while 
+ meeting these conditions, then read the document `cfgguide.tex'
+ in the base LaTeX distribution for suggestions.
+ .
+ .
+ CONDITIONS ON DISTRIBUTION AND MODIFICATION
+ ===========================================
+ .
+ You may distribute a complete, unmodified copy of The Program.
+ Distribution of only part of The Program is not allowed.
+ .
+ You may not modify in any way a file of The Program that bears a legal
+ notice forbidding modification of that file.
+ .
+ You may distribute a modified file of The Program if, and only if, the
+ following eight conditions are met:
+ .
+   1. You must meet any additional conditions borne by the file on the
+      distribution of a modified version of the file as described below
+      in the subsection `Additional Conditions on Individual Files of
+      The Program'.
+ .
+   2. If the file is a LaTeX software file, then you must meet any
+      applicable additional conditions on the distribution of a modified
+      version of the file that are described below in the subsection
+      `Additional Conditions on LaTeX Software Files'.
+ .
+   3. You must not distribute the modified file with the filename of the
+      original file.
+ .
+   4. In the modified file, you must acknowledge the authorship and
+      name of the original file, and the name (if any) of the program
+      which contains it.
+ .
+   5. You must change any identification string in the file to indicate
+      clearly that the modified file is not part of The Program.
+ .
+   6. You must change any addresses in the modified file for the
+      reporting of errors in the file or in The Program generally to
+      ensure that reports for files no longer maintained by the original
+      maintainers will be directed to the maintainers of the modified
+      files.
+ .
+   7. You must distribute the modified file under a license that forbids
+      distribution both of the modified file and of any files derived
+      from the modified file with the filename of the original file.
+ .
+   8. You must do either (A) or (B):
+ .
+        (A) distribute a copy of The Program (that is, a complete,
+            unmodified copy of The Program) together with the modified
+            file; if your distribution of the modified file is made by
+            offering access to copy the modified file from a designated
+            place, then offering equivalent access to copy The Program
+            from the same place meets this condition, even though third
+            parties are not compelled to copy The Program along with the
+            modified file;
+ .
+        (B) provide to those who receive the modified file information
+            that is sufficient for them to obtain a copy of The Program;
+            for example, you may provide a Uniform Resource Locator (URL)
+            for a site that you expect will provide them with a copy of 
+            The Program free of charge (either the version from which
+            your modification is derived, or perhaps a later version).
+ .
+ Note that in the above, `distribution' of a file means making the
+ file available to others by any means.  This includes, for instance,
+ installing the file on any machine in such a way that the file is
+ accessible by users other than yourself.  `Modification' of a file
+ means any procedure that produces a derivative file under any
+ applicable law -- that is, a file containing the original file or
+ a significant portion of it, either verbatim or with modifications
+ and/or translated into another language.
+ .
+ Changing the name of a file (other than as necessitated by the file
+ conventions of the target file systems) is considered to be a
+ modification of the file.
+ .
+ The distribution conditions in this license do not have to be
+ applied to files that have been modified in accordance with the
+ above conditions.  Note, however, that Condition 7. does apply to
+ any such modified file.
+ .
+ The conditions above are not intended to prohibit, and hence do not
+ apply to, the updating, by any method, of a file so that it becomes
+ identical to the latest version of that file of The Program.
+ .
+ .
+ .
+ A Recommendation on Modification Without Distribution
+ -----------------------------------------------------
+ .
+ It is wise never to modify a file of The Program, even for your own
+ personal use, without also meeting the above eight conditions for
+ distributing the modified file.  While you might intend that such
+ modified files will never be distributed, often this will happen by
+ accident -- you may forget that you have modified the file; or it may
+ not occur to you when allowing others to access the modified file
+ that you are thus distributing it and violating the conditions of
+ this license.  It is usually in your best interest to keep your copy
+ of The Program identical with the public one.  Many programs provide
+ ways to control the behavior of that program without altering its
+ licensed files.
+ .
+ .
+ Additional Conditions on Individual Files of The Program
+ --------------------------------------------------------
+ .
+ An individual file of The Program may bear additional conditions that
+ supplement and/or supersede the conditions in this license if, and only
+ if, such additional conditions exclusively concern modification of the
+ file or distribution of a modified version of the file.  The conditions
+ on individual files of The Program therefore may differ only with
+ respect to the kind and extent of modification of those files that
+ is allowed, and with respect to the distribution of modified versions
+ of those files.
+ .
+ .
+ Additional Conditions on LaTeX Software Files
+ ---------------------------------------------
+ .
+ If a file of The Program is intended to be used with LaTeX (that is,
+ if it is a LaTeX software file), then the following additional
+ conditions, which supplement and/or supersede the conditions
+ above, apply to the file according to its filename extension:
+ .
+   - You may not modify any file with filename extension `.ins' since
+     these are installation files containing the legal notices that are
+     placed in the files they generate.
+ .
+   - You may distribute modified versions of files with filename
+     extension `.fd' (LaTeX font definition files) under the standard
+     conditions of the LPPL as described above.  You may also distribute
+     such modified LaTeX font definition files with their original names
+     provided that:
+     (1) the only changes to the original files either enable use of
+         available fonts or prevent attempts to access unavailable fonts;
+     (2) you also distribute the original, unmodified files (TeX input
+         paths can be used to control which set of LaTeX font definition
+         files is actually used by TeX).
+ .
+   - You may distribute modified versions of files with filename
+     extension `.cfg' (configuration files) with their original names.
+     The Program may (and usually will) specify the range of commands
+     that are allowed in a particular configuration file.
+ .
+ Because of portability and exchangeability issues in LaTeX software,
+ The LaTeX3 Project deprecates the distribution of modified versions of
+ components of LaTeX or of generally available contributed code for them,
+ but such distribution can meet the conditions of this license.
+ .
+ .
+ NO WARRANTY
+ ===========
+ .
+ There is no warranty for The Program.  Except when otherwise stated in
+ writing, The Copyright Holder provides The Program `as is', without
+ warranty of any kind, either expressed or implied, including, but not
+ limited to, the implied warranties of merchantability and fitness for
+ a particular purpose.  The entire risk as to the quality and performance
+ of The Program is with you.  Should The Program prove defective, you
+ assume the cost of all necessary servicing, repair, or correction.
+ .
+ In no event unless agreed to in writing will The Copyright Holder, or
+ any author named in the files of The Program, or any other party who may
+ distribute and/or modify The Program as permitted above, be liable to
+ you for damages, including any general, special, incidental or
+ consequential damages arising out of any use of The Program or out of
+ inability to use The Program (including, but not limited to, loss of
+ data, data being rendered inaccurate, or losses sustained by anyone as
+ a result of any failure of The Program to operate with any other
+ programs), even if The Copyright Holder or said author or said other
+ party has been advised of the possibility of such damages.
+ .
+ .
+ WHETHER AND HOW TO DISTRIBUTE PROGRAMS UNDER THIS LICENSE
+ =========================================================
+ .
+ This section contains important instructions, examples, and
+ recommendations for authors who are considering distributing their
+ programs under this license.  These authors are addressed as `you' in
+ this section.
+ .
+ .
+ Choosing This License or Another License
+ ----------------------------------------
+ .
+ If for any part of your program you want or need to use *distribution*
+ conditions that differ from those in this license, then do not refer to
+ this license anywhere in your program but instead distribute your
+ program under a different license.  You may use the text of this license
+ as a model for your own license, but your license should not refer to
+ the LPPL or otherwise give the impression that your program is
+ distributed under the LPPL.
+ .
+ The document `modguide.tex' in the base LaTeX distribution explains
+ the motivation behind the conditions of this license.  It explains,
+ for example, why distributing LaTeX under the GNU General Public
+ License (GPL) was considered inappropriate.  Even if your program is
+ unrelated to LaTeX, the discussion in `modguide.tex' may still be
+ relevant, and authors intending to distribute their programs under any
+ license are encouraged to read it.
+ .
+ .
+ How to Use This License
+ -----------------------
+ .
+ To use this license, place in each of the files of your program both
+ an explicit copyright notice including your name and the year and also
+ a statement that the distribution and/or modification of the file is
+ constrained by the conditions in this license.
+ .
+ Here is an example of such a notice and statement:
+ .
+   %% pig.dtx
+   %% Copyright 2001 M. Y. Name
+   %
+   % This program may be distributed and/or modified under the
+   % conditions of the LaTeX Project Public License, either version 1.2
+   % of this license or (at your option) any later version.
+   % The latest version of this license is in
+   %   http://www.latex-project.org/lppl.txt
+   % and version 1.2 or later is part of all distributions of LaTeX 
+   % version 1999/12/01 or later.
+   %
+   % This program consists of the files pig.dtx and pig.ins
+ .
+ Given such a notice and statement in a file, the conditions given in
+ this license document would apply, with `The Program' referring to the
+ two files `pig.dtx' and `pig.ins', and `The Copyright Holder' referring
+ to the person `M. Y. Name'.
+ .
+ .
+ Important Recommendations
+ -------------------------
+ .
+  Defining What Constitutes The Program
+ .
+    The LPPL requires that distributions of The Program contain all the
+    files of The Program.  It is therefore important that you provide a
+    way for the licensee to determine which files constitute The Program.
+    This could, for example, be achieved by explicitly listing all the
+    files of The Program near the copyright notice of each file or by
+    using a line like
+ .
+     % This program consists of all files listed in manifest.txt.
+ .
+    in that place.  In the absence of an unequivocal list it might be
+    impossible for the licensee to determine what is considered by you
+    to comprise The Program.
+ .
+  Noting Exceptional Files
+ .
+    If The Program contains any files bearing additional conditions on
+    modification, or on distribution of modified versions, of those
+    files (other than those listed in `Additional Conditions on LaTeX
+    Software Files'), then it is recommended that The Program contain a
+    prominent file that defines the exceptional conditions, and either
+    lists the exceptional files or defines one or more categories of
+    exceptional files.
+ .
+    Files containing the text of a license (such as this file) are
+    often examples of files bearing more restrictive conditions on
+    modification.  LaTeX configuration files (with filename extension
+    `.cfg') are examples of files bearing less restrictive conditions
+    on the distribution of a modified version of the file.  The
+    additional conditions on LaTeX software given above are examples 
+    of declaring a category of files bearing exceptional additional
+    conditions.
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..89a8927
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,8 @@
+[DEFAULT]
+upstream-branch = upstream
+debian-branch = master
+upstream-tag = upstream/%(version)s
+debian-tag = debian/%(version)s
+sign-tags = True
+pristine-tar = True
+component = data
diff --git a/debian/libsimpleitk1-dev.install b/debian/libsimpleitk1-dev.install
new file mode 100644
index 0000000..bb72267
--- /dev/null
+++ b/debian/libsimpleitk1-dev.install
@@ -0,0 +1,3 @@
+usr/include
+usr/lib/*/*.so
+usr/lib/*/cmake
diff --git a/debian/libsimpleitk1.0.install b/debian/libsimpleitk1.0.install
new file mode 100644
index 0000000..55dfa22
--- /dev/null
+++ b/debian/libsimpleitk1.0.install
@@ -0,0 +1 @@
+usr/lib/*/*-1.0.so.*
diff --git a/debian/libsimpleitk1.0.lintian-overrides b/debian/libsimpleitk1.0.lintian-overrides
new file mode 100644
index 0000000..8675979
--- /dev/null
+++ b/debian/libsimpleitk1.0.lintian-overrides
@@ -0,0 +1 @@
+package-name-doesnt-match-sonames
diff --git a/debian/patches/Fix-build-with-ITKV3_COMPATIBILITY-enabled.patch b/debian/patches/Fix-build-with-ITKV3_COMPATIBILITY-enabled.patch
new file mode 100644
index 0000000..6f2eb01
--- /dev/null
+++ b/debian/patches/Fix-build-with-ITKV3_COMPATIBILITY-enabled.patch
@@ -0,0 +1,21 @@
+From: Bradley Lowekamp <blowekamp at mail.nih.gov>
+Date: Mon, 5 Jun 2017 11:46:10 +0100
+Subject: Fix build with ITKV3_COMPATIBILITY enabled
+
+---
+ Code/BasicFilters/json/HistogramMatchingImageFilter.json | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Code/BasicFilters/json/HistogramMatchingImageFilter.json b/Code/BasicFilters/json/HistogramMatchingImageFilter.json
+index 26363cf..18efe40 100644
+--- a/Code/BasicFilters/json/HistogramMatchingImageFilter.json
++++ b/Code/BasicFilters/json/HistogramMatchingImageFilter.json
+@@ -5,7 +5,7 @@
+   "filter_type" : "itk::HistogramMatchingImageFilter<InputImageType, OutputImageType>",
+   "number_of_inputs" : 2,
+   "doc" : "",
+-  "pixel_types" : "BasicPixelIDTypeList",
++  "pixel_types" : "typelist::MakeTypeList<BasicPixelID<int8_t>, BasicPixelID<uint8_t>, BasicPixelID<int16_t>, BasicPixelID<uint16_t>, BasicPixelID<int32_t>, BasicPixelID<uint32_t>, BasicPixelID<float>, BasicPixelID<double> >::Type",
+   "members" : [
+     {
+       "name" : "NumberOfHistogramLevels",
diff --git a/debian/patches/Fix-path-created-for-output-of-4D-images-in-test.patch b/debian/patches/Fix-path-created-for-output-of-4D-images-in-test.patch
new file mode 100644
index 0000000..d64874d
--- /dev/null
+++ b/debian/patches/Fix-path-created-for-output-of-4D-images-in-test.patch
@@ -0,0 +1,42 @@
+From: Bradley Lowekamp <blowekamp at mail.nih.gov>
+Date: Thu, 18 May 2017 13:20:56 -0400
+Subject: Fix path created for output of 4D images in test
+
+There was missing a directory separator.
+---
+ Testing/Unit/sitkImage4DTests.cxx | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/Testing/Unit/sitkImage4DTests.cxx b/Testing/Unit/sitkImage4DTests.cxx
+index af6c16a..1dcd45c 100644
+--- a/Testing/Unit/sitkImage4DTests.cxx
++++ b/Testing/Unit/sitkImage4DTests.cxx
+@@ -491,11 +491,11 @@ TEST( IO, Image4D )
+   EXPECT_EQ( 1u, image.GetNumberOfComponentsPerPixel() );
+ 
+   sitk::ImageFileWriter imageWriter;
+-  imageWriter.SetFileName( dataFinder.GetOutputDirectory()+"image4d.nii" );
++  imageWriter.SetFileName( dataFinder.GetOutputDirectory()+"/image4d.nii" );
+   ASSERT_NO_THROW( imageWriter.Execute( image ) );
+ 
+   sitk::ImageFileReader imageReader;
+-  imageReader.SetFileName( dataFinder.GetOutputDirectory()+"image4d.nii" );
++  imageReader.SetFileName( dataFinder.GetOutputDirectory()+"/image4d.nii" );
+   ASSERT_NO_THROW( imageRead = imageReader.Execute() );
+   EXPECT_EQ ( sitk::Hash( image ), sitk::Hash( imageRead ) );
+ 
+@@ -509,12 +509,12 @@ TEST( IO, Image4D )
+   EXPECT_EQ( 21u, imageRead2.GetDepth() );
+   EXPECT_EQ( 4u, imageRead2.GetSize()[3] );
+ 
+-  imageWriter.SetFileName( dataFinder.GetOutputDirectory()+"image4d2.nii" );
++  imageWriter.SetFileName( dataFinder.GetOutputDirectory()+"/image4d2.nii" );
+   ASSERT_NO_THROW( imageWriter.Execute( imageRead2 ) );
+ 
+   sitk::Image imageRead3;
+   ASSERT_NO_THROW( imageRead3 = imageReader.Execute() );
+-  imageReader.SetFileName( dataFinder.GetOutputDirectory()+"image4d2.nii" );
++  imageReader.SetFileName( dataFinder.GetOutputDirectory()+"/image4d2.nii" );
+   EXPECT_EQ ( "9e81d4b3cdf10a4da5d54c8cd7c4954449d76d5d", sitk::Hash( imageRead3 ) );
+ 
+   // VectorImage
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..dbfd771
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+Fix-build-with-ITKV3_COMPATIBILITY-enabled.patch
+Fix-path-created-for-output-of-4D-images-in-test.patch
diff --git a/debian/python3-simpleitk.install b/debian/python3-simpleitk.install
new file mode 100644
index 0000000..b06a399
--- /dev/null
+++ b/debian/python3-simpleitk.install
@@ -0,0 +1 @@
+usr/lib/python3
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..e72d852
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,50 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+
+BUILDDIR=$(CURDIR)/SimpleITK-build
+DESTDIR=$(CURDIR)/debian/tmp
+
+BUILD_OPTIONS=-DBUILD_EXAMPLES:BOOL=OFF \
+	-DBUILD_SHARED_LIBS:BOOL=ON \
+	-DExternalData_OBJECT_STORES:PATH=$(CURDIR)/data/.ExternalData \
+	-DSimpleITK_4D_IMAGES:BOOL=ON \
+	-DSimpleITK_BUILD_DISTRIBUTE:BOOL=ON \
+	-DSimpleITK_EXPLICIT_INSTANTIATION:BOOL=OFF \
+	-DSimpleITK_FORBID_DOWNLOADS:BOOL=ON \
+	-DSimpleITK_INSTALL_ARCHIVE_DIR:PATH=lib/$(DEB_HOST_MULTIARCH) \
+	-DSimpleITK_INSTALL_LIBRARY_DIR:PATH=lib/$(DEB_HOST_MULTIARCH) \
+	-DWRAP_DEFAULT:BOOL=OFF
+
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+BUILD_OPTIONS+=-DBUILD_TESTING:BOOL=ON \
+	-DGTEST_ROOT:PATH=/usr/src/googletest
+else
+BUILD_OPTIONS+=-DBUILD_TESTING:BOOL=OFF
+endif
+
+PYTHON3:=$(shell py3versions -d)
+
+BUILD_OPTIONS+=-DWRAP_PYTHON:BOOL=ON \
+	-DSimpleITK_PYTHON_USE_VIRTUALENV:BOOL=OFF \
+	-DSimpleITK_PYTHON_WHEEL:BOOL=OFF \
+	-DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/$(PYTHON3)
+
+%:
+	dh $@ --with python3 --builddirectory=$(BUILDDIR)
+
+override_dh_auto_configure:
+	dh_auto_configure -- $(BUILD_OPTIONS)
+
+override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+	LD_LIBRARY_PATH=$(BUILDDIR)/lib dh_auto_test
+endif
+
+override_dh_auto_install:
+	dh_auto_install
+	cd $(BUILDDIR)/Wrapping/Python/Packaging \
+		&& $(PYTHON3) setup.py install --root $(DESTDIR) --install-layout=deb
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/source/lintian-overrides b/debian/source/lintian-overrides
new file mode 100644
index 0000000..8dfd0b2
--- /dev/null
+++ b/debian/source/lintian-overrides
@@ -0,0 +1,2 @@
+# Dual-licensed under the BSD-2-Clause license.
+license-problem-non-free-RFC Code/Common/include/Ancillary/hl_sha1.*
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..14f854d
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,7 @@
+version=4
+opts=uversionmangle=s/(rc|a|b|c)/~$1/
+    https://github.com/SimpleITK/SimpleITK/releases \
+    .*/SimpleITK at ANY_VERSION@@ARCHIVE_EXT@ debian
+opts=component=data,uversionmangle=s/(rc|a|b|c)/~$1/ \
+    https://github.com/SimpleITK/SimpleITK/releases \
+    .*/SimpleITKData at ANY_VERSION@@ARCHIVE_EXT@ same

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



More information about the debian-med-commit mailing list