[neon/neon-packaging/rinutils/Neon/release] debian: take packaging from debian
Jonathan Esk-Riddell
null at kde.org
Mon Aug 8 15:13:45 BST 2022
Git commit 4c2633af5a5850b75a2f2bb0af5bf4c3fe4dc2c9 by Jonathan Esk-Riddell.
Committed on 10/05/2022 at 10:46.
Pushed by jriddell into branch 'Neon/release'.
take packaging from debian
D +0 -1 debian/.gitattributes
M +3 -3 debian/changelog
M +1 -1 debian/compat
M +16 -9 debian/control
M +3 -19 debian/copyright
A +1 -0 debian/rinutils.docs
A +1 -0 debian/rinutils.install
A +1 -0 debian/rinutils.links
A +39 -0 debian/rinutils.postinst
M +15 -4 debian/rules
M +2 -1 debian/watch
https://invent.kde.org/neon/neon-packaging/rinutils/commit/4c2633af5a5850b75a2f2bb0af5bf4c3fe4dc2c9
diff --git a/debian/.gitattributes b/debian/.gitattributes
deleted file mode 100644
index 6a03163..0000000
--- a/debian/.gitattributes
+++ /dev/null
@@ -1 +0,0 @@
-changelog merge=dpkg-mergechangelogs
diff --git a/debian/changelog b/debian/changelog
index 5eb39ce..c80a45d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,5 @@
-rinutils (0.4.1-0neon) UNRELEASED; urgency=medium
+rinutils (0.10.0-1) unstable; urgency=low
- * New release
+ * Initial release (Closes: #995695)
- -- Jonathan Riddell <jr at jriddell.org> Mon, 08 Jun 2020 13:11:22 +0100
+ -- Shlomi Fish <shlomif at cpan.org> Mon, 06 Sep 2021 09:42:40 +0300
diff --git a/debian/compat b/debian/compat
index 48082f7..b1bd38b 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-12
+13
diff --git a/debian/control b/debian/control
index f8ecdce..13dbe95 100644
--- a/debian/control
+++ b/debian/control
@@ -1,13 +1,20 @@
Source: rinutils
-Section: libs
+Section: libdevel
+Homepage: https://github.com/shlomif/rinutils/
Priority: optional
-Maintainer: Jonathan Riddell <jr at jriddell.org>
-Build-Depends: cmake (>= 3.5~), debhelper (>= 12), libcmocka-dev
+Maintainer: Shlomi Fish <shlomif at cpan.org>
Standards-Version: 4.5.0
+Build-Depends: chrpath,
+ cmake,
+ debhelper (>= 13)
+Vcs-Git: https://salsa.debian.org/shlomif-guest/rinutils.git
+Vcs-Browser: https://salsa.debian.org/shlomif-guest/rinutils
-Package: rinutils
-Section: libdevel
-Architecture: any
-Depends: ${misc:Depends}, ${shlibs:Depends}
-Description: macros used by Shlomi
- Rinutils, macros used by Shlomi
+Package: librinutils-dev
+Architecture: all
+Depends: ${misc:Depends}
+Description: C headers-only library
+ Provides macros and static functions that are expected to work on Unix-like
+ systems and MS Windows, e.g sizeof()-aware malloc() wrappers and a likely()
+ macro. Note: rinutils only supports the -std=gnu11 dialect as supported by
+ GCC, clang, and compatible compilers. Other compilers are not supported.
diff --git a/debian/copyright b/debian/copyright
index 06d3390..0c5caa9 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,10 +1,10 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: rinutils
-Source: https://github.com/shlomif/rinutils/releases
+Source: https://github.com/shlomif/rinutils/
Files: *
-Copyright: 2000-2020 Shlomi Fish
-License: MIT
+Copyright: 2000-2019 Shlomi Fish <shlomif at cpan.org>
+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
@@ -25,19 +25,3 @@ License: MIT
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: debian/*
-Copyright: 2020 Jonathan Riddell <jr at jriddell.org>
-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; either
- version 2.1 of the License, or (at your option) any later version.
- .
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
- .
- The complete text of the GNU Lesser General Public License version 2.1 can be
- found in `/usr/share/common-licenses/LGPL-2.1'.
diff --git a/debian/rinutils.docs b/debian/rinutils.docs
new file mode 100644
index 0000000..2ed350c
--- /dev/null
+++ b/debian/rinutils.docs
@@ -0,0 +1 @@
+README.asciidoc
diff --git a/debian/rinutils.install b/debian/rinutils.install
new file mode 100644
index 0000000..9a5393f
--- /dev/null
+++ b/debian/rinutils.install
@@ -0,0 +1 @@
+usr/include/rinutils/*.h
diff --git a/debian/rinutils.links b/debian/rinutils.links
new file mode 100644
index 0000000..ade4c95
--- /dev/null
+++ b/debian/rinutils.links
@@ -0,0 +1 @@
+usr/share/man/man1/strfile.1.gz usr/share/man/man1/unstr.1.gz
diff --git a/debian/rinutils.postinst b/debian/rinutils.postinst
new file mode 100644
index 0000000..015eaf9
--- /dev/null
+++ b/debian/rinutils.postinst
@@ -0,0 +1,39 @@
+#!/bin/sh
+# postinst script for rinutils
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <postinst> `configure' <most-recently-configured-version>
+# * <old-postinst> `abort-upgrade' <new version>
+# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+# <new-version>
+# * <postinst> `abort-remove'
+# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+# <failed-install-package> <version> `removing'
+# <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ configure)
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/rules b/debian/rules
index d4648b8..932b341 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,18 @@
-#!/usr/bin/make -f
+#! /usr/bin/make -f
-%:
+binary binary-arch binary-indep build build-arch build-indep clean:
dh $@
-override_dh_auto_test:
- true
+override_dh_auto_configure:
+ dh_auto_configure -- -DINSTALL_TO_DATADIR=TRUE
+
+# Build with prefix="" to generate correct embedded paths.
+override_dh_auto_build-arch:
+ dh_auto_build -- all
+
+override_dh_auto_install-arch:
+ dh_auto_install -- prefix=$(CURDIR)/debian/tmp \
+ install
+
+override_dh_installchangelogs:
+ dh_installchangelogs NEWS.asciidoc
diff --git a/debian/watch b/debian/watch
index 68a908f..a4682b2 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,2 +1,3 @@
version=4
-https://github.com/shlomif/rinutils/releases https://github.com/shlomif/rinutils/releases/download/@ANY_VERSION@/@PACKAGE@@ANY_VERSION@@ARCHIVE_EXT@
+opts=filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/rinutils-$1\.tar\.gz/ \
+ https://github.com/shlomif/rinutils/releases .*/v?(\d\S+)\.tar\.gz
More information about the Neon-commits
mailing list