[libvigraimpex] 02/10: Add debian/ dir adapted to Debian Science policy

Andreas Tille tille at debian.org
Wed Feb 12 21:51:02 UTC 2014


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

tille pushed a commit to branch master
in repository libvigraimpex.

commit 0dbfe5ce2a8aa299eca465a776302497b599da15
Author: Andreas Tille <tille at debian.org>
Date:   Wed Feb 12 11:50:51 2014 +0100

    Add debian/ dir adapted to Debian Science policy
---
 debian/Makefile                                    |  18 +
 debian/NEWS                                        |  11 +
 debian/README.Debian                               |   7 +
 debian/changelog                                   | 437 +++++++++++++++++++++
 debian/clean                                       |   4 +
 debian/compat                                      |   1 +
 debian/control                                     | 126 ++++++
 debian/convert-changelog.sh                        |  20 +
 debian/copyright                                   |  59 +++
 debian/dh_numpy                                    |  33 ++
 debian/libvigraimpex-dev.dirs                      |   2 +
 debian/libvigraimpex-dev.docs                      |   1 +
 debian/libvigraimpex-dev.examples                  |   5 +
 debian/libvigraimpex-dev.install                   |   3 +
 debian/libvigraimpex-dev.manpages                  |   1 +
 debian/libvigraimpex-doc.doc-base                  |   8 +
 debian/libvigraimpex-doc.docs                      |   1 +
 debian/libvigraimpex-doc.links                     |   1 +
 debian/libvigraimpex4.dirs                         |   1 +
 debian/libvigraimpex4.docs                         |   1 +
 debian/libvigraimpex4.install                      |   1 +
 ...-noise-variance-clustering-vigranumpy-test.diff |  19 +
 debian/patches/docsrc-out-of-source.diff           |  16 +
 debian/patches/docsrc-paths.diff                   |  68 ++++
 debian/patches/removed-static-docs.diff            |  11 +
 debian/patches/series                              |   5 +
 debian/patches/vigra-config-docdir.diff            |  12 +
 debian/python-vigra-doc.doc-base                   |  12 +
 debian/python-vigra-doc.docs                       |   1 +
 debian/python-vigra-doc.links                      |   4 +
 debian/python-vigra.install                        |   1 +
 debian/rules                                       | 202 ++++++++++
 debian/source/format                               |   1 +
 debian/vigra-config.1                              |  28 ++
 debian/watch                                       |   3 +
 35 files changed, 1124 insertions(+)

