Created
May 30, 2017 10:13
-
-
Save alex-eri/909226de0e849337e9ed52f9a666f993 to your computer and use it in GitHub Desktop.
wkhtmltopdf debian for dpkg-buildpackage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/debian/README.Debian b/debian/README.Debian | |
new file mode 100644 | |
index 0000000..8737890 | |
--- /dev/null | |
+++ b/debian/README.Debian | |
@@ -0,0 +1,11 @@ | |
+Wkhtmltopdf without X server | |
+---------------------------- | |
+ | |
+Due to its dependency on Qt-WebKit, wkhtmltopdf requires an X11 server to | |
+run. If you want to provide an automated service or use wkhtmltopdf from a | |
+webserver, it could be convenient to use a virtual X11 server (like Xvfb). | |
+The xvfb Debian package contains a wrapper which makes it trivial: | |
+ | |
+ xvfb-run -- wkhtmltopdf [options] | |
+ | |
+ -- Cyril Brulebois <kibi@debian.org>, Mon, 7 Feb 2011 01:11:31 +0100 | |
diff --git a/debian/README.source b/debian/README.source | |
new file mode 100644 | |
index 0000000..79bb357 | |
--- /dev/null | |
+++ b/debian/README.source | |
@@ -0,0 +1,13 @@ | |
+wkhtmltopdf for Debian | |
+---------------------- | |
+ | |
+This package uses quilt to manage all modifications to the upstream | |
+source. Changes are stored in the source package as diffs in | |
+debian/patches and applied during the build. Please see: | |
+ | |
+ /usr/share/doc/quilt/README.source | |
+ | |
+for more information on how to apply the patches, modify patches, or | |
+remove a patch. | |
+ | |
+ -- Emmanuel Bouthenot <kolter@debian.org> Sat, 16 Jan 2010 14:12:12 +0000 | |
diff --git a/debian/changelog b/debian/changelog | |
new file mode 100644 | |
index 0000000..9fc5d5a | |
--- /dev/null | |
+++ b/debian/changelog | |
@@ -0,0 +1,159 @@ | |
+wkhtmltopdf (0.12.git-1) unstable; urgency=medium | |
+ | |
+ * Master version | |
+ | |
+ -- Aleksandr Stepanov <alex-eri@ya.ru> Tue, 30 May 2017 09:20:02 +0000 | |
+ | |
+wkhtmltopdf (0.12.1-2) unstable; urgency=medium | |
+ | |
+ * Add a patch to explicitely include QPrinter Support in build process | |
+ (Closes: #763216) | |
+ | |
+ -- Emmanuel Bouthenot <kolter@debian.org> Sun, 28 Sep 2014 19:53:07 +0200 | |
+ | |
+wkhtmltopdf (0.12.1-1) unstable; urgency=medium | |
+ | |
+ * New upstream release | |
+ - Refresh patches and remove patches merged upstream | |
+ - Adjust packaging to build manpages | |
+ * Build against QT5 instead of QT4 | |
+ * Fixes in the LGPL-3 notice (debian/copyright) | |
+ * Move xserver Suggests to Recommends (Closes: #580226) | |
+ | |
+ -- Emmanuel Bouthenot <kolter@debian.org> Sun, 24 Aug 2014 18:42:45 +0200 | |
+ | |
+wkhtmltopdf (0.12.0-2) unstable; urgency=medium | |
+ | |
+ * Fix the watch file (source code is now located at github) | |
+ * Fix debian/copyright (license is LGPL-3, not GPL-3) | |
+ | |
+ -- Emmanuel Bouthenot <kolter@debian.org> Wed, 26 Mar 2014 20:16:57 +0100 | |
+ | |
+wkhtmltopdf (0.12.0-1) unstable; urgency=low | |
+ | |
+ * New upstream release (Closes: #679755) | |
+ * Add patches to fix build failures and disable linking against the | |
+ shared library which is not mature enough to be packaged. Thanks to | |
+ Ashish Kulkarni for the patches. | |
+ * Add a patch to remove the git hash from the version | |
+ * Add a patch to fix some typos | |
+ * debian/control updates: | |
+ - update Homepage field | |
+ - update short and extended descriptions | |
+ - fix Vcs-Browser field | |
+ * Update debian/copyright according to the new release (switch to | |
+ DEP5 format) | |
+ * Bump Standards-Version to 3.9.5 | |
+ | |
+ -- Emmanuel Bouthenot <kolter@debian.org> Tue, 25 Mar 2014 22:32:59 +0100 | |
+ | |
+wkhtmltopdf (0.9.9-4) unstable; urgency=low | |
+ | |
+ * Fix a FTBFS triggered by a arch:any rebuild (Closes: #666321) | |
+ * Fix typo in debian/control (long description) | |
+ * Bump Standards-Version to 3.9.3 | |
+ * Switch debhelper compat to v9 | |
+ * Enabling hardened build flags | |
+ | |
+ -- Emmanuel Bouthenot <kolter@debian.org> Mon, 02 Apr 2012 20:23:26 +0000 | |
+ | |
+wkhtmltopdf (0.9.9-3) unstable; urgency=low | |
+ | |
+ [ Cyril Brulebois ] | |
+ * Mention xvfb-run in README.Debian, which makes it trivial to run | |
+ wkhtmltopdf without X (Closes: #612235). | |
+ | |
+ [ Emmanuel Bouthenot ] | |
+ * Convert patches to dep3 format. | |
+ * Add a missing dependency on libqtwebkit-dev (due to the recent split of | |
+ libqt4-dev) to fix a FTBFS (Closes: #618226). | |
+ | |
+ -- Emmanuel Bouthenot <kolter@debian.org> Thu, 24 Feb 2011 21:27:20 +0000 | |
+ | |
+wkhtmltopdf (0.9.9-2) unstable; urgency=low | |
+ | |
+ * Add a patch to fix --encoding option (Closes: #599421). | |
+ * Bump Standards-Version to 3.9.1. | |
+ * Fix Vcs-Browser url. | |
+ | |
+ -- Emmanuel Bouthenot <kolter@debian.org> Tue, 12 Oct 2010 20:42:47 +0000 | |
+ | |
+wkhtmltopdf (0.9.9-1) unstable; urgency=low | |
+ | |
+ * New upstream release (Closes: #581799) | |
+ * Fix debian/watch (take into account GoogleCode changes) | |
+ * Switch to dpkg-source 3.0 (quilt) format | |
+ * Add a patch to fix some typos. | |
+ | |
+ -- Emmanuel Bouthenot <kolter@debian.org> Wed, 26 May 2010 20:25:29 +0000 | |
+ | |
+wkhtmltopdf (0.9.5-1) unstable; urgency=low | |
+ | |
+ * New upstream release | |
+ | |
+ -- Emmanuel Bouthenot <kolter@debian.org> Mon, 22 Mar 2010 19:11:21 +0000 | |
+ | |
+wkhtmltopdf (0.9.4-1) unstable; urgency=low | |
+ | |
+ * New upstream release | |
+ * Minor debian/copyright updates | |
+ | |
+ -- Emmanuel Bouthenot <kolter@debian.org> Thu, 11 Mar 2010 13:40:56 +0000 | |
+ | |
+wkhtmltopdf (0.9.2-1) unstable; urgency=low | |
+ | |
+ * New upstream release | |
+ * Bump Standards-Version to 3.8.4 (no changes) | |
+ | |
+ -- Emmanuel Bouthenot <kolter@debian.org> Wed, 24 Feb 2010 01:00:06 +0100 | |
+ | |
+wkhtmltopdf (0.9.1-1) unstable; urgency=low | |
+ | |
+ * New upstream release | |
+ * Remove patch about manpage fixes (merged upstream) | |
+ | |
+ -- Emmanuel Bouthenot <kolter@debian.org> Thu, 28 Jan 2010 19:48:59 +0000 | |
+ | |
+wkhtmltopdf (0.9.0-1) unstable; urgency=low | |
+ | |
+ * New upstream release (Closes: #551848) | |
+ * Add a patch to fix bugs with the manpage: | |
+ - hyphen used as minus sign | |
+ - standardization of the NAME section | |
+ * Add a README.source file about quilt usage with Debian patches. | |
+ * Bump Standards-Version to 3.8.3 | |
+ * Maintainer became Debian Developer: adjust email, VCS and DM fields. | |
+ | |
+ -- Emmanuel Bouthenot <kolter@debian.org> Sat, 16 Jan 2010 11:43:12 +0000 | |
+ | |
+wkhtmltopdf (0.8.3-1) unstable; urgency=low | |
+ | |
+ * New upstream release | |
+ * Remove the patch which fix a segfault during start-up (fixed upstream). | |
+ | |
+ -- Emmanuel Bouthenot <kolter@openics.org> Thu, 06 Aug 2009 12:03:29 +0000 | |
+ | |
+wkhtmltopdf (0.8.2-1) unstable; urgency=low | |
+ | |
+ * New upstream release | |
+ * Update debian/copyright: manpage is no longer under GFDL. | |
+ * Update debian/control: bump Standards-Version to 3.8.2 | |
+ * Add a patch (backported from svn trunk) to fix a segfault during | |
+ start-up. | |
+ | |
+ -- Emmanuel Bouthenot <kolter@openics.org> Mon, 13 Jul 2009 22:58:55 +0000 | |
+ | |
+wkhtmltopdf (0.8.0-1) unstable; urgency=low | |
+ | |
+ * New upstream release. | |
+ * Upload to unstable. | |
+ * Improve debian/rules using dh7 overrides (update debhelper dependency | |
+ accordingly). | |
+ | |
+ -- Emmanuel Bouthenot <kolter@openics.org> Wed, 20 May 2009 21:31:18 +0200 | |
+ | |
+wkhtmltopdf (0.7.5-1) experimental; urgency=low | |
+ | |
+ * Initial release (Closes: #514422) | |
+ | |
+ -- Emmanuel Bouthenot <kolter@openics.org> Wed, 29 Apr 2009 13:54:39 +0000 | |
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..7c11cab | |
--- /dev/null | |
+++ b/debian/control | |
@@ -0,0 +1,29 @@ | |
+Source: wkhtmltopdf | |
+Section: utils | |
+Priority: extra | |
+Maintainer: Emmanuel Bouthenot <kolter@debian.org> | |
+Build-Depends: | |
+ debhelper (>= 9), | |
+ qt5-qmake, | |
+ qtbase5-dev, | |
+ libqt5webkit5-dev, | |
+ libqt5svg5-dev, | |
+ libqt5xmlpatterns5-dev, | |
+ qtquick1-5-dev, | |
+ qtdeclarative5-dev, | |
+ libqt5opengl5-dev | |
+Standards-Version: 3.9.5 | |
+Homepage: http://wkhtmltopdf.org/ | |
+Vcs-Git: git://anonscm.debian.org/users/kolter/wkhtmltopdf.git | |
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=users/kolter/wkhtmltopdf.git | |
+ | |
+Package: wkhtmltopdf | |
+Architecture: any | |
+Depends: ${shlibs:Depends}, ${misc:Depends} | |
+Recommends: xserver | xvfb | |
+Description: Command line utilities to convert html to pdf or image using WebKit | |
+ wkhtmltopdf is a command line program which permits one to create a | |
+ pdf or an image from an url, a local html file or stdin. It produces a pdf or | |
+ an image like rendred with the WebKit engine. | |
+ . | |
+ This program requires an X11 server to run. | |
diff --git a/debian/copyright b/debian/copyright | |
new file mode 100644 | |
index 0000000..6686de3 | |
--- /dev/null | |
+++ b/debian/copyright | |
@@ -0,0 +1,54 @@ | |
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ | |
+Upstream-Name: wkhtmltopdf | |
+Source: https://github.com/wkhtmltopdf/wkhtmltopdf | |
+ | |
+Files: * | |
+Copyright: 2006-2014, Jakob Truelsen <antialize@gmail.com> | |
+ 2006-2014, Jan Habermann <jan@habermann24.com> | |
+ 2006-2014, Ashish Kulkarni <kulkarni.ashish@gmail.com> | |
+ 2006-2014, Pablo Ruiz García <pablo.ruiz@gmail.com> | |
+ 2006-2014, Trevor North <trevor@blubolt.com> | |
+ 2006-2014, pussbb <pussbb@gmail.com> | |
+ 2006-2014, Nate Pinchot <nate.pinchot@gmail.com> | |
+ 2006-2014, Kasper F. Brandt <poizan@poizan.dk> | |
+ 2006-2014, peterrehm <peter.rehm@renvest.de> | |
+ 2006-2014, Ruslan Grabovoy <kudgo.test@gmail.com> | |
+ 2006-2014, Renan Gonçalves <renan.saddam@gmail.com> | |
+ 2006-2014, Douglas Bagnall <douglas@paradise.net.nz> | |
+ 2006-2014, Christian Sciberras <uuf6429@gmail.com> | |
+ 2006-2014, Aaron Stone <aaron@serendipity.cx> | |
+ 2006-2014, Костадин Дамянов <maxmight@gmail.com> | |
+ 2006-2014, rainabba | |
+ 2006-2014, Todd Fisher <todd.fisher@gmail.com> | |
+ 2006-2014, Tobin Juday <tobinibot@gmail.com> | |
+ 2006-2014, Sven Nierlein <sven@nierlein.org> | |
+ 2006-2014, Steve Shreeve <steve.shreeve@gmail.com> | |
+ 2006-2014, Sem <spam@esemi.ru> | |
+ 2006-2014, Pankaj Jangid <pankaj.jangid@gmail.com> | |
+ 2006-2014, Oleg Kostyuk <cub.uanic@gmail.com> | |
+ 2006-2014, Nolan Neustaeter <github@noolan.ca> | |
+ 2006-2014, Matthieu Bontemps <matthieu.bontemps@gmail.com> | |
+ 2006-2014, Kurt Revis <krevis@snoize.com> | |
+ 2006-2014, Erling Linde <erlingwl@gmail.com> | |
+ 2006-2014, Bill Kuker <bkuker@billkuker.com> | |
+ 2006-2014, Benoit Garret <benoit.garret@gmail.com> | |
+ 2006-2014, Adam Thorsen <adam.thorsen@gmail.com> | |
+License: LGPL-3 | |
+ | |
+Files: debian/* | |
+Copyright: 2008-2014, Emmanuel Bouthenot <kolter@debian.org> | |
+License: LGPL-3 | |
+ | |
+License: LGPL-3 | |
+ This program 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 3 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 Lesser General Public License for more | |
+ details. | |
+ . | |
+ On Debian systems, the complete text of the GNU Lesser General Public License, | |
+ Version 3 can be found in the file /usr/share/common-licenses/LGPL-3 | |
diff --git a/debian/dirs b/debian/dirs | |
new file mode 100644 | |
index 0000000..527b78f | |
--- /dev/null | |
+++ b/debian/dirs | |
@@ -0,0 +1,2 @@ | |
+usr/bin | |
+usr/lib | |
diff --git a/debian/docs b/debian/docs | |
new file mode 100644 | |
index 0000000..b43bf86 | |
--- /dev/null | |
+++ b/debian/docs | |
@@ -0,0 +1 @@ | |
+README.md | |
diff --git a/debian/files b/debian/files | |
new file mode 100644 | |
index 0000000..d6f90de | |
--- /dev/null | |
+++ b/debian/files | |
@@ -0,0 +1 @@ | |
+wkhtmltopdf_0.12.git-1_amd64.deb utils extra | |
diff --git a/debian/gbp.conf b/debian/gbp.conf | |
new file mode 100644 | |
index 0000000..40764be | |
--- /dev/null | |
+++ b/debian/gbp.conf | |
@@ -0,0 +1,5 @@ | |
+[DEFAULT] | |
+upstream-branch = upstream | |
+debian-branch = unstable | |
+upstream-tag = %(version)s | |
+compression = xz | |
diff --git a/debian/install b/debian/install | |
new file mode 100644 | |
index 0000000..a527174 | |
--- /dev/null | |
+++ b/debian/install | |
@@ -0,0 +1,3 @@ | |
+bin/wkhtmltopdf usr/bin | |
+bin/wkhtmltoimage usr/bin | |
+bin/libwkhtmltox.so.* usr/lib | |
diff --git a/debian/rules b/debian/rules | |
new file mode 100755 | |
index 0000000..54f4568 | |
--- /dev/null | |
+++ b/debian/rules | |
@@ -0,0 +1,21 @@ | |
+#!/usr/bin/make -f | |
+ | |
+override_dh_auto_configure: | |
+ /usr/lib/$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)/qt5/bin/qmake \ | |
+ -makefile -nocache \ | |
+ QMAKE_CFLAGS_RELEASE="$(CFLAGS) $(CPPFLAGS)" \ | |
+ QMAKE_CXXFLAGS_RELEASE="$(CXXFLAGS) $(CPPFLAGS)" \ | |
+ QMAKE_LFLAGS_RELEASE="$(LDFLAGS)" | |
+ | |
+override_dh_auto_install: | |
+ # skip auto install and build/install manpages separately | |
+ $(MAKE) -C src/pdf install_man INSTALL_ROOT=$(CURDIR)/debian/wkhtmltopdf/usr | |
+ $(MAKE) -C src/image install_man INSTALL_ROOT=$(CURDIR)/debian/wkhtmltopdf/usr | |
+ | |
+clean: | |
+# # Binaries not removed properly | |
+ rm -rf bin | |
+ dh $@ | |
+ | |
+%: | |
+ dh $@ --parallel | |
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..709c8f3 | |
--- /dev/null | |
+++ b/debian/watch | |
@@ -0,0 +1,2 @@ | |
+version=3 | |
+https://github.com/wkhtmltopdf/wkhtmltopdf/tags .*/v?(\d[\d\.]+)\.tar\.gz | |
diff --git a/debian/wkhtmltopdf.debhelper.log b/debian/wkhtmltopdf.debhelper.log | |
new file mode 100644 | |
index 0000000..31b6f55 | |
--- /dev/null | |
+++ b/debian/wkhtmltopdf.debhelper.log | |
@@ -0,0 +1,22 @@ | |
+dh_auto_configure | |
+dh_auto_build | |
+dh_auto_test | |
+dh_prep | |
+dh_installdirs | |
+dh_auto_install | |
+dh_install | |
+dh_installdocs | |
+dh_installchangelogs | |
+dh_installman | |
+dh_perl | |
+dh_link | |
+dh_compress | |
+dh_fixperms | |
+dh_strip | |
+dh_makeshlibs | |
+dh_shlibdeps | |
+dh_installdeb | |
+dh_gencontrol | |
+dh_md5sums | |
+dh_builddeb | |
+dh_builddeb | |
diff --git a/debian/wkhtmltopdf.postinst.debhelper b/debian/wkhtmltopdf.postinst.debhelper | |
new file mode 100644 | |
index 0000000..3d89d3e | |
--- /dev/null | |
+++ b/debian/wkhtmltopdf.postinst.debhelper | |
@@ -0,0 +1,5 @@ | |
+# Automatically added by dh_makeshlibs | |
+if [ "$1" = "configure" ]; then | |
+ ldconfig | |
+fi | |
+# End automatically added section | |
diff --git a/debian/wkhtmltopdf.postrm.debhelper b/debian/wkhtmltopdf.postrm.debhelper | |
new file mode 100644 | |
index 0000000..7f44047 | |
--- /dev/null | |
+++ b/debian/wkhtmltopdf.postrm.debhelper | |
@@ -0,0 +1,5 @@ | |
+# Automatically added by dh_makeshlibs | |
+if [ "$1" = "remove" ]; then | |
+ ldconfig | |
+fi | |
+# End automatically added section | |
diff --git a/debian/wkhtmltopdf.substvars b/debian/wkhtmltopdf.substvars | |
new file mode 100644 | |
index 0000000..2edc0d1 | |
--- /dev/null | |
+++ b/debian/wkhtmltopdf.substvars | |
@@ -0,0 +1,2 @@ | |
+shlibs:Depends=libc6 (>= 2.14), libgcc1 (>= 1:4.1.1), libgl1-mesa-glx | libgl1, libqt5core5a (>= 5.0.2), libqt5gui5 (>= 5.2.0), libqt5network5 (>= 5.0.2), libqt5printsupport5 (>= 5.2.0), libqt5svg5 (>= 5.0.2), libqt5webkit5 (>= 5.0.2), libqt5widgets5 (>= 5.0.2), libqt5xmlpatterns5 (>= 5.0.2), libstdc++6 (>= 4.1.1), wkhtmltopdf | |
+misc:Depends= |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment