[lua-torch-image] 01/01: Initialize packaging

Zhou Mo cdluminate-guest at moszumanska.debian.org
Sun Aug 28 05:34:50 UTC 2016


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

cdluminate-guest pushed a commit to branch master
in repository lua-torch-image.

commit 819eed29498a0d8ad9d9e502b14b70a4ce3151c2
Author: Zhou Mo <cdluminate at gmail.com>
Date:   Sun Aug 28 05:34:35 2016 +0000

    Initialize packaging
---
 debian/changelog                         |   5 ++
 debian/clean                             |   3 +
 debian/compat                            |   1 +
 debian/control                           |  45 ++++++++++++
 debian/copyright                         | 118 +++++++++++++++++++++++++++++++
 debian/lua-torch-image.docs              |   3 +
 debian/lua-torch-image.links             |  16 +++++
 debian/lua-torch-image.lintian-overrides |   4 ++
 debian/lua5.1.dh-lua.conf                |  12 ++++
 debian/rules                             |  29 ++++++++
 debian/source/format                     |   1 +
 11 files changed, 237 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..4877efe
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+lua-torch-image (0~20160730-g797fcb1-1) experimental; urgency=low
+
+  * Initial release. Closes: #827434
+
+ -- Zhou Mo <cdluminate at gmail.com>  Sun, 28 Aug 2016 05:13:58 +0000
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..cc9d8ff
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1,3 @@
+debian/lua-torch-image-dev.install
+debian/lua-torch-image.install
+debian/lua_versions
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..361762f
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,45 @@
+Source: lua-torch-image
+Section: interpreters
+Priority: optional
+Maintainer: Debian Science Maintainers <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Zhou Mo <cdluminate at gmail.com>
+Build-Depends: debhelper (>=9),
+               dh-lua,
+               luajit,
+               libtorch-th-dev,
+               libtorch-luat-dev,
+               lua-torch-torch7,
+               lua-torch-xlua,
+               lua-torch-sys,
+               lua-torch-dok,
+               libjpeg62-turbo-dev,
+               libpng-dev,
+Standards-Version: 3.9.8
+Homepage: https://github.com/torch/image
+Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/lua-torch-image.git
+Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/lua-torch-image.git
+
+Package: lua-torch-image
+Architecture: any
+Multi-Arch: same
+Depends: ${misc:Depends},
+         ${shlibs:Depends},
+         lua-torch-torch7,
+         lua-torch-xlua,
+         lua-torch-sys,
+         lua-torch-dok,
+Description: Image Load/Save Library for Torch Framework
+ "image" is the Torch7 distribution package for processing images. It
+ contains a wide variety of functions divided into the following categories:
+ .
+  * Saving and loading images as JPEG, PNG, PPM and PGM;
+  * Simple transformations like translation, scaling and rotation;
+  * Parameterized transformations like convolutions and warping;
+  * Simple Drawing Routines like drawing text or a rectangle on an image;
+  * Graphical user interfaces like display and window;
+  * Color Space Conversions from and to RGB, YUV, Lab, and HSL;
+  * Tensor Constructors for creating Lenna, Fabio and Gaussian and
+    Laplacian kernels;
+ .
+ Note that unless specified otherwise, this package deals with images of
+ size `nChannel x height x width`.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..d526931
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,118 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: torch/image
+Source: https://github.com/torch/image
+
+Files:     *
+Copyright: 2001-2004 Idiap Research Institute (Ronan Collobert, Samy Bengio, Johnny Mariethoz)
+           2006 Idiap Research Institute (Samy Bengio)
+           2006-2010 NEC Laboratories America (Ronan Collobert, Leon Bottou, Iain Melvin, Jason Weston)
+           2011-2012 NEC Laboratories America (Koray Kavukcuoglu)
+           2011-2013 NYU (Clement Farabet)
+           2011-2014 Idiap Research Institute (Ronan Collobert)
+           2012-2014 Deepmind Technologies (Koray Kavukcuoglu)
+License:   Torch_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 names of Deepmind Technologies, NYU, NEC Laboratories America
+ and IDIAP Research Institute 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 OWNER 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.
+
+Files:     init.lua
+Copyright: 2011 Ronan Collobert, Clement Farabet
+License:   Expat
+ 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.
+
+Files:     generic/png.c
+Copyright: 2002-2010 Guillaume Cottenceau.
+License:   X11_License
+ This software may be freely redistributed under the terms
+ of the X11 license.
+
+Files:     font.c
+Copyright: 2012 Adafruit Industries.
+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.
+
+Files:     debian/*
+Copyright: 2016 Zhou Mo <cdluminate at gmail.com>
+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 University 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 HOLDERS 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/lua-torch-image.docs b/debian/lua-torch-image.docs
new file mode 100644
index 0000000..2ff7d17
--- /dev/null
+++ b/debian/lua-torch-image.docs
@@ -0,0 +1,3 @@
+README.md
+doc/
+assets/
diff --git a/debian/lua-torch-image.links b/debian/lua-torch-image.links
new file mode 100644
index 0000000..e74fe42
--- /dev/null
+++ b/debian/lua-torch-image.links
@@ -0,0 +1,16 @@
+# Well, upstream just makes too many lua libraries to this package,
+# I squashed all the symbols into one library, which is ok to luajit,
+# and after that, correct entrance (i.e. symlinks) should be set.
+# This prevents the following three lua statements from failing:
+# > require 'libjpeg'
+# > require 'libpng'
+# > require 'libppm'
+# These libraries are not for generic usage but only for lua/torch,
+# so splitting these libraries into different packages is not a good
+# idea, neither.
+usr/lib/x86_64-linux-gnu/lua/5.1/libimage.so usr/lib/x86_64-linux-gnu/lua/5.1/libjpeg.so
+usr/lib/x86_64-linux-gnu/lua/5.1/libimage.so usr/lib/x86_64-linux-gnu/lua/5.1/libpng.so
+usr/lib/x86_64-linux-gnu/lua/5.1/libimage.so usr/lib/x86_64-linux-gnu/lua/5.1/libppm.so
+
+# This package needs the pictures installed on doc directory as test images
+usr/share/doc/lua-torch-image/assets usr/share/lua/5.1/image/assets
diff --git a/debian/lua-torch-image.lintian-overrides b/debian/lua-torch-image.lintian-overrides
new file mode 100644
index 0000000..a9321f1
--- /dev/null
+++ b/debian/lua-torch-image.lintian-overrides
@@ -0,0 +1,4 @@
+# [lintian I] no need to create symbols control file for lua library.
+lua-torch-image: no-symbols-control-file usr/lib/x86_64-linux-gnu/liblua5.1-torch-image.so.0.0.0
+# [lintian W] this is not a generic library but only for lua's specific usage.
+lua-torch-image: package-name-doesnt-match-sonames liblua5.1-torch-image0
diff --git a/debian/lua5.1.dh-lua.conf b/debian/lua5.1.dh-lua.conf
new file mode 100644
index 0000000..89565b5
--- /dev/null
+++ b/debian/lua5.1.dh-lua.conf
@@ -0,0 +1,12 @@
+PKG_NAME=torch-image
+LUA_MODNAME=libimage
+LUA_VERSION=5.1
+
+LUA_SOURCES=$(wildcard image/*.lua) image/test/test.lua
+LUA_SOURCES_MANGLER= sed 's@^image/test at image/@g'
+LUA_HEADER=
+CLIB_OBJS= ppm.lo png.lo jpeg.lo image.lo
+
+CLIB_CFLAGS= -I$(shell pwd) -I$(shell pwd)/generic -I/usr/include/TH/ -DHAVE_JPEG_MEM_SRC -DHAVE_JPEG_MEM_DEST
+CLIB_LDFLAGS= -L$(shell pwd) -lTH -lluaT -ljpeg -lpng
+LUA_TEST=
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..0c74628
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,29 @@
+#!/usr/bin/make -f
+export DEB_BUILD_MAINT_OPTIONS= hardening=+all
+export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
+export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+
+%:
+	dh $@ --buildsystem=lua --with lua
+
+override_dh_auto_configure:
+	ln -s . image
+	dh_auto_configure
+
+override_dh_auto_test:
+	-$(RM) -rf deb.test
+	set -e; mkdir -p deb.test/image;
+	set -e; find . -type f,l -name '*.so*' -exec cp -vL '{}' deb.test/ \; ;
+	set -e; find . -type f -name '*.lua' -exec cp -v '{}' deb.test/image \; ;
+	set -e; cp -av assets deb.test/image/; \
+		ln -s image/assets deb.test/assets;
+	set -e; cd deb.test; ln -s image/init.lua image.lua; \
+		ln -s libimage.so libppm.so; \
+		ln -s libimage.so libpng.so; \
+		ln -s libimage.so libjpeg.so; \
+		luajit -limage -e 'image.test()';
+	dh_auto_test
+
+override_dh_auto_clean:
+	-$(RM) -rf 5.1-torch-image debian/trash image deb.test
+	dh_auto_clean
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)

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



More information about the debian-science-commits mailing list