diff --git a/debian/Makefile b/debian/Makefile
new file mode 100644
index 0000000..e98f990
--- /dev/null
+++ b/debian/Makefile
@@ -0,0 +1,18 @@
+CXXFLAGS = -g -O2 -Wall
+LDFLAGS = -lvigraimpex
+
+SOURCES = $(wildcard *.cxx)
+TARGETS = $(SOURCES:.cxx=)
+
+all: $(TARGETS)
+
+%.o: %.cxx
+	$(COMPILE.cc) -o $(@) $(<)
+
+$(TARGETS): %: %.o
+	$(LINK.cc) -o $(@) $(<)
+
+clean:
+	rm -f *.o $(TARGETS)
+
+# vim:ts=4 sw=4 noet
diff --git a/debian/NEWS b/debian/NEWS
new file mode 100644
index 0000000..ae3b508
--- /dev/null
+++ b/debian/NEWS
@@ -0,0 +1,11 @@
+libvigraimpex (1.7.0+dfsg-3) unstable; urgency=low
+
+  VIGRA 1.7.0 introduces two backwards incompatible changes:
+
+  * Angle convention was modified from counter-clockwise to clockwise.
+
+  * symmetricEigensystem() sorts eigenvalues by decreasing value (was:
+    decreasing absolute values).
+
+ -- Jakub Wilk <jwilk at debian.org>  Wed, 16 Jun 2010 01:12:04 +0200
+
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..2a427ad
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,7 @@
+vigra for Debian
+----------------
+
+To compile the examples, copy all from the directory examples/ to a
+place you have write permision, ungzip all files, and make.
+
+ -- Alejandro Sierra <algsierra at gmail.com>, Sat,  4 Jun 2005 23:59:00 -0500
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..c23f278
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,437 @@
+libvigraimpex (1.10.0+dfsg-1) UNRELEASED; urgency=medium
+
+  * New upstream version (verify and refresh patches)
+  * debian/watch: point to Github
+  * debian/copyright: Files-Excluded, removed get-orig-source.sh
+  * debian/control:
+     - Build-Depends: libtiff5-dev
+       Closes: #681077
+     - cme fix dpkg-control
+     - debhelper 9
+     - Debian Science team maintenance
+     - Fix Homepage
+
+ -- Andreas Tille <tille at debian.org>  Wed, 12 Feb 2014 10:17:38 +0100
+
+libvigraimpex (1.9.0+dfsg-7) unstable; urgency=low
+
+  * QA upload.
+  * Make debian/rules work with both multiarch and non-multiarch
+    libboost-python. (This supersedes the change in
+    Ubuntu 1.9.0+dfsg-6ubuntu2.)
+
+ -- Andreas Metzler <ametzler at debian.org>  Sat, 05 Oct 2013 13:45:19 +0200
+
+libvigraimpex (1.9.0+dfsg-6) unstable; urgency=low
+
+  * QA upload.
+  * Drop parallell build support.
+
+ -- Andreas Metzler <ametzler at debian.org>  Fri, 05 Jul 2013 19:05:49 +0200
+
+libvigraimpex (1.9.0+dfsg-5) unstable; urgency=low
+
+  * Also append CPPFLAGS to CXXFLAGS.
+  * Increase minimum memory requirement for parallel build on buildd by factor
+    three since s390 exhausted virtual memory on parallel build.
+
+ -- Andreas Metzler <ametzler at debian.org>  Thu, 04 Jul 2013 19:08:27 +0200
+
+libvigraimpex (1.9.0+dfsg-4) unstable; urgency=low
+
+  * QA upload.
+  * Switch back to tiff4, we do not want to start our own
+    mini-tiff-transition.
+  * Upload to unstable.
+
+ -- Andreas Metzler <ametzler at debian.org>  Sun, 16 Jun 2013 13:57:23 +0200
+
+libvigraimpex (1.9.0+dfsg-3) experimental; urgency=low
+
+  * QA upload.
+  * [ref-to-temporary-in-Sampler.diff] Fix FTBFS witch gcc-4.8.
+    Closes: #701313
+
+ -- Andreas Metzler <ametzler at debian.org>  Sun, 19 May 2013 15:44:09 +0200
+
+libvigraimpex (1.9.0+dfsg-2) experimental; urgency=low
+
+  * QA upload.
+  * [20_increased-tolerance-tests.diff] from upstream GIT: Increase tolerance
+    for a few tests hopefully fixing testsuite errors on s390x and ia64.
+
+ -- Andreas Metzler <ametzler at debian.org>  Tue, 23 Apr 2013 19:10:22 +0200
+
+libvigraimpex (1.9.0+dfsg-1) experimental; urgency=low
+
+  * QA upload.
+  * New upstream version.
+  * Partial sync from Ubuntu:
+    + Unfuzz patches docsrc-out-of-source.diff and docsrc-paths.diff
+    + Drop no-offline-ps-doc.diff, doxygen-1.8.diff and gcc-4.7-fixes.diff,
+      included upstream.
+    + Drop gzipped-tutorial-reference.diff, pointing to upstream copy instead.
+    + Downgrade python-h5py from python-vigra's Recommends to Suggests.
+  * Use $(wildcard) to find both multiarched and regular libpython.
+  * Explicitly enable OpenEXR-support, it is not selected automatically
+    anymore.
+  * Bump shlibs.
+
+ -- Andreas Metzler <ametzler at debian.org>  Sun, 07 Apr 2013 13:38:04 +0200
+
+libvigraimpex (1.8.0+dfsg-2) experimental; urgency=low
+
+  * QA upload.
+  * Enable OpenEXR support by adding a build-dependency on libopenexr-dev.
+  * Stop using .symbols files, and use 'dh_makeshlibs -V ...' to version the
+    shlibs file. This fixes FTBFS with diffferent gcc != 4.7.
+    Closes: #691095
+
+ -- Andreas Metzler <ametzler at debian.org>  Sun, 13 Jan 2013 13:10:39 +0100
+
+libvigraimpex (1.8.0+dfsg-1) experimental; urgency=low
+
+  * QA upload.
+  * New upstream version.
+  * Update patches for new upstream release.
+  * Bump libvigraimpex soname to 4, update symbols file.
+  * Fix (new?) GCC 4.7 build failures.
+  * Fix build failure with doxygen 1.8.x.
+  * Build using dh_python2.
+  * debian/rules: Remove -mieee for sh4, it's now the default.
+  * Build with -ffloat-store on i386, to let the testsuite pass.
+  * Don't stop running the testsuite on the first error.
+  * On powerpc, run the tests, but ignore the test results.
+    It's likely that the build will fail on other archs, after
+    inspecting the test results, the outcome of the test should be
+    disabled or the precision for some tests be adjusted.
+
+ -- Matthias Klose <doko at debian.org>  Wed, 26 Sep 2012 23:52:37 +0200
+
+libvigraimpex (1.7.1+dfsg1-3) unstable; urgency=low
+
+  * QA upload
+  * Fix build failure with GCC 4.7. Closes: #667258.
+  * Build-depend on libpng-dev. Closes: #662414.
+
+ -- Matthias Klose <doko at debian.org>  Mon, 16 Apr 2012 23:06:00 +0200
+
+libvigraimpex (1.7.1+dfsg1-2) unstable; urgency=low
+
+  * QA upload
+  * Patch libpng15: Fix FTBFS with libpng 1.5 (closes: #636003). Thanks to
+    Nobuhiro Iwamatsu and Joachim Schleicher for forwarding and testing
+    the patch.
+  * Replace build-dependency on libpng12-dev by libpng-dev | libpng12-dev
+    in order to ease the upcoming libpng transition.
+  * Fix FTBFS on sh4 architecture by using -mieee flag (closes: #633818).
+    Thanks to Nobuhiro Iwamatsu for the patch!
+
+ -- Ralf Treinen <treinen at debian.org>  Thu, 04 Aug 2011 13:57:08 +0200
+
+libvigraimpex (1.7.1+dfsg1-1) unstable; urgency=low
+
+  * QA upload.
+  * Set maintainer to Debian QA Group.
+  * Demote Recommends of the documentation packages to Suggests.
+  * Drop fix-tinyvectortest.diff, no longer needed.
+  * Drop Vcs-* fields.
+  * Strip jQuery code from .orig.tar.gz, as we don't have source for it.
+    + Update debian/get-orig-source.sh, debian/rules, debian/watch.
+    + Update debian/copyright.
+  * Overhaul debian/rules. Stop using dh.
+  * Use dh_sphinxdoc:
+    + Update debian/control to use ${sphinxdoc:Depends} instead of hardcoded
+      libjs-jquery.
+    + Call it in debian/rules if it's installed. Otherwise, generate substvars
+      manually.
+  * Add missing build-dependency on python-support.
+
+ -- Jakub Wilk <jwilk at debian.org>  Tue, 12 Jul 2011 19:34:24 +0200
+
+libvigraimpex (1.7.1+dfsg-8) unstable; urgency=low
+
+  * Unbreak fix-tinyvectortest.diff.
+
+ -- Jakub Wilk <jwilk at debian.org>  Wed, 25 May 2011 01:21:31 +0200
+
+libvigraimpex (1.7.1+dfsg-7) unstable; urgency=low
+
+  * To fix FTBFS on s390, rewrite a loop in TinyVectorTest::equalIter(), so
+    that it doesn't trigger bug in GCC 4.6 (see Debian bug #627795).
+    [fix-tinyvectortest.diff]
+
+ -- Jakub Wilk <jwilk at debian.org>  Tue, 24 May 2011 22:09:12 +0200
+
+libvigraimpex (1.7.1+dfsg-6) unstable; urgency=low
+
+  * To fix FTBFS on powerpc with GCC 4.6, use epsilon comparison in
+    ConvolutionTest::recursiveFilterTestFromRepeatWithAvoid. Thanks to Stefano
+    Rivera for debugging and for the patch. [fix-convolutiontest.diff]
+  * Allow libvigraimpex-dev to be co-installable with over providers of
+    libhdf5-dev than libhdf5-serial-dev (closes: #627421). Thanks to Laurent
+    Bonnaud for the bug report.
+
+ -- Jakub Wilk <jwilk at debian.org>  Fri, 20 May 2011 20:24:30 +0200
+
+libvigraimpex (1.7.1+dfsg-5) unstable; urgency=low
+
+  * Use default Python version when building documentation.
+  * Update docsrc-doxygen-1.7.diff to deal with the latest Doxygen.
+  * Remove unused jquery.js from libvigraimpex-doc.
+  * Add a missing include to fix FTBFS with GCC 4.6 (closes: #625104). Thanks
+    to Lucas Nussbaum for the bug report. [fix-ftbfs-gcc4.6.diff]
+  * Bump standards version to 3.9.2 (no changes needed).
+  * Mark more symbols as optional.
+
+ -- Jakub Wilk <jwilk at debian.org>  Mon, 02 May 2011 19:47:58 +0200
+
+libvigraimpex (1.7.1+dfsg-4) unstable; urgency=low
+
+  * Preserve symlinks when copying object files from one build directory to
+    another (closes: #618667).
+
+ -- Jakub Wilk <jwilk at debian.org>  Sun, 20 Mar 2011 15:50:05 +0100
+
+libvigraimpex (1.7.1+dfsg-3) unstable; urgency=low
+
+  * Update the symbols file.
+  * On buildds, artificially limit paralellism in order not to run out of RAM.
+
+ -- Jakub Wilk <jwilk at debian.org>  Tue, 15 Mar 2011 15:14:04 +0100
+
+libvigraimpex (1.7.1+dfsg-2) unstable; urgency=low
+
+  * Upload to unstable.
+  * Fix patch headers to be in line with DEP-3.
+  * Update the symbols file.
+
+ -- Jakub Wilk <jwilk at debian.org>  Sat, 12 Mar 2011 20:29:34 +0100
+
+libvigraimpex (1.7.1+dfsg-1) experimental; urgency=low
+
+  * New upstream release.
+    + Drop numpy-double-longdouble.diff, applied upstream.
+    + Drop noise-normalization-invariant.diff, applied upstream.
+    + Update debian/copyright.
+    + Rename libvigraimpex2 to libvigraimpex3, following SONAME bump.
+    + Update the symbols file.
+    + Include the vigra-config script.
+      + Patch it to return correct documentation path.
+        [vigra-config-docdir.diff]
+      + Update debian/NEWS.
+      + Provide a new manual page.
+  * Update patch headers.
+  * Export LDFLAGS.
+  * Remove Win32-only files and pre-built documentation from the .orig
+    tarball to save some space.
+  * Respect DEB_BUILD_OPTIONS=parallel=N.
+  * Respect DEB_BUILD_OPTIONS=noopt.
+  * Rename some private variables in debian/rules to make them lowercase.
+  * Require that Numpy is usable with every supported Python version.
+  * Avoid using SONAMEs in Python extension modules.
+  * Convert debian/copyright to the latest DEP-5 version.
+  * Install symlinks from /usr/share/doc/libvigraimpex-dev/html to
+    /usr/share/doc/libvigraimpex-doc/html.
+  * Install symlinks from /usr/share/doc/python-vigra/{html,rst} to
+    /usr/share/doc/python-vigra-doc/{html,rst}.
+  * Build Python extensions with -fno-strict-aliasing.
+  * Remove ‘debian/tmp’ prefix from debian/*.install files.
+  * Provide ‘build-arch’ and ‘build-indep’ targets in debian/rules.
+  * Use an alternative dependency template in the symbols file to make sure
+    that a strict versioned dependency on the shared library will be generated
+    for packages using optional (private) symbols.
+
+ -- Jakub Wilk <jwilk at debian.org>  Sun, 20 Feb 2011 23:21:40 +0100
+
+libvigraimpex (1.7.0+dfsg-7) unstable; urgency=low
+
+  * Bump all versions in the symbols file to 1.7.0.
+  * Make python-vigra-doc recommend libvigraimpex-doc.
+  * Make libvigraimpex-doc suggest python-vigra-doc.
+  * Fix documentation generation with Doxygen 1.7.
+  * Fix hyperlinks from the C++ library documentation to python-vigra
+    documentation (closes: #590069) and the other way round (closes: #590068).
+    [docsrc-paths.diff]
+  * Stop using g++-4.3 on hppa, as #585925 is fixed now (closes: #588168).
+
+ -- Jakub Wilk <jwilk at debian.org>  Wed, 25 Aug 2010 20:54:45 +0200
+
+libvigraimpex (1.7.0+dfsg-6) unstable; urgency=low
+
+  * Fix generation of dependencies on python-numpy to take epochs into
+    account. Use dh_numpy provided by python-numpy if available.
+
+ -- Jakub Wilk <jwilk at debian.org>  Wed, 28 Jul 2010 12:15:09 +0200
+
+libvigraimpex (1.7.0+dfsg-5) unstable; urgency=low
+
+  * To fix ABI breakage, rename binary package from libvigraimpex2ldbl to
+    libvigraimpex2 (closes: #589779).
+  * Bump standards version to 3.9.1 (no changes needed).
+  * Automatically generate versioned dependencies on python-numpy.
+
+ -- Jakub Wilk <jwilk at debian.org>  Mon, 26 Jul 2010 23:17:03 +0200
+
+libvigraimpex (1.7.0+dfsg-4) unstable; urgency=low
+
+  * Bump standards version to 3.9.0 (no changes needed).
+  * In order to mitigate bug #586247, add invariant check to
+    noiseVarianceListMedianCut(). [noise-normalization-invariant.diff]
+  * For the time being, disable failing vigranumpy test for
+    noiseVarianceClustering(); see bug #586247.
+    [disable-noise-variance-clustering-vigranumpy-test.diff]
+  * Update headers for patches that has been applied upstream.
+
+ -- Jakub Wilk <jwilk at debian.org>  Mon, 05 Jul 2010 17:18:21 +0200
+
+libvigraimpex (1.7.0+dfsg-3) unstable; urgency=low
+
+  * New upstream release, which includes backwards-incompatible changes (see
+    NEWS.Debian for details).
+  * Drop all existing patches: they have been either applied upstream or
+    become irrelevant.
+  * Upstream added support for HDF5:
+    + Add libhdf5-serial-dev to Build-Depends and Depends of
+      libvigraimpex-dev.
+  * Upstream has implemented new build system on the basis of cmake:
+    + Build-depend on cmake.
+    + Reimplement debian/rules from scratch; update other files in debian/
+      accordingly.
+    + Drop vigra-config along with its manual page.
+    + No longer provide static library.
+  * Simplify makefile for examples.
+  * Build Python bindings for VIGRA:
+    + Build-depend on python-all-dev, python-numpy, libboost-python-dev,
+      python-sphinx.
+    + Patch documentation generation system to support out-of-source building.
+      [docsrc-out-of-source.diff]
+  * Run tests at build time.
+    + Build-depend on python-nose.
+  * Update the symbols file.
+  * Update the watch file.
+  * Install JPEG files into examples, too.
+  * Update debian/copyright and convert it do DEP-5 format.
+  * Fix link in the documentation to cope with the fact that
+    tutorial_reference.pdf is compressed in the binary package.
+    [gzipped-tutorial-reference.diff]
+  * Don't declare the same NumpyArrayValuetypeTraits instance twice if
+    sizeof(double) == sizeof(long double); fix FTBFS on such architectures
+    (closes: #581688). [numpy-double-longdouble.diff]
+  * Use g++-4.3 on hppa for the time being (closes: #582379). g++-4.4 is known
+    to generate buggy code, see bug #585925.
+
+ -- Jakub Wilk <jwilk at debian.org>  Wed, 16 Jun 2010 01:12:04 +0200
+
+libvigraimpex (1.6.0+dfsg1-1) unstable; urgency=low
+
+  * Drop README.source, no longer needed.
+  * Strip PostScript documents without source from the .orig.tar.gz
+    (closes: #580154):
+    + Update get-orig-source target.
+    + Update links in the HTML documentation to point to copies of these
+      documents on VIGRA homepage. [no-offline-ps-doc.diff]
+
+ -- Jakub Wilk <jwilk at debian.org>  Mon, 10 May 2010 19:07:57 +0200
+
+libvigraimpex (1.6.0+dfsg-2) unstable; urgency=low
+
+  * Update symbols file to fix FTBFS on sparc64.
+  * Bump standards version to 3.8.4 (no changes needed).
+  * Update my e-mail address.
+  * Replace (build-)dependency on libjpeg62-dev with libjpeg-dev
+    (closes: #569280).
+  * Switch to source format 3.0 (quilt). Drop build-dependency on quilt and
+    adjust debian/rules accordingly.
+  * Fix a typo in src/impex/tiff.cxx (tiff-typo.diff).
+  * Update patch descriptions.
+
+ -- Jakub Wilk <jwilk at debian.org>  Thu, 11 Feb 2010 13:02:46 +0100
+
+libvigraimpex (1.6.0+dfsg-1) unstable; urgency=low
+
+  * Use upstream VCS to recreate .orig.tar.gz with the documentation source
+    included (closes: #547943).
+  * Fix documentation generator to be compatible with recent Doxygen
+    (docsrc-doxygen-any-version.diff). Documentation is now regenerated at
+    build time.
+  * Use sed+tr (rather than lynx) to convert upstream changelog to text.
+  * Avoid copy-all-remove-some in the install target.
+  * Add Vcs-* fields.
+  * Mark more symbols as optional.
+
+ -- Jakub Wilk <ubanus at users.sf.net>  Fri, 09 Oct 2009 21:25:37 +0200
+
+libvigraimpex (1.6.0-2) unstable; urgency=low
+
+  * Make debian/rules safe for parallel builds.
+  * Don't install *.la files.
+  * Include symbols file.
+  * Drop runtime dependency on fftw3.
+
+ -- Jakub Wilk <ubanus at users.sf.net>  Thu, 03 Sep 2009 15:37:01 +0200
+
+libvigraimpex (1.6.0-1) unstable; urgency=low
+
+  * New upstream release (closes: #419431, #540242).
+  * New maintainer (closes: #503486).
+  * Use quilt to manage patches.
+  * Add resampleImage() with different x- and y-factors
+    (resample-image-different-xy.diff backported from the upstream VCS;
+    closes: #540334).
+  * Fix a typo in src/impex/viff.cxx (viff-typo.diff).
+  * Sanitize the upstream build system (build-system.diff); run
+    autoreconf at build time; remove all autogenerated files at build time.
+  * Rewrite debian/rules from scratch; use dh from debhelper 7.
+  * Provide a separate documentation package.
+  * Update the examples Makefile.
+  * Depend of lynx-cur rather than lynx.
+  * Bump standards version to 3.8.3 (no changes needed).
+  * Drop initial articles from package descriptions.
+  * Update the homepage URL.
+  * Update debian/copyright.
+
+ -- Jakub Wilk <ubanus at users.sf.net>  Mon, 17 Aug 2009 22:32:07 +0200
+
+libvigraimpex (1.5.0-2) unstable; urgency=low
+
+  * QA upload.
+    + Set maintainer to Debian QA Group <packages at qa.debian.org>.
+  * Acknowledge NMUs.
+  * Add Homepage.
+  * Add watch file.
+  * Make clean not ignore errors.
+  * Update ${Source-Version} depends to ${binary:Version}.
+  * Convert debian/copyright to UTF-8.
+  * Update fftw3-dev build-depends to libfftw3-dev.
+  * Update fftw3 dependency to libfftw3-3.
+  * Remove redundant section from libvigraimpex binary.
+  * Fix short descriptions.
+  * Add proper copyright holders to debian/copyright.
+  * Bump debhelper build-dep and compat to 5.
+  * Bump Standards Version to 3.8.0.
+
+ -- Barry deFreese <bdefreese at debian.org>  Mon, 02 Feb 2009 17:07:57 -0500
+
+libvigraimpex (1.5.0-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Rename libvigraimpex2 for the ldbl128 transition (Closes: #430309).
+
+ -- Luk Claes <luk at debian.org>  Sat, 02 Feb 2008 14:56:45 +0000
+
+libvigraimpex (1.5.0-1) unstable; urgency=low
+
+  * New upstream release. Several additions and improvements. Bug
+    fixes in code and documentation. Improved the Image Import/Export
+    Facilities. Improved support of 64-bit compilers. Added elliptic
+    integrals.
+
+ -- Alejandro Sierra <algsierra at gmail.com>  Sat,  9 Dec 2006 11:45:33 -0600
+
+libvigraimpex (1.4.0-1) unstable; urgency=low
+
+  * Initial Release. (Closes: #251616)
+
+ -- Alejandro Sierra <algsierra at gmail.com>  Sun,  21 Dec 2005 14:07:11 -0500
+
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..8a97d3a
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1,4 @@
+doc/*/build-stamp
+doc/changelog
+vigranumpy/docsrc/c_api_replaces.txt
+vigranumpy/lib/__version__.py
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..1a104e3
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,126 @@
+Source: libvigraimpex
+Maintainer: Debian Science Team <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Andreas Tille <tille at debian.org>
+Section: libs
+Priority: optional
+Build-Depends: dpkg-dev,
+               debhelper (>= 9),
+               cmake,
+               libfftw3-dev,
+               libpng-dev,
+               libjpeg-dev,
+               libtiff5-dev,
+               libhdf5-serial-dev,
+               python-all-dev,
+               python-numpy,
+               libboost-python-dev,
+               python-nose,
+               libopenexr-dev
+Build-Depends-Indep: python,
+                     python-sphinx,
+                     doxygen,
+                     texlive-latex-base,
+                     ghostscript
+Build-Conflicts: autoconf2.13
+Standards-Version: 3.9.5
+Vcs-Git: git://anonscm.debian.org/debian-science/packages/libvigraimpex.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-science/packages/libvigraimpex.git
+Homepage: http://ukoethe.github.io/vigra/
+X-Python-Version: >= 2.5
+
+Package: libvigraimpex-dev
+Architecture: any
+Section: libdevel
+Depends: ${misc:Depends},
+         ${python:Depends},
+         libvigraimpex4 (= ${binary:Version}),
+         libhdf5-serial-dev | libhdf5-dev,
+         libfftw3-dev,
+         libpng12-dev,
+         libjpeg-dev,
+         libtiff5-dev
+Suggests: libvigraimpex-doc
+Description: development files for the C++ computer vision library
+ Vision with Generic Algorithms (VIGRA) is a computer vision library
+ that puts its main emphasis on flexible algorithms, because
+ algorithms represent the principle know-how of this field. The
+ library was consequently built using generic programming as
+ introduced by Stepanov and Musser and exemplified in the C++ Standard
+ Template Library. By writing a few adapters (image iterators and
+ accessors) you can use VIGRA's algorithms on top of your data
+ structures, within your environment. 
+ . 
+ This package contains the header and development files needed to
+ build programs and packages using VIGRA.
+
+Package: libvigraimpex4
+Architecture: any
+Depends: ${shlibs:Depends},
+         ${misc:Depends}
+Description: C++ computer vision library
+ Vision with Generic Algorithms (VIGRA) is a computer vision library 
+ that puts its main emphasis on flexible algorithms, because
+ algorithms represent the principle know-how of this field. The
+ library was consequently built using generic programming as
+ introduced by Stepanov and Musser and exemplified in the C++ Standard
+ Template Library. By writing a few adapters (image iterators and
+ accessors) you can use VIGRA's algorithms on top of your data
+ structures, within your environment. 
+
+Package: libvigraimpex-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends}
+Suggests: libvigraimpex-dev,
+          python-vigra-doc
+Description: Documentation for the C++ computer vision library
+ Vision with Generic Algorithms (VIGRA) is a computer vision library
+ that puts its main emphasis on flexible algorithms, because
+ algorithms represent the principle know-how of this field. The
+ library was consequently built using generic programming as
+ introduced by Stepanov and Musser and exemplified in the C++ Standard
+ Template Library. By writing a few adapters (image iterators and
+ accessors) you can use VIGRA's algorithms on top of your data
+ structures, within your environment. 
+ . 
+ This package contains documentation for the VIGRA library.
+
+Package: python-vigra
+Architecture: any
+Section: python
+Depends: ${misc:Depends},
+         ${shlibs:Depends},
+         ${python:Depends}
+Recommends: python-qt4
+Suggests: python-vigra-doc,
+          python-h5py
+Description: Python bindings for the C++ computer vision library
+ Vision with Generic Algorithms (VIGRA) is a computer vision library
+ that puts its main emphasis on flexible algorithms, because
+ algorithms represent the principle know-how of this field. The
+ library was consequently built using generic programming as
+ introduced by Stepanov and Musser and exemplified in the C++ Standard
+ Template Library. By writing a few adapters (image iterators and
+ accessors) you can use VIGRA's algorithms on top of your data
+ structures, within your environment.
+ .
+ This package exports the functionality of the VIGRA library to Python.
+
+Package: python-vigra-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends},
+         ${sphinxdoc:Depends}
+Suggests: python-vigra,
+          libvigraimpex-doc
+Description: Documentation for Python bindings for the C++ computer vision library
+ Vision with Generic Algorithms (VIGRA) is a computer vision library
+ that puts its main emphasis on flexible algorithms, because
+ algorithms represent the principle know-how of this field. The
+ library was consequently built using generic programming as
+ introduced by Stepanov and Musser and exemplified in the C++ Standard
+ Template Library. By writing a few adapters (image iterators and
+ accessors) you can use VIGRA's algorithms on top of your data
+ structures, within your environment.
+ .
+ This package contains documentation for Python bindings for the VIGRA library.
diff --git a/debian/convert-changelog.sh b/debian/convert-changelog.sh
new file mode 100644
index 0000000..cb035db
--- /dev/null
+++ b/debian/convert-changelog.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+exec sed -r \
+  -e '1,3 d' \
+  -e 's| ?\\ref | |g' \
+  -e 's|\\link ||g' \
+  -e 's|\\endlink||g' \
+  -e 's|\\#|#|g' \
+  -e 's|<p>||' \
+  -e 's|<a href=[^>]*>||g' \
+  -e 's|</a>||g' \
+  -e 's|<b> *(.*)</b>|\1|g' \
+  -e 's|</?[Uu][Ll]>||g' \
+  -e 's|</?[Tt][Tt]>||g' \
+  -e 's|( *)<li>|\n\1*|' \
+  -e 's|<br>$||' \
+  -e 's|ö|ö|g' \
+  -e '/^[*][/]$/ d' \
+| tr '\n' '$' \
+| sed -r -e 's|\$\$+|\n\n|g' -e 's| *\$ *| |g' \
+| fmt
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..8e589b1
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,59 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: VIGRA
+Upstream-Contact: Ullrich Köthe <ullrich.koethe at iwr.uni-heidelberg.de>
+Source: http://ukoethe.github.io/vigra/
+Files-Excluded:
+    vigra-*win32*.zip
+    .g*
+    .h*
+    .t*
+    doc/vigra
+    doc/vigranumpy
+    docsrc/documents
+Comment:
+  PostScript documents without source has been stripped from the Debian
+  version of this package.
+
+Files: *
+Copyright: 1998-2012, Ullrich Köthe
+           1998-2010, Hans Meine
+           2010, Joachim Schleicher
+           2009, Nico Splitthoff
+           2008-2009, Rahul Nair
+           2009, Michael Hanselmann
+           1998-2008, Gunnar Kedenburg
+           1998-2002, Pablo d'Angelo
+           2003-2004, 2006-2007, B. Seppke
+           2003-2004, 2006-2007, F. Heinrich
+           2003-2007, Kasim Terzic
+           2003-2007, Christian-Dennis Rahn
+           1999, Paul Moore
+           2011-2012 by Markus Nullmeier
+           2012 Christoph Spiel
+           2011-2012 by Stefan Schmidt
+           2012 by Frank Lenzen
+License: MIT
+
+Files: debian/*
+Copyright: 1995-1996, Alejandro Sierra
+           2009-2011, Jakub Wilk
+License: MIT
+
+License: MIT
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the “Software”), to
+ deal in the Software without restriction, including without limitation the
+ rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ sell copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+ .
+ 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 AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ IN THE SOFTWARE.
diff --git a/debian/dh_numpy b/debian/dh_numpy
new file mode 100755
index 0000000..0ed4760
--- /dev/null
+++ b/debian/dh_numpy
@@ -0,0 +1,33 @@
+#!/usr/bin/perl -w
+
+use strict;
+use File::Find;
+use Debian::Debhelper::Dh_Lib;
+
+init();
+
+my $numpy_next_version;
+my $numpy_version = `python -c 'from numpy import __version__; print __version__'`;
+if (! defined $numpy_version || $numpy_version eq "")
+{
+    error("Numpy is not installed, aborting. (Probably forgot to Build-Depend on python-numpy.)");
+}
+elsif ($numpy_version =~ m/^(\d+)[.](\d+)([.]\d+)*/)
+{
+    $numpy_version = sprintf("%d.%d", $1, $2);
+    $numpy_next_version = sprintf("%d.%d", $1, $2 + 1);
+}
+else
+{
+    error("Unable to parse Numpy version out of \"$numpy_version\".");
+}
+
+foreach my $package (@{$dh{DOPACKAGES}})
+{
+    addsubstvar($package, "python:Depends",
+        "python-numpy (>= 1:$numpy_version), " .
+        "python-numpy (<< 1:$numpy_next_version)"
+    );
+}
+
+# vim:ts=4 sw=4 et
diff --git a/debian/libvigraimpex-dev.dirs b/debian/libvigraimpex-dev.dirs
new file mode 100644
index 0000000..4418816
--- /dev/null
+++ b/debian/libvigraimpex-dev.dirs
@@ -0,0 +1,2 @@
+usr/lib
+usr/include
diff --git a/debian/libvigraimpex-dev.docs b/debian/libvigraimpex-dev.docs
new file mode 100644
index 0000000..e174728
--- /dev/null
+++ b/debian/libvigraimpex-dev.docs
@@ -0,0 +1 @@
+debian/README.Debian
diff --git a/debian/libvigraimpex-dev.examples b/debian/libvigraimpex-dev.examples
new file mode 100644
index 0000000..04a8028
--- /dev/null
+++ b/debian/libvigraimpex-dev.examples
@@ -0,0 +1,5 @@
+src/examples/*.cxx
+src/examples/*.gif
+src/examples/*.tif
+src/examples/*.JPG
+debian/Makefile
diff --git a/debian/libvigraimpex-dev.install b/debian/libvigraimpex-dev.install
new file mode 100644
index 0000000..f75b4b7
--- /dev/null
+++ b/debian/libvigraimpex-dev.install
@@ -0,0 +1,3 @@
+/usr/bin/vigra-config
+/usr/include/*
+/usr/lib/lib*.so
diff --git a/debian/libvigraimpex-dev.manpages b/debian/libvigraimpex-dev.manpages
new file mode 100644
index 0000000..7f077bf
--- /dev/null
+++ b/debian/libvigraimpex-dev.manpages
@@ -0,0 +1 @@
+debian/vigra-config.1
diff --git a/debian/libvigraimpex-doc.doc-base b/debian/libvigraimpex-doc.doc-base
new file mode 100644
index 0000000..df0fc76
--- /dev/null
+++ b/debian/libvigraimpex-doc.doc-base
@@ -0,0 +1,8 @@
+Document: vigra-reference-manual
+Title: VIGRA Reference Manual
+Author: Ullrich Köthe
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/libvigraimpex-doc/html/index.html
+Files: /usr/share/doc/libvigraimpex-doc/html/*.html 
diff --git a/debian/libvigraimpex-doc.docs b/debian/libvigraimpex-doc.docs
new file mode 100644
index 0000000..ae44496
--- /dev/null
+++ b/debian/libvigraimpex-doc.docs
@@ -0,0 +1 @@
+doc/vigra/
diff --git a/debian/libvigraimpex-doc.links b/debian/libvigraimpex-doc.links
new file mode 100644
index 0000000..68cfd93
--- /dev/null
+++ b/debian/libvigraimpex-doc.links
@@ -0,0 +1 @@
+usr/share/doc/libvigraimpex-doc/html usr/share/doc/libvigraimpex-dev/html
diff --git a/debian/libvigraimpex4.dirs b/debian/libvigraimpex4.dirs
new file mode 100644
index 0000000..6845771
--- /dev/null
+++ b/debian/libvigraimpex4.dirs
@@ -0,0 +1 @@
+usr/lib
diff --git a/debian/libvigraimpex4.docs b/debian/libvigraimpex4.docs
new file mode 100644
index 0000000..07e0db4
--- /dev/null
+++ b/debian/libvigraimpex4.docs
@@ -0,0 +1 @@
+README.*
diff --git a/debian/libvigraimpex4.install b/debian/libvigraimpex4.install
new file mode 100644
index 0000000..eeaf559
--- /dev/null
+++ b/debian/libvigraimpex4.install
@@ -0,0 +1 @@
+/usr/lib/lib*.so.*
diff --git a/debian/patches/disable-noise-variance-clustering-vigranumpy-test.diff b/debian/patches/disable-noise-variance-clustering-vigranumpy-test.diff
new file mode 100644
index 0000000..27bb180
--- /dev/null
+++ b/debian/patches/disable-noise-variance-clustering-vigranumpy-test.diff
@@ -0,0 +1,19 @@
+Description: Disable vigranumpy test for noiseVarianceClustering()
+ For the time being, disable failing vigranumpy test for
+ noiseVarianceClustering().
+Author: Jakub Wilk <jwilk at debian.org>
+Forwarded: not-needed
+Last-Update: 2011-03-02
+
+--- a/vigranumpy/test/test2.py
++++ b/vigranumpy/test/test2.py
+@@ -144,7 +144,8 @@ def test_Noise():
+     image += np.random.normal(size=(100,100, 3))
+     
+     noiseVarianceEstimation(image.bindAxis('c', 0))
+-    noiseVarianceClustering(image.bindAxis('c', 0))
++    # FIXME: Disabled, see http://bugs.debian.org/586247
++    # XXX noiseVarianceClustering(scalar_image)
+     nonparametricNoiseNormalization(image)
+     quadraticNoiseNormalizationEstimated(image)
+     linearNoiseNormalizationEstimated(image)
diff --git a/debian/patches/docsrc-out-of-source.diff b/debian/patches/docsrc-out-of-source.diff
new file mode 100644
index 0000000..09bd075
--- /dev/null
+++ b/debian/patches/docsrc-out-of-source.diff
@@ -0,0 +1,16 @@
+Description: Add support for out-of-source documentation building.
+Author: Jakub Wilk <jwilk at debian.org>
+Forwarded: not-needed
+Last-Update: 2010-04-16
+
+--- a/docsrc/makeFunctionIndex.py
++++ b/docsrc/makeFunctionIndex.py
+@@ -143,7 +143,7 @@ generateFunctionIndex(functionList)
+ # crosslinking of vigranumpy documentation.
+ # Note that '::' are not allowed in reStructuedText link names, 
+ # so we have to use '.' instead.
+-replaces=open("../vigranumpy/docsrc/c_api_replaces.txt","w")
++replaces=open("../../vigranumpy/docsrc/c_api_replaces.txt","w")
+ for i in range(len(functionList)):
+     functionName = functionList[i][1]
+     overloadDisambiguation = functionList[i][2]
diff --git a/debian/patches/docsrc-paths.diff b/debian/patches/docsrc-paths.diff
new file mode 100644
index 0000000..40ef40b
--- /dev/null
+++ b/debian/patches/docsrc-paths.diff
@@ -0,0 +1,68 @@
+Description: Fix hyperlinks from the C++ library documentation to python-vigra documentation and the other way round.
+Bug-Debian: http://bugs.debian.org/590069
+Bug-Debian: http://bugs.debian.org/590068
+Forwarded: not-needed
+Last-Update: 2011-03-02
+
+--- a/docsrc/credits_changelog.dxx
++++ b/docsrc/credits_changelog.dxx
+@@ -43,7 +43,7 @@
+            also contributed his pLSA (probabilistic latent semantic analysis) implementation.
+       
+       <li> Nathan Huesken and Christoph Sommer helped a lot in developing 
+-           <a href="../vigranumpy/index.html">vigranumpy</a>, the VIGRA Python bindings.
++           <a href="/usr/share/doc/python-vigra-doc/html/index.html">vigranumpy</a>, the VIGRA Python bindings.
+            
+       <li> Jens-Malte Gottfried contributed to the cmake-based build system.
+ 
+@@ -224,7 +224,7 @@ Many thanks to all!
+       
+       <li> Added \ref vigra::NumpyAnyArray and \ref vigra::NumpyArray, improved \ref vigra::MultiArrayView.
+       
+-      <li> Added <b><a href="../vigranumpy/index.html">vigranumpy</a></b> (VIGRA Python bindings).
++      <li> Added <b><a href="/usr/share/doc/python-vigra-doc/html/index.html">vigranumpy</a></b> (VIGRA Python bindings).
+       
+       <li> Added \ref VigraMatlab.
+       
+--- a/docsrc/index.dxx
++++ b/docsrc/index.dxx
+@@ -37,7 +37,7 @@
+         <BR>   <em>Demonstration programs for VIGRA's usage </em>
+     <LI> \ref VigraMatlab
+         <BR>   <em>VIGRA Matlab bindings</em>
+-    <LI> <b><a href="../vigranumpy/index.html">vigranumpy</a></b>
++    <LI> <b><a href="/usr/share/doc/python-vigra-doc/html/index.html">vigranumpy</a></b>
+         <BR>   <em>VIGRA Python bindings</em>
+     <LI> \ref CreditsChangelog
+         <BR>   <em>Who contributed what?</em>
+--- a/vigranumpy/docsrc/conf.py.in
++++ b/vigranumpy/docsrc/conf.py.in
+@@ -239,7 +239,7 @@ for l in replace_file:
+     .. |%s| replace:: %s
+ """% (replacement[0],replacement[0][k+1:])
+     rst_epilog += """
+-    .. _%s: ../../doc/vigra/%s
++    .. _%s: /usr/share/doc/libvigraimpex-doc/html/%s
+ """% (replacement[0],replacement[1])
+ 
+ # make python accumulators documentation better (?)
+--- a/vigranumpy/docsrc/index.rst
++++ b/vigranumpy/docsrc/index.rst
+@@ -14,7 +14,7 @@ Vigranumpy Reference
+ Introduction
+ ------------
+ 
+-Vigranumpy exports the functionality of the C++ image processing library `VIGRA <../vigra/index.html>`_ to Python. It can be invoked by importing the vigra module::
++Vigranumpy exports the functionality of the C++ image processing library `VIGRA </usr/share/doc/libvigraimpex-doc/html/index.html>`_ to Python. It can be invoked by importing the vigra module::
+ 
+     import vigra
+ 
+@@ -403,7 +403,7 @@ Color and Intensity Manipulation
+ 
+ The module vigra.colors provides functions to adjust image brightness and contrast, 
+ and to transform between different color spaces. 
+-See `Color Conversions <../vigra/group__ColorConversions.html>`_ in the C++ documentation
++See `Color Conversions </usr/share/doc/libvigraimpex-doc/group__ColorConversions.html>`_ in the C++ documentation
+ for more information.
+ 
+ .. automodule:: vigra.colors
diff --git a/debian/patches/removed-static-docs.diff b/debian/patches/removed-static-docs.diff
new file mode 100644
index 0000000..b8abfb0
--- /dev/null
+++ b/debian/patches/removed-static-docs.diff
@@ -0,0 +1,11 @@
+--- a/vigranumpy/docsrc/CMakeLists.txt
++++ b/vigranumpy/docsrc/CMakeLists.txt
+@@ -19,7 +19,7 @@ IF(PYTHON_SPHINX)
+         -c ${CMAKE_CURRENT_BINARY_DIR}
+         ${SPHINX_OPTS})
+     file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/_static)
+-    configure_file(_static/vigra-icon.ico ${CMAKE_CURRENT_BINARY_DIR}/_static/vigra-icon.ico COPYONLY)
++    configure_file(../../docsrc/vigra-icon.ico ${CMAKE_CURRENT_BINARY_DIR}/_static/vigra-icon.ico COPYONLY)
+     
+     DEPENDENCY_PATH(VIGRAIMPEX_PATH vigraimpex)
+     STRING(REGEX REPLACE "/vigra$" "" VIGRANUMPY_TMP_PATH ${vigranumpy_tmp_dir})   
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..b710a46
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,5 @@
+disable-noise-variance-clustering-vigranumpy-test.diff
+docsrc-out-of-source.diff
+docsrc-paths.diff
+vigra-config-docdir.diff
+removed-static-docs.diff
diff --git a/debian/patches/vigra-config-docdir.diff b/debian/patches/vigra-config-docdir.diff
new file mode 100644
index 0000000..996e528
--- /dev/null
+++ b/debian/patches/vigra-config-docdir.diff
@@ -0,0 +1,12 @@
+Description: Correct output of ‘vigra-config --docdir’.
+Author: Jakub Wilk <jwilk at debian.org>
+Forwarded: not-needed
+Last-Update: 2011-01-22
+--- a/config/vigra-config.in
++++ b/config/vigra-config.in
+@@ -91,4 +91,4 @@ if op.include_path: # was: --include_pat
+     print '@CMAKE_INSTALL_PREFIX@/include'
+ 
+ if op.docdir:
+-    print '@DOCDIR@'
++    print '/usr/share/doc/libvigraimpex-dev/html/'
diff --git a/debian/python-vigra-doc.doc-base b/debian/python-vigra-doc.doc-base
new file mode 100644
index 0000000..1f7e6d8
--- /dev/null
+++ b/debian/python-vigra-doc.doc-base
@@ -0,0 +1,12 @@
+Document: vigranumpy-reference
+Title: Vigranumpy Reference
+Author: Ullrich Köthe
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/python-vigra-doc/html/index.html
+Files: /usr/share/doc/python-vigra-doc/html/*.html
+
+Format: Text
+Index: /usr/share/doc/python-vigra-doc/rst/index.txt
+Files: /usr/share/doc/python-vigra-doc/rst/*.txt
diff --git a/debian/python-vigra-doc.docs b/debian/python-vigra-doc.docs
new file mode 100644
index 0000000..88ea8a1
--- /dev/null
+++ b/debian/python-vigra-doc.docs
@@ -0,0 +1 @@
+doc/vigranumpy/
diff --git a/debian/python-vigra-doc.links b/debian/python-vigra-doc.links
new file mode 100644
index 0000000..ef57f32
--- /dev/null
+++ b/debian/python-vigra-doc.links
@@ -0,0 +1,4 @@
+usr/share/javascript/jquery/jquery.min.js usr/share/doc/python-vigra-doc/html/_static/jquery.js
+usr/share/doc/python-vigra-doc/html/_sources usr/share/doc/python-vigra-doc/rst
+usr/share/doc/python-vigra-doc/html usr/share/doc/python-vigra/html
+usr/share/doc/python-vigra-doc/rst usr/share/doc/python-vigra/rst
diff --git a/debian/python-vigra.install b/debian/python-vigra.install
new file mode 100644
index 0000000..605530a
--- /dev/null
+++ b/debian/python-vigra.install
@@ -0,0 +1 @@
+/usr/lib/python*/*-packages/
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..039f2ce
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,202 @@
+#!/usr/bin/make -f
+
+CFLAGS := $(shell dpkg-buildflags --get CFLAGS; dpkg-buildflags --get CPPFLAGS)
+CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS; dpkg-buildflags --get CPPFLAGS)
+LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed
+
+# These don't need to be exported and if they are we'll get the flags
+# duplicated in the command line.
+unexport CFLAGS
+unexport CXXFLAGS
+unexport LDFLAGS
+
+ifeq ($(DEB_HOST_ARCH_CPU),i386)
+  CFLAGS += -ffloat-store
+  CXXFLAGS += -ffloat-store
+endif
+
+space = $() $()
+here = $(dir $(firstword $(MAKEFILE_LIST)))/..
+current_version = $(shell cd $(here) && dpkg-parsechangelog | sed -n -r -e "/Version: (.*)/ { s//\1/p; q; }")
+upstream_version = $(firstword $(subst -,$(space),$(current_version)))
+
+cmake_options = \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_VERBOSE_MAKEFILE=ON \
+    -DWITH_OPENEXR=ON \
+    -DCMAKE_C_FLAGS_RELEASE="$(CFLAGS)" \
+    -DCMAKE_CXX_FLAGS_RELEASE="$(CXXFLAGS)" \
+    -DCMAKE_SHARED_LINKER_FLAGS_RELEASE="$(LDFLAGS)"
+cmake_python_options = \
+    -DPYTHON_EXECUTABLE=/usr/bin/python$(1) \
+    -DPYTHON_INCLUDE_DIR=/usr/include/python$(1)/ \
+    -DPYTHON_LIBRARY=$(wildcard /usr/lib/libpython$(1).so /usr/lib/$(DEB_HOST_MULTIARCH)/libpython$(1).so) \
+    -DBoost_PYTHON_LIBRARY_RELEASE=$(wildcard /usr/lib/libboost_python-py$(subst .,,$(1)).so /usr/lib/$(DEB_HOST_MULTIARCH)/libboost_python-py$(subst .,,$(1)).so)
+
+# build and build-* targets
+# =========================
+
+.PHONY: build build-arch build-indep
+
+build: build-arch build-indep
+
+build-indep:
+	# Nothing to do in build-indep, "thanks" to bug #374029.
+
+build-arch:
+	dh_testdir
+	$(MAKE) -f debian/rules \
+		obj/CMakeCache.txt \
+		$(patsubst %,obj.%/CMakeCache.txt,$(shell pyversions -r))
+	$(MAKE) -f debian/rules \
+		doc/changelog \
+		obj/build-stamp \
+		$(patsubst %,obj.%/build-stamp,$(shell pyversions -r))
+ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
+  ifneq (,$(filter $(DEB_HOST_ARCH_CPU),powerpc))
+	: # run the tests, but ignore test results
+	-$(MAKE) -k -f debian/rules \
+		obj/test-stamp \
+		$(patsubst %,obj.%/test-stamp,$(shell pyversions -r))
+  else
+	$(MAKE) -k -f debian/rules \
+		obj/test-stamp \
+		$(patsubst %,obj.%/test-stamp,$(shell pyversions -r))
+  endif
+endif
+
+obj/CMakeCache.txt:
+	mkdir -p $(dir $(@))
+	cd $(dir $(@)) && cmake .. $(cmake_options) \
+		-DPYTHON_EXECUTABLE=/usr/bin/python \
+		-DWITH_VIGRANUMPY=0
+
+obj.python%/CMakeCache.txt:
+	mkdir -p $(dir $(@))
+	cd $(dir $(@)) && \
+		CXXFLAGS=-fno-strict-aliasing cmake .. $(cmake_options) $(call cmake_python_options,$(*))
+	if ! grep VIGRANUMPY_DEPENDENCIES $(@) > /dev/null; then \
+		echo "Error: Numpy for Python $* not found" >&2; \
+		rm -f $(@); \
+		exit 1; \
+	fi
+	# We don't want to link with libpythonX.Y.
+	# We don't want SONAMES (except vigranumpycore.so)
+	find $(dir $(@))/vigranumpy/ -name 'link.txt' -exec sed -i \
+		-e 's/ -lpython[0-9.]\+ / /g' \
+		-e '/-Wl,-soname,vigranumpycore/b' \
+		-e 's/ -Wl,-soname,[^ ]\+ / /' \
+		{} +
+
+obj/build-stamp: obj/CMakeCache.txt
+	$(MAKE) -C $(dir $(@))
+	chmod a-x vigranumpy/test/*.py # nosetest would skip executable *.py
+	touch $(@)
+
+obj.python%/build-stamp: obj.python%/CMakeCache.txt obj/build-stamp
+	cd obj && find . -name '*.o' -o -name '*.so' -o -name '*.so.*' | xargs cp -v --preserve=links --parents -t ../$(dir $(@))
+	$(MAKE) -C $(dir $(@))
+	touch $(@)
+
+obj/test-stamp: obj/build-stamp
+	$(MAKE) check -C $(dir $(@))
+	touch $(@)
+
+obj.python%/test-stamp:: obj.python%/build-stamp
+	$(MAKE) vigranumpytest -C $(dir $(@))
+	touch $(@)
+
+doc/changelog: docsrc/credits_changelog.dxx
+	sh debian/convert-changelog.sh < $(<) > $(@)
+
+# binary and binary-* targets
+# ===========================
+
+.PHONY: binary binary-arch binary-indep
+
+binary: binary-arch binary-indep
+
+binary-arch: build-arch
+	dh_testdir
+	dh_testroot
+	$(MAKE) -f debian/rules \
+		obj/install-stamp \
+		$(patsubst %,obj.%/install-stamp,$(shell pyversions -r))
+	dh_install -a
+	dh_installdocs -a
+	dh_installchangelogs -a doc/changelog
+	dh_installexamples -a
+	find -path './debian/*/usr/share/doc/*/examples/*' -exec chmod a-x '{}' +
+	dh_installman -a
+	dh_python2 -a
+	dh_link -a
+	dh_compress -a
+	dh_fixperms -a
+	dh_strip -a
+	dh_makeshlibs -V 'libvigraimpex4 (>= 1.9.0)'
+	dh_shlibdeps
+	# See <http://lists.debian.org/debian-python/2010/07/msg00042.html>:
+	$(or $(wildcard /usr/bin/dh_numpy),debian/dh_numpy) -p python-vigra
+	dh_installdeb -a
+	dh_gencontrol -a
+	dh_md5sums -a
+	dh_builddeb -a
+
+.PHONY: binary-indep
+binary-indep: build-indep
+	dh_testdir
+	dh_testroot
+	$(MAKE) -f debian/rules \
+		doc/vigra/build-stamp \
+		doc/vigranumpy/build-stamp
+	dh_installdocs -i -XLICENSE.txt -Xobjects.inv -Xdoctrees -X.buildinfo -Xbuild-stamp
+	cd debian/libvigraimpex-doc/usr/share/doc/libvigraimpex-doc/ && \
+		rm -rf html && \
+		mv vigra html && \
+		rm -f html/jquery.js && \
+		sed -r -i \
+			-e 's!(<a href=")LICENSE.txt(">)!\1/usr/share/doc/libvigraimpex-doc/copyright\2!g' \
+			html/index.html
+	cd debian/python-vigra-doc/usr/share/doc/python-vigra-doc/ && \
+		rm -rf html && \
+		mv vigranumpy html
+	dh_installchangelogs -i
+	dh_link -i
+ifeq "$(wildcard /usr/bin/dh_sphinxdoc)" ""
+	echo "sphinxdoc:Depends=libjs-jquery" >> debian/python-vigra-doc.substvars
+else
+	dh_sphinxdoc -p python-vigra-doc /usr/share/doc/python-vigra-doc/html/
+endif
+	dh_compress -i -X.js -X_sources
+	dh_fixperms -i
+	dh_installdeb -i
+	dh_gencontrol -i
+	dh_md5sums -i
+	dh_builddeb -i
+
+%/install-stamp: %/build-stamp
+	$(MAKE) -C $(dir $(@)) install DESTDIR=$(CURDIR)/debian/tmp/
+	touch $(@)
+
+doc/vigra/build-stamp: obj/build-stamp
+	$(MAKE) doc_cpp -C obj/
+	touch $(@)
+
+doc/vigranumpy/build-stamp: obj.$(shell pyversions -d)/build-stamp doc/vigra/build-stamp
+	ln -sf $(CURDIR)/vigranumpy/docsrc/c_api_replaces.txt obj.$(shell pyversions -d)/vigranumpy/docsrc/
+	$(MAKE) doc_python -C obj.$(shell pyversions -d)/
+	touch $(@)
+
+# clean target
+# ============
+
+.PHONY: clean
+clean:
+	dh_testdir
+	dh_clean
+	rm -rf obj*/
+	find doc/ -type f -delete
+
+.NOTPARALLEL:
+
+# vim:ts=4 sw=4 noet
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/vigra-config.1 b/debian/vigra-config.1
new file mode 100644
index 0000000..38c2371
--- /dev/null
+++ b/debian/vigra-config.1
@@ -0,0 +1,28 @@
+.TH VIGRA-CONFIG "1" "January 2011" "vigra-config 1.7.1" "User Commands"
+.SH NAME
+vigra-config \- get information about the installed version of VIGRA
+.SH SYNOPSIS
+.B vigra-config
+[\fIoptions\fR]
+.SH OPTIONS
+.TP
+\fB\-h\fR, \fB\-\-help\fR
+Display help message and exit.
+.TP
+\fB\-\-version\fR
+Print version information.
+.TP
+\fB\-\-impex\-lib\fR, \fB\-\-libs\fR
+Print the linker flags that are needed to link with the \fBlibvigraimpex\fR library.
+.TP
+\fB\-\-fftw\-lib\fR
+Print the linker flags that are needed to link with the FFTW library.
+.TP
+\fB\-\-cppflags\fR
+Print the compiler flags that are needed to find the VIGRA include files.
+.TP
+\fB\-\-include\-path\fR, \fB\-\-includepath\fR
+Print path to VIGRA include files.
+.TP
+\fB\-\-docdir\fR
+Print path to VIGRA documentation.
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..e49a437
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=dversionmangle=s/\+dfsg[0-9]*// \
+   https://github.com/ukoethe/vigra/releases .*/vigra-(\d[\d.]+)-src.*\.(?:tar(?:\.gz|\.bz2)?|tgz)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/libvigraimpex.git



More information about the debian-science-commits mailing list