[Python-modules-commits] [htmlmin] 02/08: Initial packaging.

Adrian Vondendriesch discostu-guest at moszumanska.debian.org
Wed May 10 13:15:29 UTC 2017


This is an automated email from the git hooks/post-receive script.

discostu-guest pushed a commit to branch master
in repository htmlmin.

commit 7f1ab9d5aa6ec5fdb54899f0799c94482f12ce5a
Author: Adrian Vondendriesch <adrian.vondendriesch at credativ.de>
Date:   Tue Apr 4 11:15:50 2017 +0200

    Initial packaging.
---
 debian/changelog     |  5 +++++
 debian/compat        |  1 +
 debian/control       | 25 +++++++++++++++++++++++++
 debian/copyright     | 35 +++++++++++++++++++++++++++++++++++
 debian/rules         | 33 +++++++++++++++++++++++++++++++++
 debian/source/format |  1 +
 debian/watch         |  4 ++++
 7 files changed, 104 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..c1ddfaa
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+htmlmin (0.1.10-1) unstable; urgency=low
+
+  * Initial package version.
+
+ -- Adrian Vondendriesch <adrian.vondendriesch at credativ.de>  Tue, 04 Apr 2017 09:21:43 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..8507ab1
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,25 @@
+Source: htmlmin
+Maintainer: Adrian Vondendriesch <adrian.vondendriesch at credativ.de>
+Section: python
+Priority: optional
+Build-Depends: dh-python, python-setuptools (>= 0.6b3), python3-setuptools, python-all (>= 2.6.6-3), python3-all, debhelper (>= 9), help2man
+Standards-Version: 3.9.8
+Homepage: https://htmlmin.readthedocs.org/en/latest/
+
+Package: python-htmlmin
+Architecture: all
+Depends: ${misc:Depends}, ${python:Depends}
+Description: HTML Minifier
+ htmlmin is a configurable HTML Minifier with safety features.
+
+Package: python3-htmlmin
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends}
+Description: HTML Minifier
+ htmlmin is a configurable HTML Minifier with safety features.
+
+Package: htmlmin
+Architecture: all
+Depends: ${misc:Depends}, ${python:Depends}, python, python-htmlmin
+Description: HTML Minifier
+ htmlmin is a configurable HTML Minifier with safety features.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..8f110d8
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,35 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: htmlmin
+Upstream-Contact: Dave Mankoff <mankyd at gmail.com>
+Source: https://github.com/mankyd/htmlmin
+
+Files: *
+Copyright: 2013-2017, Dave Mankoff
+License: BSD-3-clause
+
+Files: debian/*
+Copyright: 2017, Adrian Vondendriesch
+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:
+     * 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.
+     * Neither the name of Hamid Feizabadi 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 Hamid Feizabadi 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/rules b/debian/rules
new file mode 100755
index 0000000..5fa6220
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,33 @@
+#!/usr/bin/make -f
+
+
+DEB_UPSTREAM_VERSION ?= $(shell dpkg-parsechangelog \
+	| sed -rne 's/^Version: ([0-9.]+)[-+].*$$/\1/p')
+
+export PYBUILD_NAME=htmlmin
+%:
+	dh $@ --with python2,python3 --buildsystem=pybuild
+
+override_dh_auto_test:
+	# the specified tests (setup.py) does not exists
+
+override_dh_python3:
+	# No Python 3 cli script.
+	rm -rf debian/python3-htmlmin/usr/bin
+	dh_python3
+
+override_dh_auto_install:
+	dh_auto_install
+	# Use the separate binary package for the cli script.
+	mkdir -p debian/htmlmin/usr/bin
+	mv debian/python-htmlmin/usr/bin/htmlmin \
+	   debian/htmlmin/usr/bin
+	rm -rf debian/python-htmlmin/usr/bin
+
+override_dh_installman:
+	mkdir -p debian/htmlmin/usr/share/man/man1/
+	PYTHONPATH=. help2man --version-string $(DEB_UPSTREAM_VERSION) \
+		--no-info \
+		--name "htmlmin is a configurable HTML Minifier with safety features." \
+		debian/htmlmin/usr/bin/htmlmin > \
+		debian/htmlmin/usr/share/man/man1/htmlmin.1
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..631a2a4
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+# please also check http://pypi.debian.net/htmlmin/watch
+version=3
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+http://pypi.debian.net/htmlmin/htmlmin-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))
\ No newline at end of file

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/htmlmin.git



More information about the Python-modules-commits mailing list