[neon/3rdparty/lager/Neon/release] debian: Import from debian

Scarlett Moore null at kde.org
Tue Sep 26 22:44:00 BST 2023


Git commit a7300136e9e7099a91129334123999c244261656 by Scarlett Moore.
Committed on 26/09/2023 at 23:41.
Pushed by scarlettmoore into branch 'Neon/release'.

Import from debian

A  +1    -0    debian/.gitattributes
A  +26   -0    debian/changelog
A  +36   -0    debian/control
A  +196  -0    debian/copyright
A  +1    -0    debian/liblager-dev.examples
A  +1    -0    debian/patches/series
A  +26   -0    debian/patches/upstream_Include-cstdint-for-std-uint32_t.patch
A  +18   -0    debian/rules
A  +6    -0    debian/salsa-ci.yml
A  +1    -0    debian/source/format
A  +27   -0    debian/tests/CMakeLists.txt
A  +13   -0    debian/tests/build-examples
A  +3    -0    debian/tests/control
A  +5    -0    debian/upstream/metadata
A  +5    -0    debian/watch

https://invent.kde.org/neon/3rdparty/lager/-/commit/a7300136e9e7099a91129334123999c244261656

diff --git a/debian/.gitattributes b/debian/.gitattributes
new file mode 100644
index 0000000..6a03163
--- /dev/null
+++ b/debian/.gitattributes
@@ -0,0 +1 @@
+changelog merge=dpkg-mergechangelogs
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..d8d9446
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,26 @@
+lager (0.1.0-3) UNRELEASED; urgency=medium
+
+  [ Pino Toscano ]
+  * Backport upstream commit 073c03acfdaf39f24ba2cd642743320979d53b6d to add
+    a missing include in the SDL event loop; patch
+    upstream_Include-cstdint-for-std-uint32_t.patch.
+  * Add a 'build-examples' autopkgtest to build almost all the examples:
+    ncurses, SDL2, Qt5.
+  * Update copyright.
+
+ -- Debian Qt/KDE Maintainers <debian-qt-kde at lists.debian.org>  Fri, 18 Aug 2023 16:03:53 +0200
+
+lager (0.1.0-2) unstable; urgency=medium
+
+  * Upload to unstable.
+  * Ship the examples in liblager-dev.
+  * Add libboost-dev, libimmer-dev, and libzug-dev as dependencies of
+    liblager-dev.
+
+ -- Pino Toscano <pino at debian.org>  Fri, 18 Aug 2023 11:28:06 +0200
+
+lager (0.1.0-1) experimental; urgency=medium
+
+  * Initial packaging.
+
+ -- Pino Toscano <pino at debian.org>  Fri, 28 Jul 2023 22:00:53 +0200
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..e96b06f
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,36 @@
+Source: lager
+Section: libs
+Priority: optional
+Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde at lists.debian.org>
+Uploaders: Pino Toscano <pino at debian.org>,
+Build-Depends: cmake (>= 3.8~),
+               debhelper-compat (= 13),
+               libboost-dev (>= 1.56~),
+               libboost-system-dev (>= 1.56~),
+               libcereal-dev <!nocheck>,
+               libimmer-dev,
+               libzug-dev,
+               qtbase5-dev,
+               qtdeclarative5-dev,
+Standards-Version: 4.6.2
+Rules-Requires-Root: no
+Homepage: https://github.com/arximboldi/lager
+Vcs-Browser: https://salsa.debian.org/qt-kde-team/3rdparty/lager
+Vcs-Git: https://salsa.debian.org/qt-kde-team/3rdparty/lager.git
+
+Package: liblager-dev
+Architecture: any
+Multi-Arch: same
+Section: libdevel
+Depends: ${misc:Depends},
+         libboost-dev,
+         libimmer-dev,
+         libzug-dev,
+Description: C++ library for value-oriented design-- development files
+ lager is a C++ library to assist value-oriented design by implementing the
+ unidirectional data-flow architecture. It is heavily inspired by Elm and Redux,
+ and enables composable designs by promoting the use of simple value types and
+ testable application logic via pure functions. And you get time-travel for
+ free!
+ .
+ This package contains the development files.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..16872a2
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,196 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: lager
+Source: https://github.com/arximboldi/lager
+
+Files: *
+Copyright: 2017, 2019, Juan Pedro Bolivar Puente
+           2019, Carl Bussey
+License: Expat
+
+Files: cmake/icm_build_failure_testing.cmake
+Copyright: 2022, Borislav Stanimirov
+License: Expat
+
+Files: cmake/FindSDL2.cmake
+       cmake/FindSDL2_image.cmake
+       cmake/FindSDL2_ttf.cmake
+Copyright: 2003-2009, Kitware, Inc.
+           2012, Benjamin Eikel
+License: BSD-3-Clause
+
+Files: resources/SourceSansPro-Bold.ttf
+       resources/SourceSansPro-Regular.ttf
+Copyright: 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/)
+License: OFL-1.1
+
+Files: tools/include/catch.hpp
+Copyright: 2022, Two Blue Cubes Ltd. All rights reserved.
+License: BSL-1.0
+
+Files: debian/*
+Copyright: 2023, Pino Toscano <pino at debian.org>
+License: Expat
+
+License: BSD-3-Clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+ .
+  * Redistributions of source code must retain the above copyright notice,
+    this list of conditions and the following disclaimer.
+ .
+  * Redistributions in binary form must reproduce the above copyright notice,
+    this list of conditions and the following disclaimer in the documentation
+    and/or other materials provided with the distribution.
+ .
+  * The names of Kitware, Inc., the Insight Consortium, or the names of
+    any consortium members, or of any contributors, may not be used to
+    endorse or promote products derived from this software without
+    specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER 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 AUTHORS OR CONTRIBUTORS BE LIABLE FOR
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+License: BSL-1.0
+ Boost Software License - Version 1.0 - August 17th, 2003
+ .
+ Permission is hereby granted, free of charge, to any person or organization
+ obtaining a copy of the software and accompanying documentation covered by
+ this license (the "Software") to use, reproduce, display, distribute,
+ execute, and transmit the Software, and to prepare derivative works of the
+ Software, and to permit third-parties to whom the Software is furnished to
+ do so, all subject to the following:
+ .
+ The copyright notices in the Software and this entire statement, including
+ the above license grant, this restriction and the following disclaimer,
+ must be included in all copies of the Software, in whole or in part, and
+ all derivative works of the Software, unless such copies or derivative
+ works are solely in the form of machine-executable object code generated by
+ a source language processor.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
+ SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
+ FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ DEALINGS IN THE SOFTWARE.
+
+License: 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
+
+License: OFL-1.1
+ Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/),
+ with Reserved Font Name ‘Source’. All Rights Reserved. Source is
+ a trademark of Adobe Systems Incorporated in the United States and/or
+ other countries.
+ .
+ ––––––––––––––––––––––––––––––––––––––––––––––––––––
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
+ ––––––––––––––––––––––––––––––––––––––––––––––––––––
+ .
+ PREAMBLE
+ The goals of the Open Font License (OFL) are to stimulate worldwide
+ development of collaborative font projects, to support the font
+ creation efforts of academic and linguistic communities, and to provide
+ a free and open framework in which fonts may be shared and improved in
+ partnership with others.
+ .
+ The OFL allows the licensed fonts to be used, studied, modified and
+ redistributed freely as long as they are not sold by themselves. The
+ fonts, including any derivative works, can be bundled, embedded,
+ redistributed and/or sold with any software provided that any reserved
+ names are not used by derivative works. The fonts and derivatives,
+ however, cannot be released under any other type of license. The
+ requirement for fonts to remain under this license does not apply to
+ any document created using the fonts or their derivatives.
+ .
+ DEFINITIONS
+ “Font Software” refers to the set of files released by the Copyright
+ Holder(s) under this license and clearly marked as such. This may
+ include source files, build scripts and documentation.
+ .
+ “Reserved Font Name” refers to any names specified as such after the
+ copyright statement(s).
+ .
+ “Original Version” refers to the collection of Font Software components
+ as distributed by the Copyright Holder(s).
+ .
+ “Modified Version” refers to any derivative made by adding to,
+ deleting, or substituting—in part or in whole—any of the components of
+ the Original Version, by changing formats or by porting the Font
+ Software to a new environment.
+ .
+ “Author” refers to any designer, engineer, programmer, technical writer
+ or other person who contributed to the Font Software.
+ .
+ PERMISSION & CONDITIONS
+ Permission is hereby granted, free of charge, to any person obtaining a
+ copy of the Font Software, to use, study, copy, merge, embed, modify,
+ redistribute, and sell modified and unmodified copies of the Font
+ Software, subject to the following conditions:
+ .
+ 1) Neither the Font Software nor any of its individual components, in
+ Original or Modified Versions, may be sold by itself.
+ .
+ 2) Original or Modified Versions of the Font Software may be bundled,
+ redistributed and/or sold with any software, provided that each copy
+ contains the above copyright notice and this license. These can be
+ included either as stand-alone text files, human-readable headers or in
+ the appropriate machine-readable metadata fields within text or binary
+ files as long as those fields can be easily viewed by the user.
+ .
+ 3) No Modified Version of the Font Software may use the Reserved Font
+ Name(s) unless explicit written permission is granted by the
+ corresponding Copyright Holder. This restriction only applies to the
+ primary font name as presented to the users.
+ .
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
+ Software shall not be used to promote, endorse or advertise any
+ Modified Version, except to acknowledge the contribution(s) of the
+ Copyright Holder(s) and the Author(s) or with their explicit written
+ permission.
+ .
+ 5) The Font Software, modified or unmodified, in part or in whole, must
+ be distributed entirely under this license, and must not be distributed
+ under any other license. The requirement for fonts to remain under this
+ license does not apply to any document created using the Font Software.
+ .
+ TERMINATION
+ This license becomes null and void if any of the above conditions are
+ not met.
+ .
+ DISCLAIMER
+ THE FONT SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+ OTHER DEALINGS IN THE FONT SOFTWARE.
diff --git a/debian/liblager-dev.examples b/debian/liblager-dev.examples
new file mode 100644
index 0000000..0bbe99e
--- /dev/null
+++ b/debian/liblager-dev.examples
@@ -0,0 +1 @@
+example/*
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..420c3c4
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+upstream_Include-cstdint-for-std-uint32_t.patch
diff --git a/debian/patches/upstream_Include-cstdint-for-std-uint32_t.patch b/debian/patches/upstream_Include-cstdint-for-std-uint32_t.patch
new file mode 100644
index 0000000..e27661b
--- /dev/null
+++ b/debian/patches/upstream_Include-cstdint-for-std-uint32_t.patch
@@ -0,0 +1,26 @@
+From 073c03acfdaf39f24ba2cd642743320979d53b6d Mon Sep 17 00:00:00 2001
+From: Pino Toscano <toscano.pino at tiscali.it>
+Date: Thu, 3 Aug 2023 07:37:55 +0200
+Subject: [PATCH] Include <cstdint> for std::uint32_t
+
+This way it builds also with GCC 13, which no more implicitly includes
+<cstdint> from other headers included in this file.
+---
+ lager/event_loop/sdl.hpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/lager/event_loop/sdl.hpp b/lager/event_loop/sdl.hpp
+index 16d783e..4950468 100644
+--- a/lager/event_loop/sdl.hpp
++++ b/lager/event_loop/sdl.hpp
+@@ -25,6 +25,7 @@
+ 
+ #include <cassert>
+ #include <cstddef>
++#include <cstdint>
+ 
+ #if __EMSCRIPTEN__
+ #include <emscripten.h>
+-- 
+2.40.1
+
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..cb267ef
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,18 @@
+#!/usr/bin/make -f
+
+# https://github.com/arximboldi/immer/issues/223
+export DEB_CXXFLAGS_MAINT_APPEND = -Wno-array-bounds
+
+%:
+	dh $@ --buildsystem=cmake
+
+override_dh_auto_configure:
+	dh_auto_configure --buildsystem=cmake -- \
+	  -Dlager_BUILD_EXAMPLES=OFF \
+	  -Dlager_BUILD_DEBUGGER_EXAMPLES=OFF \
+	  -Dlager_BUILD_DOCS=OFF
+
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+execute_after_dh_auto_build:
+	dh_auto_build -- tests
+endif
diff --git a/debian/salsa-ci.yml b/debian/salsa-ci.yml
new file mode 100644
index 0000000..31e31c9
--- /dev/null
+++ b/debian/salsa-ci.yml
@@ -0,0 +1,6 @@
+include:
+  - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml
+  - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml
+variables:
+  SALSA_CI_DISABLE_MISSING_BREAKS: 'no'
+  SALSA_CI_DISABLE_RC_BUGS: 'no'
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/CMakeLists.txt b/debian/tests/CMakeLists.txt
new file mode 100644
index 0000000..6546c81
--- /dev/null
+++ b/debian/tests/CMakeLists.txt
@@ -0,0 +1,27 @@
+cmake_minimum_required(VERSION 3.20)
+project(lager-tests)
+
+enable_testing()
+
+find_package(Lager REQUIRED)
+# aliases used by the examples
+add_library(lager-example ALIAS lager)
+add_library(lager-debugger-example ALIAS lager)
+
+# find ncurses properly before the CMakeLists.txt of the examples does it;
+# this will be done in the future:
+# https://github.com/arximboldi/lager/pull/191
+set(CURSES_NEED_WIDE true)
+find_package(Curses REQUIRED)
+# find SDL2 before it is done by the CMakeLists.txt of the examples,
+# so the right variables for targets can be set;
+# this will be done in the future:
+# https://github.com/arximboldi/lager/pull/190
+find_package(SDL2 REQUIRED)
+find_package(SDL2_ttf REQUIRED)
+set(SDL2_LIBRARY SDL2::SDL2)
+set(SDL2_TTF_LIBRARIES SDL2_ttf::SDL2_ttf)
+
+set(lager_BUILD_DEBUGGER_EXAMPLES TRUE)
+
+add_subdirectory(examples)
diff --git a/debian/tests/build-examples b/debian/tests/build-examples
new file mode 100755
index 0000000..d095d47
--- /dev/null
+++ b/debian/tests/build-examples
@@ -0,0 +1,13 @@
+#!/bin/bash
+set -e
+set -x
+
+SRCDIR=$(dirname $(realpath $0))
+
+cd $AUTOPKGTEST_TMP
+cp "$SRCDIR/CMakeLists.txt" .
+ln -s /usr/share/doc/liblager-dev/examples .
+mkdir build
+cd build
+cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON ..
+make examples
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..e8a96eb
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: build-examples
+Depends: build-essential, cmake, liblager-dev, libcereal-dev, libboost-dev, qtbase5-dev, qtdeclarative5-dev, qtquickcontrols2-5-dev, libncurses-dev, libsdl2-dev, libsdl2-ttf-dev
+Restrictions: allow-stderr
diff --git a/debian/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..cb2cf3e
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,5 @@
+---
+Bug-Database: https://github.com/arximboldi/lager/issues
+Bug-Submit: https://github.com/arximboldi/lager/issues/new
+Repository: https://github.com/arximboldi/lager.git
+Repository-Browse: https://github.com/arximboldi/lager
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..f253413
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,5 @@
+version=4
+
+opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%@PACKAGE at -$1.tar.gz%" \
+https://github.com/arximboldi/lager/tags \
+(?:.*?/)?v?(\d[\d.]*)\.tar\.gz


More information about the Neon-commits mailing list