From 2e992d03e10259a27d92c51bb9d8fe6748677c34 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 30 May 2025 19:00:59 +0200 Subject: [PATCH] Adding debian version 0.1.0-1. Signed-off-by: Daniel Baumann --- debian/changelog | 5 +++ debian/control | 26 +++++++++++++ debian/copyright | 38 +++++++++++++++++++ debian/local/bin/sortxml | 3 ++ .../patches/debian/0001-python-shebang.patch | 12 ++++++ debian/patches/series | 1 + debian/python3-sortxml.install | 1 + debian/rules | 10 +++++ debian/source/format | 1 + debian/upstream/metadata | 5 +++ debian/watch | 2 + 11 files changed, 104 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/local/bin/sortxml create mode 100644 debian/patches/debian/0001-python-shebang.patch create mode 100644 debian/patches/series create mode 100644 debian/python3-sortxml.install create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/upstream/metadata create mode 100644 debian/watch diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..6d7903d --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +sortxml (0.1.0-1) unstable; urgency=low + + * Initial upload to sid. + + -- Daniel Baumann Fri, 30 May 2025 18:55:56 +0200 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..e55422c --- /dev/null +++ b/debian/control @@ -0,0 +1,26 @@ +Source: sortxml +Section: python +Priority: optional +Maintainer: Daniel Baumann +Build-Depends: + debhelper-compat (= 13), + dh-sequence-python3, + pybuild-plugin-pyproject, + python3-all, + python3-dateutil, + python3-setuptools, +Rules-Requires-Root: no +Standards-Version: 4.7.2 +Homepage: https://github.com/Kopachris/sortxml +Vcs-Browser: https://forgejo.debian.net/python/sortxml +Vcs-Git: https://forgejo.debian.net/python/sortxml + +Package: python3-sortxml +Section: python +Architecture: all +Depends: + ${misc:Depends}, + ${python3:Depends}, +Description: simple XML element sorter + sortxml is a simple XML element sorter. It can be used as a Python module + (sortxml.sort_xml) or by running standalone from the command-line. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..cc0316a --- /dev/null +++ b/debian/copyright @@ -0,0 +1,38 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: treelib +Upstream-Contact: https://github.com/Kopachris/sortxml/issues +Source: https://github.com/Kopachris/sortxml/tags + +Files: * +Copyright: 2022 Chris Koch +License: BSD-3-clause + +Files: debian/* +Copyright: 2025 Daniel Baumann +License: BSD-3-clause + +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 copyright holder 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 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. diff --git a/debian/local/bin/sortxml b/debian/local/bin/sortxml new file mode 100755 index 0000000..928181b --- /dev/null +++ b/debian/local/bin/sortxml @@ -0,0 +1,3 @@ +#!/bin/sh + +python3 -m sortxml ${@} diff --git a/debian/patches/debian/0001-python-shebang.patch b/debian/patches/debian/0001-python-shebang.patch new file mode 100644 index 0000000..634d6f2 --- /dev/null +++ b/debian/patches/debian/0001-python-shebang.patch @@ -0,0 +1,12 @@ +Author: Daniel Baumann +Description: Correcting python interpreter. + +diff -Naurp sortxml.orig/sortxml.py sortxml/sortxml.py +--- sortxml.orig/sortxml.py ++++ sortxml/sortxml.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/python310 ++#!/usr/bin/python3 + + """Simple XML element sorter. + diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..ddda7bc --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +debian/0001-python-shebang.patch diff --git a/debian/python3-sortxml.install b/debian/python3-sortxml.install new file mode 100644 index 0000000..6ac8c87 --- /dev/null +++ b/debian/python3-sortxml.install @@ -0,0 +1 @@ +debian/local/bin/* /usr/bin diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..b2e0f02 --- /dev/null +++ b/debian/rules @@ -0,0 +1,10 @@ +#!/usr/bin/make -f + +export PYBUILD_NAME=sortxml + +%: + dh ${@} --buildsystem=pybuild + +execute_after_dh_auto_clean: + # help pybuild + rm -rf *.egg-info 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/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000..9841022 --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,5 @@ +--- +Bug-Database: https://github.com/Kopachris/sortxml/issues +Bug-Submit: https://github.com/Kopachris/sortxml/issues/new +Repository: https://github.com/Kopachris/sortxml.git +Repository-Browse: https://github.com/Kopachris/sortxml diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..1d1bde2 --- /dev/null +++ b/debian/watch @@ -0,0 +1,2 @@ +version=4 +https://github.com/Kopachris/sortxml/tags .*/v?(\d.*)@ARCHIVE_EXT@