[med-svn] [ciftilib] 02/03: Initial debianization.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Nov 9 08:26:26 UTC 2016


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

ghisvail-guest pushed a commit to branch debian/master
in repository ciftilib.

commit 762900ac2823e9417b2d5cb169b1664c0930f8c9
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Mon Nov 7 14:13:09 2016 +0000

    Initial debianization.
---
 debian/changelog                                   |   5 +
 debian/compat                                      |   1 +
 debian/control                                     |  68 ++++
 debian/copyright                                   | 389 +++++++++++++++++++++
 debian/debian/control                              |   0
 debian/debian/copyright                            |  34 ++
 debian/gbp.conf                                    |   9 +
 debian/libcifti-dev.install                        |   3 +
 debian/libcifti-doc.doc-base                       |   9 +
 debian/libcifti-doc.docs                           |   2 +
 debian/libcifti-doc.examples                       |   1 +
 debian/libcifti0.install                           |   1 +
 .../Enable-parallel-execution-of-tests.patch       |  23 ++
 .../Fix-spelling-errors-reported-by-Lintian.patch  |  76 ++++
 debian/patches/series                              |   2 +
 debian/rules                                       |  24 ++
 debian/source/format                               |   1 +
 debian/tests/ciftilib-tests                        |  55 +++
 debian/tests/control                               |   2 +
 debian/upstream/metadata                           |   5 +
 debian/watch                                       |   3 +
 21 files changed, 713 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..39a865b
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+ciftilib (1.5.1-1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: #818983)
+
+ -- Ghislain Antony Vaillant <ghisvail at gmail.com>  Sat, 05 Nov 2016 17:21:51 +0000
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..e313739
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,68 @@
+Source: ciftilib
+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,
+               debhelper (>= 10),
+               libboost-dev,
+               libboost-filesystem-dev,
+               libxml++2.6-dev,
+               zlib1g-dev
+Build-Depends-Indep: doxygen
+Standards-Version: 3.9.8
+Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/ciftilib.git
+Vcs-Git: https://anonscm.debian.org/git/debian-med/ciftilib.git
+Homepage: https://github.com/Washington-University/CiftiLib
+
+Package: libcifti0
+Architecture: any
+Multi-Arch: same
+Depends: ${misc:Depends},
+         ${shlibs:Depends}
+Description: library for manipulating CIFTI files
+ CIFTI (Connectivity Informatics Technology Initiative) standardizes the file
+ formats for storage of connectivity data. These formats are developed by the
+ Human Connectome Project and other interested parties.
+ .
+ CiftiLib is a C++ library for CIFTI-1 and CIFTI-2 file I/O, supporting both
+ on-disk and in-memory access. It also provides facilities for reading and
+ writing generic NIfTI-1 and NIfTI-2 files.
+ .
+ This package provides the shared libraries.
+
+Package: libcifti-dev
+Architecture: any
+Multi-Arch: same
+Section: libdevel
+Depends: ${misc:Depends},
+         libboost-dev,
+         libcifti0 (= ${binary:Version}),
+         libxml++2.6-dev
+Suggests: libcifti-doc
+Description: development files for CiftiLib
+ CIFTI (Connectivity Informatics Technology Initiative) standardizes the file
+ formats for storage of connectivity data. These formats are developed by the
+ Human Connectome Project and other interested parties.
+ .
+ CiftiLib is a C++ library for CIFTI-1 and CIFTI-2 file I/O, supporting both
+ on-disk and in-memory access. It also provides facilities for reading and
+ writing generic NIfTI-1 and NIfTI-2 files.
+ .
+ This package provides the development files.
+
+Package: libcifti-doc
+Architecture: all
+Multi-Arch: foreign
+Section: doc
+Depends: ${misc:Depends}
+Description: documentation for CiftiLib
+ CIFTI (Connectivity Informatics Technology Initiative) standardizes the file
+ formats for storage of connectivity data. These formats are developed by the
+ Human Connectome Project and other interested parties.
+ .
+ CiftiLib is a C++ library for CIFTI-1 and CIFTI-2 file I/O, supporting both
+ on-disk and in-memory access. It also provides facilities for reading and
+ writing generic NIfTI-1 and NIfTI-2 files.
+ .
+ This package provides the documentation.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..dee7010
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,389 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: CiftiLib
+Upstream-Contact: Tim Coalson <tsc5yc at mst.edu>
+Source: https://github.com/Washington-University/CiftiLib
+
+Files: *
+Copyright: 2014 Washington University School of Medicine
+License: BSD-2-Clause
+
+Files: cmake/Modules/UseDoxygen/*
+Copyright: 2009-2011 Tobias Rautenkranz <tobias at rautenkranz.ch>
+License: BSD-3-Clause
+
+Files: debian/*
+Copyright: 2016 Ghislain Antony Vaillant <ghisvail at gmail.com>
+License: BSD-2-Clause
+
+Files: example/data/*
+Copyright: Public Domain
+License: ODC-PDDL-1.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:
+ .
+ 1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+ .
+ 2. 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:
+ .
+ 1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+ .
+ 2. 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.
+ .
+ 3. 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: ODC-PDDL-1.0
+ ODC Public Domain Dedication and Licence (PDDL) Disclaimer
+ .
+ PLEASE READ:
+ .
+ Open Data Commons is not a law firm and does not provide legal services of any
+ kind.
+ .
+ Open Data Commons has no formal relationship with you. Your receipt of this
+ document does not create any kind of agent-client relationship. Please seek the
+ advice of a suitably qualified legal professional licensed to practice in your
+ jurisdiction before using this document.
+ .
+ No warranties and disclaimer of any damages.
+ .
+ This information is provided ‘as is‘, and this site makes no warranties on the
+ information provided. Any damages resulting from its use are disclaimed.
+ .
+ READ the full disclaimer here.  The License
+ .
+ Preamble The Open Data Commons – Public Domain Dedication & Licence is a
+ document intended to allow you to freely share, modify, and use this work for
+ any purpose and without any restrictions. This licence is intended for use on
+ databases or their contents (“data”), either together or individually.
+ .
+ Many databases are covered by copyright. Some jurisdictions, mainly in Europe,
+ have specific special rights that cover databases called the “sui generis”
+ database right. Both of these sets of rights, as well as other legal rights
+ used to protect databases and data, can create uncertainty or practical
+ difficulty for those wishing to share databases and their underlying data but
+ retain a limited amount of rights under a “some rights reserved” approach to
+ licensing as outlined in the Science Commons Protocol for Implementing Open
+ Access Data. As a result, this waiver and licence tries to the fullest extent
+ possible to eliminate or fully license any rights that cover this database and
+ data. Any Community Norms or similar statements of use of the database or data
+ do not form a part of this document, and do not act as a contract for access or
+ other terms of use for the database or data.
+ .
+ The position of the recipient of the work
+ .
+ Because this document places the database and its contents in or as close as
+ possible within the public domain, there are no restrictions or requirements
+ placed on the recipient by this document. Recipients may use this work
+ commercially, use technical protection measures, combine this data or database
+ with other databases or data, and share their changes and additions or keep
+ them secret. It is not a requirement that recipients provide further users with
+ a copy of this licence or attribute the original creator of the data or
+ database as a source. The goal is to eliminate restrictions held by the
+ original creator of the data and database on the use of it by others.
+ .
+ The position of the dedicator of the work
+ .
+ Copyright law, as with most other law under the banner of “intellectual
+ property”, is inherently national law. This means that there exists several
+ differences in how copyright and other IP rights can be relinquished, waived or
+ licensed in the many legal jurisdictions of the world. This is despite much
+ harmonisation of minimum levels of protection. The internet and other
+ communication technologies span these many disparate legal jurisdictions and
+ thus pose special difficulties for a document relinquishing and waiving
+ intellectual property rights, including copyright and database rights, for use
+ by the global community. Because of this feature of intellectual property law,
+ this document first relinquishes the rights and waives the relevant rights and
+ claims. It then goes on to license these same rights for jurisdictions or areas
+ of law that may make it difficult to relinquish or waive rights or claims.
+ .
+ The purpose of this document is to enable rightsholders to place their work
+ into the public domain. Unlike licences for free and open source software, free
+ cultural works, or open content licences, rightsholders will not be able to
+ “dual license” their work by releasing the same work under different licences.
+ This is because they have allowed anyone to use the work in whatever way they
+ choose. Rightsholders therefore can’t re-license it under copyright or database
+ rights on different terms because they have nothing left to license. Doing so
+ creates truly accessible data to build rich applications and advance the
+ progress of science and the arts.
+ .
+ This document can cover either or both of the database and its contents (the
+ data). Because databases can have a wide variety of content – not just factual
+ data – rightsholders should use the Open Data Commons – Public Domain
+ Dedication & Licence for an entire database and its contents only if everything
+ can be placed under the terms of this document. Because even factual data can
+ sometimes have intellectual property rights, rightsholders should use this
+ licence to cover both the database and its factual data when making material
+ available under this document; even if it is likely that the data would not be
+ covered by copyright or database rights.
+ .
+ Rightsholders can also use this document to cover any copyright or database
+ rights claims over only a database, and leave the contents to be covered by
+ other licences or documents. They can do this because this document refers to
+ the “Work”, which can be either – or both – the database and its contents. As a
+ result, rightsholders need to clearly state what they are dedicating under this
+ document when they dedicate it.
+ .
+ Just like any licence or other document dealing with intellectual property,
+ rightsholders should be aware that one can only license what one owns. Please
+ ensure that the rights have been cleared to make this material available under
+ this document.
+ .
+ This document permanently and irrevocably makes the Work available to the
+ public for any use of any kind, and it should not be used unless the
+ rightsholder is prepared for this to happen.
+ .
+ Part I: Introduction
+ .
+ The Rightsholder (the Person holding rights or claims over the Work) agrees as
+ follows:
+ .
+ 1.0 Definitions of Capitalised Words
+ .
+ “Copyright” – Includes rights under copyright and under neighbouring rights and
+ similarly related sets of rights under the law of the relevant jurisdiction
+ under Section 6.4.
+ .
+ “Data” – The contents of the Database, which includes the information,
+ independent works, or other material collected into the Database offered under
+ the terms of this Document.
+ .
+ “Database” – A collection of Data arranged in a systematic or methodical way
+ and individually accessible by electronic or other means offered under the
+ terms of this Document.
+ .
+ “Database Right” – Means rights over Data resulting from the Chapter III (“sui
+ generis”) rights in the Database Directive (Directive 96/9/EC of the European
+ Parliament and of the Council of 11 March 1996 on the legal protection of
+ databases) and any future updates as well as any similar rights available in
+ the relevant jurisdiction under Section 6.4.
+ .
+ “Document” – means this relinquishment and waiver of rights and claims and back
+ up licence agreement.
+ .
+ “Person” – Means a natural or legal person or a body of persons corporate or
+ incorporate.
+ .
+ “Use” – As a verb, means doing any act that is restricted by Copyright or
+ Database Rights whether in the original medium or any other; and includes
+ modifying the Work as may be technically necessary to use it in a different
+ mode or format. This includes the right to sublicense the Work.
+ .
+ “Work” – Means either or both of the Database and Data offered under the terms
+ of this Document.
+ .
+ “You” – the Person acquiring rights under the licence elements of this
+ Document.
+ .
+ Words in the singular include the plural and vice versa.
+ .
+ 2.0 What this document covers
+ .
+ 2.1. Legal effect of this Document. This Document is:
+ .
+ a. A dedication to the public domain and waiver of Copyright and Database
+ Rights over the Work; and
+ .
+ b. A licence of Copyright and Database Rights over the Work in jurisdictions
+ that do not allow for relinquishment or waiver.
+ .
+ 2.2. Legal rights covered.
+ .
+ a. Copyright. Any copyright or neighbouring rights in the Work. Copyright law
+ varies between jurisdictions, but is likely to cover: the Database model or
+ schema, which is the structure, arrangement, and organisation of the Database,
+ and can also include the Database tables and table indexes; the data entry and
+ output sheets; and the Field names of Data stored in the Database. Copyright
+ may also cover the Data depending on the jurisdiction and type of Data; and
+ .
+ b. Database Rights. Database Rights only extend to the extraction and
+ re-utilisation of the whole or a substantial part of the Data. Database Rights
+ can apply even when there is no copyright over the Database. Database Rights
+ can also apply when the Data is removed from the Database and is selected and
+ arranged in a way that would not infringe any applicable copyright.
+ .
+ 2.2 Rights not covered.
+ .
+ a. This Document does not apply to computer programs used in the making or
+ operation of the Database;
+ .
+ b. This Document does not cover any patents over the Data or the Database.
+ Please see Section 4.2 later in this Document for further details; and
+ .
+ c. This Document does not cover any trade marks associated with the Database.
+ Please see Section 4.3 later in this Document for further details.
+ .
+ Users of this Database are cautioned that they may have to clear other rights
+ or consult other licences.
+ .
+ 2.3 Facts are free. The Rightsholder takes the position that factual
+ information is not covered by Copyright. This Document however covers the Work
+ in jurisdictions that may protect the factual information in the Work by
+ Copyright, and to cover any information protected by Copyright that is
+ contained in the Work.
+ .
+ Part II: Dedication to the public domain
+ .
+ 3.0 Dedication, waiver, and licence of Copyright and Database Rights
+ .
+ 3.1 Dedication of Copyright and Database Rights to the public domain. The
+ Rightsholder by using this Document, dedicates the Work to the public domain
+ for the benefit of the public and relinquishes all rights in Copyright and
+ Database Rights over the Work.
+ .
+ a. The Rightsholder realises that once these rights are relinquished, that the
+ Rightsholder has no further rights in Copyright and Database Rights over the
+ Work, and that the Work is free and open for others to Use.
+ .
+ b. The Rightsholder intends for their relinquishment to cover all present and
+ future rights in the Work under Copyright and Database Rights, whether they are
+ vested or contingent rights, and that this relinquishment of rights covers all
+ their heirs and successors.
+ .
+ The above relinquishment of rights applies worldwide and includes media and
+ formats now known or created in the future.
+ .
+ 3.2 Waiver of rights and claims in Copyright and Database Rights when Section
+ 3.1 dedication inapplicable. If the dedication in Section 3.1 does not apply in
+ the relevant jurisdiction under Section 6.4, the Rightsholder waives any rights
+ and claims that the Rightsholder may have or acquire in the future over the
+ Work in:
+ .
+ a. Copyright; and
+ .
+ b. Database Rights.
+ .
+ To the extent possible in the relevant jurisdiction, the above waiver of rights
+ and claims applies worldwide and includes media and formats now known or
+ created in the future. The Rightsholder agrees not to assert the above rights
+ and waives the right to enforce them over the Work.
+ .
+ 3.3 Licence of Copyright and Database Rights when Sections 3.1 and 3.2
+ inapplicable. If the dedication and waiver in Sections 3.1 and 3.2 does not
+ apply in the relevant jurisdiction under Section 6.4, the Rightsholder and You
+ agree as follows:
+ .
+ a. The Licensor grants to You a worldwide, royalty-free, non-exclusive, licence
+ to Use the Work for the duration of any applicable Copyright and Database
+ Rights. These rights explicitly include commercial use, and do not exclude any
+ field of endeavour. To the extent possible in the relevant jurisdiction, these
+ rights may be exercised in all media and formats whether now known or created
+ in the future.
+ .
+ 3.4 Moral rights. This section covers moral rights, including the right to be
+ identified as the author of the Work or to object to treatment that would
+ otherwise prejudice the author’s honour and reputation, or any other derogatory
+ treatment:
+ .
+ a. For jurisdictions allowing waiver of moral rights, Licensor waives all moral
+ rights that Licensor may have in the Work to the fullest extent possible by the
+ law of the relevant jurisdiction under Section 6.4;
+ .
+ b. If waiver of moral rights under Section 3.4 a in the relevant jurisdiction
+ is not possible, Licensor agrees not to assert any moral rights over the Work
+ and waives all claims in moral rights to the fullest extent possible by the law
+ of the relevant jurisdiction under Section 6.4; and
+ .
+ c. For jurisdictions not allowing waiver or an agreement not to assert moral
+ rights under Section 3.4 a and b, the author may retain their moral rights over
+ the copyrighted aspects of the Work.
+ .
+ Please note that some jurisdictions do not allow for the waiver of moral
+ rights, and so moral rights may still subsist over the work in some
+ jurisdictions.
+ .
+ 4.0 Relationship to other rights
+ .
+ 4.1 No other contractual conditions. The Rightsholder makes this Work available
+ to You without any other contractual obligations, either express or implied.
+ Any Community Norms statement associated with the Work is not a contract and
+ does not form part of this Document.
+ .
+ 4.2 Relationship to patents. This Document does not grant You a licence for any
+ patents that the Rightsholder may own. Users of this Database are cautioned
+ that they may have to clear other rights or consult other licences.
+ .
+ 4.3 Relationship to trade marks. This Document does not grant You a licence for
+ any trade marks that the Rightsholder may own or that the Rightsholder may use
+ to cover the Work. Users of this Database are cautioned that they may have to
+ clear other rights or consult other licences.
+ .
+ Part III: General provisions
+ .
+ 5.0 Warranties, disclaimer, and limitation of liability
+ .
+ 5.1 The Work is provided by the Rightsholder “as is” and without any warranty
+ of any kind, either express or implied, whether of title, of accuracy or
+ completeness, of the presence of absence of errors, of fitness for purpose, or
+ otherwise. Some jurisdictions do not allow the exclusion of implied warranties,
+ so this exclusion may not apply to You.
+ .
+ 5.2 Subject to any liability that may not be excluded or limited by law, the
+ Rightsholder is not liable for, and expressly excludes, all liability for loss
+ or damage however and whenever caused to anyone by any use under this Document,
+ whether by You or by anyone else, and whether caused by any fault on the part
+ of the Rightsholder or not. This exclusion of liability includes, but is not
+ limited to, any special, incidental, consequential, punitive, or exemplary
+ damages. This exclusion applies even if the Rightsholder has been advised of
+ the possibility of such damages.
+ .
+ 5.3 If liability may not be excluded by law, it is limited to actual and direct
+ financial loss to the extent it is caused by proved negligence on the part of
+ the Rightsholder.
+ .
+ 6.0 General
+ .
+ 6.1 If any provision of this Document is held to be invalid or unenforceable,
+ that must not affect the validity or enforceability of the remainder of the
+ terms of this Document.
+ .
+ 6.2 This Document is the entire agreement between the parties with respect to
+ the Work covered here. It replaces any earlier understandings, agreements or
+ representations with respect to the Work not specified here.
+ .
+ 6.3 This Document does not affect any rights that You or anyone else may
+ independently have under any applicable law to make any use of this Work,
+ including (for jurisdictions where this Document is a licence) fair dealing,
+ fair use, database exceptions, or any other legally recognised limitation or
+ exception to infringement of copyright or other applicable laws.
+ .
+ 6.4 This Document takes effect in the relevant jurisdiction in which the
+ Document terms are sought to be enforced. If the rights waived or granted under
+ applicable law in the relevant jurisdiction includes additional rights not
+ waived or granted under this Document, these additional rights are included in
+ this Document in order to meet the intent of this Document.
diff --git a/debian/debian/control b/debian/debian/control
new file mode 100644
index 0000000..e69de29
diff --git a/debian/debian/copyright b/debian/debian/copyright
new file mode 100644
index 0000000..4c61bee
--- /dev/null
+++ b/debian/debian/copyright
@@ -0,0 +1,34 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: CiftiLib
+Upstream-Contact: Tim Coalson
+Source: https://github.com/Washington-University/CiftiLib
+
+Files: *
+Copyright 2014 Washington University School of Medicine
+License: BSD-2-Clause
+
+Files: debian/*
+Copyright: 2016 Ghislain Antony Vaillant <ghisvail at gmail.com>
+License: BSD-2-Clause
+
+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:
+ .
+ 1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+ .
+ 2. 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.
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..ea5c858
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,9 @@
+[DEFAULT]
+upstream-branch = upstream/latest
+debian-branch = debian/master
+upstream-tag = upstream/%(version)s
+debian-tag = debian/%(version)s
+pristine-tar = True
+
+[pq]
+patch-numbers = False
diff --git a/debian/libcifti-dev.install b/debian/libcifti-dev.install
new file mode 100644
index 0000000..90d8c98
--- /dev/null
+++ b/debian/libcifti-dev.install
@@ -0,0 +1,3 @@
+usr/include
+usr/lib/*/*.so
+usr/lib/*/pkgconfig
diff --git a/debian/libcifti-doc.doc-base b/debian/libcifti-doc.doc-base
new file mode 100644
index 0000000..71263d5
--- /dev/null
+++ b/debian/libcifti-doc.doc-base
@@ -0,0 +1,9 @@
+Document: libcifti-doc
+Title: API documentation for CiftiLib
+Author: Washington University School of Medicine
+Abstract: This is the reference documentation for CiftiLib.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/libcifti-doc/html/index.html
+Files: /usr/share/doc/libcifti-doc/html/*.html
diff --git a/debian/libcifti-doc.docs b/debian/libcifti-doc.docs
new file mode 100644
index 0000000..5ca7b4f
--- /dev/null
+++ b/debian/libcifti-doc.docs
@@ -0,0 +1,2 @@
+*/doc/html
+USAGE
diff --git a/debian/libcifti-doc.examples b/debian/libcifti-doc.examples
new file mode 100644
index 0000000..0bbe99e
--- /dev/null
+++ b/debian/libcifti-doc.examples
@@ -0,0 +1 @@
+example/*
diff --git a/debian/libcifti0.install b/debian/libcifti0.install
new file mode 100644
index 0000000..3de3b10
--- /dev/null
+++ b/debian/libcifti0.install
@@ -0,0 +1 @@
+usr/lib/*/*.so.*
diff --git a/debian/patches/Enable-parallel-execution-of-tests.patch b/debian/patches/Enable-parallel-execution-of-tests.patch
new file mode 100644
index 0000000..421080c
--- /dev/null
+++ b/debian/patches/Enable-parallel-execution-of-tests.patch
@@ -0,0 +1,23 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Tue, 8 Nov 2016 11:28:10 +0000
+Subject: Enable parallel execution of tests.
+
+---
+ example/CMakeLists.txt | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt
+index 71f4b0a..bc34779 100644
+--- a/example/CMakeLists.txt
++++ b/example/CMakeLists.txt
+@@ -76,8 +76,10 @@ FOREACH(index RANGE ${loop_end})
+     ADD_TEST(rewrite-little-${testfile} rewrite ${CMAKE_SOURCE_DIR}/example/data/${testfile} little-${testfile} LITTLE)
+     LIST(GET cifti_le_md5s ${index} goodsum)
+     ADD_TEST(rewrite-little-md5-${testfile} ${CMAKE_COMMAND} -Dgood_sum=${goodsum} -Dcheck_file=little-${testfile} -P ${CMAKE_SOURCE_DIR}/cmake/scripts/testmd5.cmake)
++    SET_TESTS_PROPERTIES(rewrite-little-md5-${testfile} PROPERTIES DEPENDS rewrite-little-${testfile})
+ 
+     ADD_TEST(rewrite-big-${testfile} rewrite ${CMAKE_SOURCE_DIR}/example/data/${testfile} big-${testfile} BIG)
+     LIST(GET cifti_be_md5s ${index} goodsum)
+     ADD_TEST(rewrite-big-md5-${testfile} ${CMAKE_COMMAND} -Dgood_sum=${goodsum} -Dcheck_file=big-${testfile} -P ${CMAKE_SOURCE_DIR}/cmake/scripts/testmd5.cmake)
++    SET_TESTS_PROPERTIES(rewrite-big-md5-${testfile} PROPERTIES DEPENDS rewrite-big-${testfile})
+ ENDFOREACH(index RANGE ${loop_end})
diff --git a/debian/patches/Fix-spelling-errors-reported-by-Lintian.patch b/debian/patches/Fix-spelling-errors-reported-by-Lintian.patch
new file mode 100644
index 0000000..d05de2e
--- /dev/null
+++ b/debian/patches/Fix-spelling-errors-reported-by-Lintian.patch
@@ -0,0 +1,76 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Tue, 8 Nov 2016 12:41:01 +0000
+Subject: Fix spelling errors reported by Lintian.
+
+---
+ src/Cifti/CiftiBrainModelsMap.cxx | 8 ++++----
+ src/CiftiFile.cxx                 | 6 +++---
+ 2 files changed, 7 insertions(+), 7 deletions(-)
+
+diff --git a/src/Cifti/CiftiBrainModelsMap.cxx b/src/Cifti/CiftiBrainModelsMap.cxx
+index 39e65c6..d8c1e54 100644
+--- a/src/Cifti/CiftiBrainModelsMap.cxx
++++ b/src/Cifti/CiftiBrainModelsMap.cxx
+@@ -262,7 +262,7 @@ const vector<int64_t>& CiftiBrainModelsMap::getNodeList(const StructureEnum::Enu
+     map<StructureEnum::Enum, int>::const_iterator iter = m_surfUsed.find(structure);
+     if (iter == m_surfUsed.end())
+     {
+-        throw CiftiException("getNodeList called for nonexistant structure");//throw if it doesn't exist, because we don't have a reference to return - things should identify which structures exist before calling this
++        throw CiftiException("getNodeList called for nonexistent structure");//throw if it doesn't exist, because we don't have a reference to return - things should identify which structures exist before calling this
+     }
+     CiftiAssertVectorIndex(m_modelsInfo, iter->second);
+     return m_modelsInfo[iter->second].m_nodeIndices;
+@@ -274,7 +274,7 @@ vector<CiftiBrainModelsMap::SurfaceMap> CiftiBrainModelsMap::getSurfaceMap(const
+     map<StructureEnum::Enum, int>::const_iterator iter = m_surfUsed.find(structure);
+     if (iter == m_surfUsed.end())
+     {
+-        throw CiftiException("getSurfaceMap called for nonexistant structure");//also throw, for consistency
++        throw CiftiException("getSurfaceMap called for nonexistent structure");//also throw, for consistency
+     }
+     CiftiAssertVectorIndex(m_modelsInfo, iter->second);
+     const BrainModelPriv& myModel = m_modelsInfo[iter->second];
+@@ -380,7 +380,7 @@ vector<CiftiBrainModelsMap::VolumeMap> CiftiBrainModelsMap::getVolumeStructureMa
+     map<StructureEnum::Enum, int>::const_iterator iter = m_volUsed.find(structure);
+     if (iter == m_volUsed.end())
+     {
+-        throw CiftiException("getVolumeStructureMap called for nonexistant structure");//also throw, for consistency
++        throw CiftiException("getVolumeStructureMap called for nonexistent structure");//also throw, for consistency
+     }
+     CiftiAssertVectorIndex(m_modelsInfo, iter->second);
+     const BrainModelPriv& myModel = m_modelsInfo[iter->second];
+@@ -404,7 +404,7 @@ const vector<int64_t>& CiftiBrainModelsMap::getVoxelList(const StructureEnum::En
+     map<StructureEnum::Enum, int>::const_iterator iter = m_volUsed.find(structure);
+     if (iter == m_volUsed.end())
+     {
+-        throw CiftiException("getVoxelList called for nonexistant structure");//throw if it doesn't exist, because we don't have a reference to return - things should identify which structures exist before calling this
++        throw CiftiException("getVoxelList called for nonexistent structure");//throw if it doesn't exist, because we don't have a reference to return - things should identify which structures exist before calling this
+     }
+     CiftiAssertVectorIndex(m_modelsInfo, iter->second);
+     return m_modelsInfo[iter->second].m_voxelIndicesIJK;
+diff --git a/src/CiftiFile.cxx b/src/CiftiFile.cxx
+index 99dd512..6e768d7 100644
+--- a/src/CiftiFile.cxx
++++ b/src/CiftiFile.cxx
+@@ -165,11 +165,11 @@ void CiftiFile::writeFile(const AString& fileName, const CiftiVersion& writingVe
+ {
+     if (m_readingImpl == NULL || m_dims.empty()) throw CiftiException("writeFile called on uninitialized CiftiFile");
+     bool writeSwapped = shouldSwap(endian);
+-    AString canonicalFilename = pathToCanonical(fileName);//NOTE: returns EMPTY STRING for nonexistant file
++    AString canonicalFilename = pathToCanonical(fileName);//NOTE: returns EMPTY STRING for nonexistent file
+     const CiftiOnDiskImpl* testImpl = dynamic_cast<CiftiOnDiskImpl*>(m_readingImpl.get());
+     bool collision = false, hadWriter = (m_writingImpl != NULL);
+     if (testImpl != NULL && canonicalFilename != "" && pathToCanonical(testImpl->getFilename()) == canonicalFilename)
+-    {//empty string test is so that we don't say collision if both are nonexistant - could happen if file is removed/unlinked while reading on some filesystems
++    {//empty string test is so that we don't say collision if both are nonexistent - could happen if file is removed/unlinked while reading on some filesystems
+         if (m_onDiskVersion == writingVersion && (dontRewrite(endian) || writeSwapped == testImpl->isSwapped())) return;//don't need to copy to itself
+         collision = true;//we need to copy to memory temporarily
+         boost::shared_ptr<WriteImplInterface> tempMemory(new CiftiMemoryImpl(m_xml));//because tempRead is a ReadImpl, can't be used to copy to
+@@ -300,7 +300,7 @@ void CiftiFile::verifyWriteImpl()
+             CiftiOnDiskImpl* testImpl = dynamic_cast<CiftiOnDiskImpl*>(m_readingImpl.get());
+             if (testImpl != NULL)
+             {
+-                AString canonicalCurrent = pathToCanonical(testImpl->getFilename());//returns "" if nonexistant, if unlinked while open
++                AString canonicalCurrent = pathToCanonical(testImpl->getFilename());//returns "" if nonexistent, if unlinked while open
+                 if (canonicalCurrent != "" && canonicalCurrent == pathToCanonical(m_writingFile))//these were already absolute
+                 {
+                     convertToInMemory();//save existing data in memory before we clobber file
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..f06d3de
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+Enable-parallel-execution-of-tests.patch
+Fix-spelling-errors-reported-by-Lintian.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..f81a4ba
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,24 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE = 1
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+# Prevent overlinkage with libsigc++-2.0.
+export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+
+%:
+	dh $@
+
+override_dh_auto_configure:
+	dh_auto_configure -- -DBUILD_SHARED_LIBS=ON -DIGNORE_QT=ON
+
+override_dh_auto_build-indep:
+	dh_auto_build -- doc
+
+override_dh_installdocs-indep:
+	dh_installdocs --indep
+	dh_doxygen --indep
+
+override_dh_compress-indep:
+	dh_compress --indep --exclude=examples
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/tests/ciftilib-tests b/debian/tests/ciftilib-tests
new file mode 100755
index 0000000..6ac6b9a
--- /dev/null
+++ b/debian/tests/ciftilib-tests
@@ -0,0 +1,55 @@
+#!/bin/sh
+# Copyright 2016 Ghislain Antony Vaillant
+#
+# This file is part of the packaging testsuite for ciftilib.
+
+set -e
+
+# Prepare the testsuite.
+cp -a /usr/share/doc/libcifti-doc/examples/* "$AUTOPKGTEST_TMP"
+cp ./cmake/scripts/testmd5.cmake "$AUTOPKGTEST_TMP"
+cd "$AUTOPKGTEST_TMP"
+
+# Setup the CMake project.
+rm -f CMakeLists.txt
+cat << EOF > CMakeLists.txt
+cmake_minimum_required(VERSION 2.8.12)
+project(ciftilib-tests)
+
+enable_testing()
+
+find_package(PkgConfig)
+pkg_check_modules(PC_CIFTI REQUIRED CiftiLib)
+add_library(PkgConfig::Cifti INTERFACE IMPORTED)
+set_target_properties(PkgConfig::Cifti PROPERTIES
+	INTERFACE_INCLUDE_DIRECTORIES "\${PC_CIFTI_INCLUDE_DIRS}"
+	INTERFACE_LINK_LIBRARIES "\${PC_CIFTI_LIBRARIES}"
+	INTERFACE_COMPILE_OPTIONS "\${PC_CIFTI_CFLAGS_OTHER}")
+
+add_executable(rewrite rewrite.cxx)
+target_link_libraries(rewrite PkgConfig::Cifti)
+
+add_executable(xmlinfo xmlinfo.cxx)
+target_link_libraries(xmlinfo PkgConfig::Cifti)
+
+set(cifti_files Conte69.MyelinAndCorrThickness.32k_fs_LR.dscalar.nii
+	Conte69.MyelinAndCorrThickness.32k_fs_LR.dtseries.nii
+	Conte69.MyelinAndCorrThickness.32k_fs_LR.ptseries.nii
+	Conte69.parcellations_VGD11b.32k_fs_LR.dlabel.nii
+	ones.dscalar.nii)
+
+list(LENGTH cifti_files num_cifti_files)
+math(EXPR loop_end "\${num_cifti_files} - 1")
+
+foreach(index RANGE \${loop_end})
+	list(GET cifti_files \${index} testfile)
+	add_test(info-\${testfile} xmlinfo \${CMAKE_CURRENT_SOURCE_DIR}/data/\${testfile})
+	add_test(rewrite-little-\${testfile} rewrite \${CMAKE_SOURCE_DIR}/data/\${testfile} little-\${testfile} LITTLE)
+	add_test(rewrite-big-\${testfile} rewrite \${CMAKE_SOURCE_DIR}/data/\${testfile} big-\${testfile} BIG)
+endforeach(index RANGE \${loop_end})
+
+EOF
+
+# Configure, build and execute.
+mkdir build && cd build
+cmake .. && make && make test
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..83e3652
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: ciftilib-tests
+Depends: @, cmake, g++ | c++-compiler, pkg-config
diff --git a/debian/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..4f0c5e4
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,5 @@
+Bug-Database: https://github.com/Washington-University/CiftiLib/issues
+Bug-Submit: https://github.com/Washington-University/CiftiLib/issues/new
+Name: CiftiLib
+Repository: git at github.com:Washington-University/CiftiLib
+Repository-Browse: https://github.com/Washington-University/CiftiLib
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..d5ccf4a
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/CiftiLib-$1\.tar\.gz/ \
+https://github.com/Washington-University/CiftiLib/tags .*/v?(\d\S*)\.tar\.gz

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



More information about the debian-med-commit mailing list