[gli] 01/01: Initial debianization.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Oct 4 07:01:17 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 gli.

commit 30354f8e1ceb09764d16b1c79349fdeacf36df1a
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Fri Sep 30 19:03:40 2016 +0100

    Initial debianization.
---
 debian/changelog                              |  5 +++
 debian/clean                                  |  1 +
 debian/compat                                 |  1 +
 debian/control                                | 54 ++++++++++++++++++++++++
 debian/copyright                              | 60 +++++++++++++++++++++++++++
 debian/gbp.conf                               |  9 ++++
 debian/libgli-dev.install                     |  2 +
 debian/libgli-doc.doc-base                    | 10 +++++
 debian/libgli-doc.docs                        |  1 +
 debian/patches/Discard-readme-from-docs.patch | 25 +++++++++++
 debian/patches/Use-system-glm.patch           | 23 ++++++++++
 debian/patches/series                         |  2 +
 debian/rules                                  | 21 ++++++++++
 debian/source/format                          |  1 +
 debian/tests/control                          |  3 ++
 debian/tests/gli-tests                        | 42 +++++++++++++++++++
 debian/upstream/metadata                      |  5 +++
 debian/watch                                  |  5 +++
 18 files changed, 270 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..0156286
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+gli (0.8.1.1+ds1-1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: # 838990)
+
+ -- Ghislain Antony Vaillant <ghisvail at gmail.com>  Fri, 30 Sep 2016 19:04:35 +0100
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..07e0351
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+doc/api/
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..8f5bd62
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,54 @@
+Source: gli
+Maintainer: Debian Science Maintainers <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Section: libs
+Priority: optional
+Build-Depends: cmake,
+               debhelper (>= 10),
+               doxygen,
+               libglm-dev (>= 0.9.8)
+Standards-Version: 3.9.8
+Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/gli.git
+Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/gli.git
+Homepage: http://gli.g-truc.net/
+
+Package: libgli-dev
+Architecture: all
+Multi-Arch: foreign
+Section: libdevel
+Depends: ${misc:Depends}
+Suggests: libgli-doc
+Description: C++ image library for graphics software
+ OpenGL Image (GLI) is a header only C++ image library for graphics software.
+ .
+ GLI provides classes and functions to load image files (KTX and DDS),
+ facilitate graphics APIs texture creation, compare textures, access texture
+ texels, sample textures, convert textures, generate mipmaps, etc.
+ .
+ This library works perfectly with OpenGL or Vulkan but it also ensures
+ interoperability with other third party libraries and SDK. It is a good
+ candidate for software rendering (raytracing / rasterisation), image
+ processing, image based software testing or any development context that
+ requires a simple and convenient image library.
+ .
+ This package provides the header-only library.
+
+Package: libgli-doc
+Architecture: all
+Multi-Arch: foreign
+Section: doc
+Depends: ${misc:Depends}
+Description: documentation for the OpenGL Image (GLI) library
+ OpenGL Image (GLI) is a header only C++ image library for graphics software.
+ .
+ GLI provides classes and functions to load image files (KTX and DDS),
+ facilitate graphics APIs texture creation, compare textures, access texture
+ texels, sample textures, convert textures, generate mipmaps, etc.
+ .
+ This library works perfectly with OpenGL or Vulkan but it also ensures
+ interoperability with other third party libraries and SDK. It is a good
+ candidate for software rendering (raytracing / rasterisation), image
+ processing, image based software testing or any development context that
+ requires a simple and convenient image library.
+ .
+ This package provides the documentation.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..8b5eb9f
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,60 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: gli
+Upstream-Contact: Christophe Riccio <gli at g-truc.net>
+Source: https://github.com/g-truc/gli
+Comment: To be excluded from the source release:
+ - doc/api/*: prebuilt documentation.
+ - doc/spec/*: no copyright information.
+ - external/*: vendored dependencies.
+Files-Excluded: doc/api/*
+ doc/spec/*
+ external/*
+
+Files: *
+Copyright: 2010-2016 G-Truc Creation
+License: Expat or Happy-Bunny
+
+Files: debian/*
+Copyright: 2016 Ghislain Antony Vaillant
+License: Expat
+
+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.
+
+License: Happy-Bunny
+ 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.
+ .
+ Restrictions: By making use of the Software for military purposes, you choose
+ to make a Bunny unhappy.
+ .
+ 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/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/libgli-dev.install b/debian/libgli-dev.install
new file mode 100644
index 0000000..8f0150a
--- /dev/null
+++ b/debian/libgli-dev.install
@@ -0,0 +1,2 @@
+/usr/include
+/usr/lib/cmake
diff --git a/debian/libgli-doc.doc-base b/debian/libgli-doc.doc-base
new file mode 100644
index 0000000..91f6cd8
--- /dev/null
+++ b/debian/libgli-doc.doc-base
@@ -0,0 +1,10 @@
+Document: libgli-doc
+Title: OpenGL Image (GLI) Documentation
+Author: G-Truc Creation
+Abstract: This is the reference documentation for the OpenGL Image (GLI)
+ library.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/libgli-doc/api/index.html
+Files: /usr/share/doc/libgli-doc/api/*.html
diff --git a/debian/libgli-doc.docs b/debian/libgli-doc.docs
new file mode 100644
index 0000000..a37585e
--- /dev/null
+++ b/debian/libgli-doc.docs
@@ -0,0 +1 @@
+doc/api
diff --git a/debian/patches/Discard-readme-from-docs.patch b/debian/patches/Discard-readme-from-docs.patch
new file mode 100644
index 0000000..8a1e3f3
--- /dev/null
+++ b/debian/patches/Discard-readme-from-docs.patch
@@ -0,0 +1,25 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Mon, 3 Oct 2016 14:55:45 +0100
+Subject: Discard readme from docs.
+
+The content of the readme.md file is redundant with the documentation's main
+page. It also triggers a privacy-breach-generic lintian error due to remote
+fetching of the project logo. Better just discard it from the documentation.
+---
+ man.doxy | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/man.doxy b/man.doxy
+index cfe97cc..a793b74 100644
+--- a/man.doxy
++++ b/man.doxy
+@@ -779,8 +779,7 @@ INPUT                  = gli \
+                          releases.md \
+                          sample-convert.md \
+                          sample-creating-texture-object.md \
+-                         copying.md \
+-                         readme.md
++                         copying.md
+ 
+ # This tag can be used to specify the character encoding of the source files
+ # that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
diff --git a/debian/patches/Use-system-glm.patch b/debian/patches/Use-system-glm.patch
new file mode 100644
index 0000000..539e7d5
--- /dev/null
+++ b/debian/patches/Use-system-glm.patch
@@ -0,0 +1,23 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Fri, 23 Sep 2016 17:25:17 +0100
+Subject: Use system glm.
+
+---
+ CMakeLists.txt | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 40382c8..07c3af5 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -71,8 +71,8 @@ endmacro(addExternalPackageGTC)
+ ################################
+ # Add GLM 
+ 
+-set(GLM_DIRECTORY glm)
+-include_directories(${CMAKE_CURRENT_SOURCE_DIR}/external/${GLM_DIRECTORY})
++find_package(glm REQUIRED)
++include_directories(${glm_INCLUDE_DIRS})
+ 
+ ################################
+ # Add subdirectory
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..b544dd7
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+Use-system-glm.patch
+Discard-readme-from-docs.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..a954dfd
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,21 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+%:
+	dh $@
+
+override_dh_auto_configure:
+	dh_auto_configure -- -DCMAKE_INSTALL_LIBDIR="lib"
+
+override_dh_auto_build:
+	dh_auto_build
+	doxygen man.doxy
+
+override_dh_installdocs:
+	dh_installdocs
+	dh_doxygen
+
+override_dh_installchangelogs:
+	dh_installchangelogs releases.md
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/control b/debian/tests/control
new file mode 100644
index 0000000..32ff834
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: gli-tests
+Depends: @, cmake (>= 3.0), libglm-dev (>= 0.9.8), libgli-dev
+Restrictions: allow-stderr
diff --git a/debian/tests/gli-tests b/debian/tests/gli-tests
new file mode 100755
index 0000000..dc28e24
--- /dev/null
+++ b/debian/tests/gli-tests
@@ -0,0 +1,42 @@
+#!/bin/sh
+# Copyright 2016 Ghislain Antony Vaillant
+#
+# This file is part of the packaging testsuite for gli.
+
+set -e
+
+# Copy the upstream CMake lists and testsuite.
+cp -a ./data/ ./test/* $AUTOPKGTEST_TMP
+cd $AUTOPKGTEST_TMP
+
+# Create a standalone project.
+rm CMakeLists.txt
+cat << EOF > CMakeLists.txt
+cmake_minimum_required(VERSION 3.0)
+project(glm-tests)
+
+enable_testing()
+
+add_definitions(-DSOURCE_DIR="\${CMAKE_CURRENT_SOURCE_DIR}")
+
+find_package(gli REQUIRED)
+include_directories(SYSTEM \${gli_INCLUDE_DIRS})
+
+find_package(glm REQUIRED)
+include_directories(SYSTEM \${glm_INCLUDE_DIRS})
+
+function(glmCreateTestGTC NAME)
+  set(SAMPLE_NAME test-\${NAME})
+  add_executable(\${SAMPLE_NAME} \${NAME}.cpp)
+  add_test(NAME \${SAMPLE_NAME}
+           COMMAND \$<TARGET_FILE:\${SAMPLE_NAME}>)
+endfunction()
+
+add_subdirectory(bug)
+add_subdirectory(core)
+
+EOF
+
+# Configure, build and run.
+mkdir build && cd build
+cmake .. && make && make test
diff --git a/debian/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..49e4f31
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,5 @@
+Bug-Database: https://github.com/g-truc/gli/issues
+Bug-Submit: https://github.com/g-truc/gli/issues/new
+Name: gli
+Repository: git at github.com:g-truc/gli.git
+Repository-Browse: https://github.com/g-truc/gli
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..f530a49
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,5 @@
+version=3
+opts=repacksuffix=+ds1,\
+dversionmangle=s/\+(debian|dfsg|ds|deb)(\d+)?$//,\
+filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/gli-$1\.tar\.gz/ \
+https://github.com/g-truc/gli/tags .*/v?(\d\S*)\.tar\.gz

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



More information about the debian-science-commits mailing list