diff options
Diffstat (limited to 'debian')
-rw-r--r-- | debian/changelog | 74 | ||||
-rw-r--r-- | debian/control | 74 | ||||
-rw-r--r-- | debian/copyright | 103 | ||||
-rw-r--r-- | debian/lib2geom-dev.install | 4 | ||||
-rw-r--r-- | debian/lib2geom1.3.0.install | 1 | ||||
-rw-r--r-- | debian/patches/series | 1 | ||||
-rw-r--r-- | debian/patches/skip-EllipticalArcTest.patch | 28 | ||||
-rwxr-xr-x | debian/rules | 23 | ||||
-rw-r--r-- | debian/source/format | 1 | ||||
-rw-r--r-- | debian/watch | 3 |
10 files changed, 312 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..d6c76d2 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,74 @@ +lib2geom (1.3-2) experimental; urgency=medium + + * Add patch to disable a failing tests. + + -- Mattia Rizzolo <mattia@debian.org> Sat, 09 Sep 2023 11:23:33 +0530 + +lib2geom (1.3-1) experimental; urgency=medium + + * New upstream version 1.3. + * Bump copyright years. + * Rename lib2geom library package to follow the bumped SOVERSION. + * Restore a file that may be modified at build time. (Closes: #1048245) + + -- Mattia Rizzolo <mattia@debian.org> Mon, 04 Sep 2023 11:04:33 +0530 + +lib2geom (1.2.2-3) unstable; urgency=medium + + * Upload to unstable. + * Bump copyright years. + + -- Mattia Rizzolo <mattia@debian.org> Tue, 10 Jan 2023 01:51:24 +0100 + +lib2geom (1.2.2-2) experimental; urgency=medium + + * Rename lib2geom library package to follow the bumped SOVERSION. + * Drop the patch from the previous upload. + * d/copyright: Remove an unused license paragraph. + + -- Mattia Rizzolo <mattia@debian.org> Sun, 18 Dec 2022 21:03:14 +0100 + +lib2geom (1.2.2-1) unstable; urgency=medium + + [ Debian Janitor ] + * Remove constraints unnecessary since buster + * Build-Depends: Drop versioned constraint on cmake. + + [ Mattia Rizzolo ] + * New upstream version 1.2.2 + * d/control: + + Fix typo in Vcs-Browser + + Bump Standards-Version to 4.6.2, no changes needed. + * Add patch to temporary ignore a SONAME bump. + + -- Mattia Rizzolo <mattia@debian.org> Sun, 18 Dec 2022 19:18:49 +0100 + +lib2geom (1.2-1) unstable; urgency=medium + + * New upstream version 1.2. + * Remove all patches, applied upstream. + * Update copyright. + + -- Mattia Rizzolo <mattia@debian.org> Tue, 19 Jul 2022 13:44:11 +0200 + +lib2geom (1.1-3) unstable; urgency=medium + + * Add 3 patches from upstream, pending new upstream release. + * Bump Standards-Version to 4.6.1, no changes needed. + * Update Copyright. + * Add a watchfile + + -- Mattia Rizzolo <mattia@debian.org> Mon, 23 May 2022 16:21:59 +0200 + +lib2geom (1.1-2) unstable; urgency=medium + + * Upload to unstable. + * Add patch from upstream to fix testsuite on i386. + + -- Mattia Rizzolo <mattia@debian.org> Mon, 08 Nov 2021 18:02:22 +0100 + +lib2geom (1.1-1) experimental; urgency=medium + + * Initial release. (Closes: #989607) + + -- Mattia Rizzolo <mattia@debian.org> Mon, 19 Jul 2021 17:03:58 +0200 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..3d08c39 --- /dev/null +++ b/debian/control @@ -0,0 +1,74 @@ +Source: lib2geom +Section: libs +Priority: optional +Maintainer: Debian Multimedia Maintainers <debian-multimedia@lists.debian.org> +Uploaders: + Mattia Rizzolo <mattia@debian.org>, +Build-Depends: + cmake, + debhelper-compat (= 13), + ninja-build, +Build-Depends-Arch: + libboost-dev, + libcairo2-dev, + libdouble-conversion-dev, + libgsl-dev, + libgtest-dev, + libgtk-3-dev, + pkg-config, + ragel, +Standards-Version: 4.6.2 +Rules-Requires-Root: no +Homepage: https://gitlab.com/inkscape/lib2geom +Vcs-Git: https://salsa.debian.org/multimedia-team/lib2geom.git +Vcs-Browser: https://salsa.debian.org/multimedia-team/lib2geom + +Package: lib2geom1.3.0 +Architecture: any +Multi-Arch: same +Depends: + ${misc:Depends}, + ${shlibs:Depends}, +Description: robust computational geometry framework -- shared library + 2Geom is a C++ 2D geometry library geared towards robust processing of + computational geometry data associated with vector graphics. The primary + design consideration is ease of use and clarity. It is dual-licensed + under LGPL 2.1 and MPL 1.1. + . + The library is descended from a set of geometric routines present in + Inkscape, a vector graphics editor based around the Scalable Vector + Graphics format, the most widespread vector graphics interchange format + on the Web and a W3C Recommendation. Due to this legacy, not all parts + of the API form a coherent whole (yet). + . + Rendering is outside the scope of this library, and it is assumed + something like libcairo or similar is employed for this. 2geom + concentrates on higher level algorithms and geometric computations. + . + This package contains the shared library. + +Package: lib2geom-dev +Section: libdevel +Architecture: any +Multi-Arch: same +Depends: + lib2geom1.3.0 (= ${binary:Version}), + ${misc:Depends}, + ${shlibs:Depends}, +Description: robust computational geometry framework -- development library + 2Geom is a C++ 2D geometry library geared towards robust processing of + computational geometry data associated with vector graphics. The primary + design consideration is ease of use and clarity. It is dual-licensed + under LGPL 2.1 and MPL 1.1. + . + The library is descended from a set of geometric routines present in + Inkscape, a vector graphics editor based around the Scalable Vector + Graphics format, the most widespread vector graphics interchange format + on the Web and a W3C Recommendation. Due to this legacy, not all parts + of the API form a coherent whole (yet). + . + Rendering is outside the scope of this library, and it is assumed + something like libcairo or similar is employed for this. 2geom + concentrates on higher level algorithms and geometric computations. + . + This package contains the development files needed to build against 2geom. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..753f6c2 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,103 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: lib2geom +Source: https://gitlab.com/inkscape/lib2geom/-/releases + +Files: * +Copyright: + 1990 Philip J. Schneider + 2001 Lauris Kaplinski + 2001 Ximian, Inc. + 2003-2004 Monash University + 2006-2015 Nathan Hurst <njh@mail.csse.monash.edu.au> + 2006-2015 Michael G. Sloan <mgsloan@gmail.com> + 2006-2019 Krzysztof Kosiński <tweenk.pl@gmail.com> + 2007-2015 MenTaLguY <mental@rydia.net> + 2006-2015 Michael Sloan <mgsloan@gmail.com> + 2007-2014 Marco Cecchetti <mrcekets@gmail.com> + 2006-2008 Aaron Spike <aaron@ekips.org> + 2007 Alex Mac <ajm@cs.nott.ac.uk> + 2009-2010 Evangelos Katsikaros <vkatsikaros@yahoo.gr> + 2009 Ricardo Lafuente <r@sollec.org> + 2006-2012 Jean-François Barraud <jf.barraud@gmail.com> + 2007-2014 Johan Engelen <j.b.c.engelen@alumnus.utwente.nl> + 2015 Olof Bjarnason <olof.bjarnason@gmail.com> + 2020-2021 Thomas Holder + 2020 Sergei Izmailov + 2022 Rafał Siejakowski <rs@rs-math.net> +License: LGPL-2.1 or MPL-1.1 + +Files: src/2geom/affine.cpp +Copyright: + Lauris Kaplinski <lauris@kaplinski.com> + Michael G. Sloan <mgsloan@gmail.com> +License: public-domain + This code is in public domain + +Files: + src/performance-tests/bendpath-test.cpp + src/performance-tests/bezier-utils-test.cpp + src/performance-tests/parse-svg-test.cpp + src/performance-tests/path-operations-test.cpp +Copyright: + 2007-2013 Johan Engelen <j.b.c.engelen@alumnus.utwente.nl> + 2007-2013 Steren Giannini <steren.giannini@gmail.com> +License: GPL + +Files: tests/mersennetwister.h +Copyright: + 1997-2002 Makoto Matsumoto and Takuji Nishimura + 2000-2003 Richard J. Wagner +License: BSD-3-clause + +Files: debian/* +Copyright: 2021-2023 Mattia Rizzolo <mattia@debian.org> +License: LGPL-2.1 or MPL-1.1 + +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 Power of Two Games LLC 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. + +License: GPL + On Debian systems, the complete text of the GNU General Public License + version 1 can be found in '/usr/share/common-licenses/GPL-1'. + +License: LGPL-2.1 + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation, + version 2.1 of the License. + . + On Debian systems, the complete text of the GNU Lesser General Public + License version 2.1 can be found in '/usr/share/common-licenses/LGPL-2.1'. + +License: MPL-1.1 + The contents of this file are subject to the Mozilla Public License Version + 1.1 (the "License"); you may not use this file except in compliance with the + License. You may obtain a copy of the License at http://www.mozilla.org/MPL/. + . + Software distributed under the License is distributed on an "AS IS" basis, + WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for + the specific language governing rights and limitations under the License. + . + On Debian system, the complete text of the Mozilla Public License + version 1.1 can be found in '/usr/share/common-licenses/MPL-1.1'. diff --git a/debian/lib2geom-dev.install b/debian/lib2geom-dev.install new file mode 100644 index 0000000..5df45bf --- /dev/null +++ b/debian/lib2geom-dev.install @@ -0,0 +1,4 @@ +usr/include +usr/lib/*/cmake +usr/lib/*/lib2geom.so +usr/lib/*/pkgconfig diff --git a/debian/lib2geom1.3.0.install b/debian/lib2geom1.3.0.install new file mode 100644 index 0000000..e3983c4 --- /dev/null +++ b/debian/lib2geom1.3.0.install @@ -0,0 +1 @@ +usr/lib/*/lib2geom.so.* diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..01802a7 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +skip-EllipticalArcTest.patch diff --git a/debian/patches/skip-EllipticalArcTest.patch b/debian/patches/skip-EllipticalArcTest.patch new file mode 100644 index 0000000..0773982 --- /dev/null +++ b/debian/patches/skip-EllipticalArcTest.patch @@ -0,0 +1,28 @@ +Description: disable failing tests + Upstread said that this test is giving out false-positives where it passes +Bug: https://gitlab.com/inkscape/lib2geom/-/issues/63#note_1526186398 +Author: Mattia Rizzolo <mattia@debian.org> +Forwarded: not-needed +Last-Update: 2023-09-09 + +--- a/tests/elliptical-arc-test.cpp ++++ b/tests/elliptical-arc-test.cpp +@@ -178,6 +178,10 @@ + } + } + ++ ++/* ++ * tests disabled as per: ++ * https://gitlab.com/inkscape/lib2geom/-/issues/63#note_1526186398 + TEST(EllipticalArcTest, ArcIntersection) { + std::vector<CurveIntersection> r1, r2; + +@@ -226,6 +230,7 @@ + EXPECT_DOUBLE_EQ(left_pt.first, 1.0); // Expect (-1, 0) reached at the end of upper + EXPECT_DOUBLE_EQ(left_pt.second, 0.0); // Expect (-1, 0) passed at the start of lower + } ++*/ + + TEST(EllipticalArcTest, BezierIntersection) { + std::vector<CurveIntersection> r1, r2; diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..f603be1 --- /dev/null +++ b/debian/rules @@ -0,0 +1,23 @@ +#!/usr/bin/make -f + +include /usr/share/dpkg/architecture.mk + +%: + dh $@ --buildsystem cmake+ninja + +override_dh_auto_configure: + dh_auto_configure -- \ + -D2GEOM_BUILD_SHARED=ON \ + -DCMAKE_SKIP_RPATH:BOOL=ON \ + +execute_before_dh_auto_build: + # If ragel is present then this file will be rebuilt at build time. + # Restore the original file on clean if that's the case. + # https://bugs.debian.org/1048245 + set -e; [ ! -e $(shell command -v ragel) ] || \ + perl -MDebian::Debhelper::Dh_Lib=restore_file_on_clean \ + -e 'restore_file_on_clean("src/2geom/svg-path-parser.cpp")' + +# needed to pass the tests, as without rpath somhow the tests can't find the library anymore +override_dh_auto_test: + LD_LIBRARY_PATH=$(CURDIR)/obj-$(DEB_HOST_GNU_TYPE)/src/2geom dh_auto_test 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/watch b/debian/watch new file mode 100644 index 0000000..8d205c4 --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=4 + +https://gitlab.com/inkscape/lib2geom/-/tags .*/archive/@ANY_VERSION@/@PACKAGE@-.*@ARCHIVE_EXT@ |