]> mj.ucw.cz Git - paperjam.git/commitdiff
Debian packaging
authorMartin Mares <mj@ucw.cz>
Sun, 19 Jan 2020 21:06:38 +0000 (22:06 +0100)
committerMartin Mares <mj@ucw.cz>
Sun, 19 Jan 2020 21:06:38 +0000 (22:06 +0100)
Run debian/mk to generate a changelog.

debian/README.Debian [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/mk [new file with mode: 0755]
debian/rules [new file with mode: 0755]

diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644 (file)
index 0000000..ff051a3
--- /dev/null
@@ -0,0 +1,5 @@
+Paperjam packaged for Debian.
+
+No changes against upstream.
+
+ -- Martin Mares <mj@ucw.cz>  Sun, 19 Jan 2020 21:20:08 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..b4de394
--- /dev/null
@@ -0,0 +1 @@
+11
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..d95ec68
--- /dev/null
@@ -0,0 +1,15 @@
+Source: paperjam
+Section: ucw
+Priority: optional
+Maintainer: Martin Mares <mj@ucw.cz>
+Build-Depends: debhelper (>=11~), asciidoc
+Standards-Version: 4.1.4
+Homepage: http://mj.ucw.cz/sw/paperjam/
+
+Package: paperjam
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: PDF document processor
+  PaperJam is a tool for processing PDF documents: re-ordering pages,
+  scaling and rotating them, placing multiple pages on one sheet of paper,
+  adding cropmarks, and many other tricks.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..fe2af16
--- /dev/null
@@ -0,0 +1,27 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Paperjam
+Source: http://mj.ucw.cz/sw/paperjam/
+
+Files: *
+Copyright: 2018-2020 Martin Mareš <mj@ucw.cz>
+License: GPL-2+
+ This program is free software; you can redistribute it
+ and/or modify it under the terms of the GNU General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later
+ version.
+ .
+ This program 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 General Public License for more
+ details.
+ .
+ You should have received a copy of the GNU General Public
+ License along with this package; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+ Boston, MA  02110-1301 USA
+ .
+ On Debian systems, the full text of the GNU General Public
+ License version 2 can be found in the file
+ `/usr/share/common-licenses/GPL-2'.
diff --git a/debian/mk b/debian/mk
new file mode 100755 (executable)
index 0000000..9cd9fcb
--- /dev/null
+++ b/debian/mk
@@ -0,0 +1,10 @@
+#!/bin/bash
+set -e
+
+COMMIT=$(git rev-parse HEAD)
+VER=$(git describe --always --tags | sed s/^v//)-1
+
+rm debian/changelog
+EDITOR=touch dch --create --package=paperjam --newversion=$VER "Automatically generated from Git commit $COMMIT."
+EDITOR=touch dch --release -D stable
+sed -i '/Initial release/d' debian/changelog
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..f2beac8
--- /dev/null
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+%:
+       dh $@
+
+override_dh_auto_install:
+       dh_auto_install -- PREFIX=/usr