summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog174
-rw-r--r--debian/compat1
-rw-r--r--debian/control66
-rw-r--r--debian/copyright84
-rw-r--r--debian/liburiparser-dev.install2
-rwxr-xr-xdebian/liburiparser-dev.links3
-rw-r--r--debian/liburiparser-doc.dirs1
-rw-r--r--debian/liburiparser-doc.doc-base7
-rw-r--r--debian/liburiparser-doc.lintian-overrides7
-rw-r--r--debian/liburiparser1.install1
-rw-r--r--debian/liburiparser1.symbols104
-rwxr-xr-xdebian/rules43
-rw-r--r--debian/source/format1
-rw-r--r--debian/upstream/metadata6
-rw-r--r--debian/watch4
15 files changed, 504 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..481bb31
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,174 @@
+uriparser (0.8.4-1) unstable; urgency=medium
+
+ * New upstream release.
+ * debian/liburiparser-dev.links:
+ - Bump library version to 1.0.20.
+ * Add package liburiparser-doc:
+ - debian/rules:
+ + Add override_dh_auto_build-indep and override_dh_installdocs-indep
+ to handle the build and install the html documentation.
+ - debian/control:
+ + Add Build-Depends-Indep.
+ + Add new package liburiparser-doc.
+ - New debian/liburiparser-doc.doc-base.
+ - New debian/liburiparser-doc.dirs.
+ * New debian/liburiparser-doc.lintian-overrides to override the lintian
+ warning "embedded-javascript-library".
+ * debian/copyright:
+ - Change GPL-3.0+ to GPL-3+.
+ - Change Upstream Mail Address to Sebastian Pipping <webmaster@hartwork.org>
+ * debian/rules:
+ - Add override_dh_compress to exclude *.qhp.
+ - Remove -c0 from dh_makeshlibs call.
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Wed, 04 Nov 2015 07:02:13 +0100
+
+uriparser (0.8.3-1) unstable; urgency=low
+
+ * New upstream release.
+ * New debian/upstream/metadata:
+ - Add some DEP-12 upstream metadata.
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Wed, 07 Oct 2015 18:35:50 +0200
+
+uriparser (0.8.2-1) unstable; urgency=low
+
+ * New upstream release.
+ * debian/control:
+ - Bump Standards-Version to 3.9.6 (no changes required).
+ - Remove unknown substitution variable ${shlibs:Depends}
+ from liburiparser-dev.
+ * Refresh debian/liburiparser1.symbols.
+ * Refresh link to usr/lib/liburiparser.so in liburiparser-dev.links.
+ * debian/copyright:
+ - Add License and author for the new files:
+ + test/VersionSuite.*.
+ * debian/source/options:
+ - Removed because xz is now standard compression.
+ * debian/rules:
+ - Enable hardening.
+ - Add override_dh_makeshlibs for testing symbols.
+ * Enable mulitarch:
+ - debian/rules:
+ + Add --libdir to confflags
+ - debian/liburiparser-dev.links:
+ + Add dh-exec shebang line.
+ + Add ${DEB_HOST_MULTIARCH}.
+ + make file executable.
+ - debian/*.install:
+ + Change the path (add /*/).
+ - debian/control:
+ + Add dh-exec (>=0.3) to Build-Depends.
+ + Add Pre-Depends: ${misc:Pre-Depends} to package liburiparser1.
+ + Add Multi-Arch: same to package liburiparser1.
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Tue, 28 Apr 2015 08:18:53 +0200
+
+uriparser (0.8.0.1-2) unstable; urgency=low
+
+ * debian/rules:
+ - Add --with autoreconf to enable update Build Environment
+ (Closes: #727517).
+ + Thanks to Breno Leitao <brenohl@br.ibm.com>
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Sat, 16 Aug 2014 09:30:15 +0200
+
+uriparser (0.8.0.1-1) unstable; urgency=medium
+
+ * New Maintainer (Closes: #754473).
+ * New upstream release (Closes: #668244).
+ - Remove nonfree items from source (Closes: #753833):
+ + doc/rfc3513.htm.
+ + doc/rfc3986.htm.
+ + doc/rfc3986_grammar_only.txt.
+ + Remove debian/prune-tarball.sh.
+ + Remove debian/README.Debian-source.
+ * debian/control:
+ - Set myself as maintainer.
+ - Bump Standards-Version to 3.9.5 (no changes required).
+ - Update Build-Depends:
+ + Add dh-autoreconf for update Build Environment (Closes: #727517).
+ - Change description of liburiparser1 (Closes: #552993).
+ - For previously not existing Vcs
+ + Create a new git repository on alioth.
+ + Add the Fields Vcs-Browser and Vcs-Git.
+ * Change debian/compat to 9 (no changes required).
+ * Add debian/source/options:
+ - Set compression to xz & compression-level to 9 to save space.
+ * debian/copyright:
+ - Rewrite into machine-readable format.
+ - Add myself to the list of authors for debian/*.
+ - Update copyright years for 2014.
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Wed, 06 Aug 2014 21:23:55 +0200
+
+uriparser (0.8.0+dfsg-1) UNRELEASED; urgency=medium
+
+ * Change debian/watch
+ - change upstream tarball to all filetypes.
+ * remove debian/rules.old
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Sat, 12 Jul 2014 05:09:11 +0200
+
+
+uriparser (0.7.5-1) unstable; urgency=low
+
+ * New upstream release.
+ * New maintainer. (Closes: #544633)
+ * Use more minimalistic approach to rules using debhelper 7.
+ * Add --disable-test to configure because cpptest-1.1.0 isn't packaged yet.
+ * Add --disable-doc to configure to prevent generation of api docs.
+ * Switch to dpkg-source 3.0 (quilt) format
+ * Update *.install files to more inclusive of files to install.
+ * Re-enable watch file, as it seems to work just fine with uscan.
+
+ -- Taylor LeMasurier-Wren <ripps818@gmail.com> Sat, 15 May 2010 13:47:20 -0500
+
+uriparser (0.7.4-2) unstable; urgency=low
+
+ * Bump to Standards-Version 3.8.2.
+ * Set maintainer to Debian QA Group.
+
+ -- Clint Adams <schizo@debian.org> Sat, 01 Aug 2009 01:12:33 -0400
+
+uriparser (0.7.4-1) unstable; urgency=low
+
+ * New upstream release. closes: #493073.
+ * Add myself to Uploaders.
+ * Bump to Standards-Version 3.8.0.
+ * debian/prune-tarball.sh: also remove RFC1866.
+
+ -- Clint Adams <schizo@debian.org> Sat, 14 Feb 2009 10:36:07 -0500
+
+uriparser (0.6.4-1) unstable; urgency=low
+
+ * New upstream release.
+ * Bump Standard-Versions to 3.7.3 (no changes needed).
+
+ -- Adeodato Simó <dato@net.com.org.es> Sun, 09 Mar 2008 11:54:35 +0100
+
+uriparser (0.6.3-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Adeodato Simó <dato@net.com.org.es> Mon, 11 Feb 2008 19:48:38 +0100
+
+uriparser (0.6.1-1) unstable; urgency=low
+
+ * New upstream version.
+
+ * Add a watch file.
+
+ * Convert debian/liburiparser1.symbols to be a dpkg-gensymbols file.
+ SymbolFile.pm blacklists arch-specific symbols, so this closes: #448959.
+
+ -- Adeodato Simó <dato@net.com.org.es> Wed, 26 Dec 2007 18:42:29 +0100
+
+uriparser (0.6.0-1) unstable; urgency=low
+
+ * Initial release. (Closes: #443222)
+
+ * Include in the .diff.gz hunks to allow building in a separate tree.
+ This will be fixed in the next upstream release.
+
+ -- Adeodato Simó <dato@net.com.org.es> Wed, 19 Sep 2007 21:07:20 +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..ec9ae66
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,66 @@
+Source: uriparser
+Section: libs
+Priority: optional
+Maintainer: Jörg Frings-Fürst <debian@jff-webhosting.net>
+Build-Depends:
+ debhelper (>= 9),
+ dh-autoreconf,
+ dh-exec (>=0.3)
+Build-Depends-Indep:
+ doxygen,
+ graphviz,
+ qttools5-dev-tools,
+ qtbase5-dev,
+ libqt5sql5-sqlite
+Standards-Version: 3.9.6
+Homepage: http://uriparser.sourceforge.net
+Vcs-Git: git://anonscm.debian.org/collab-maint/uriparser.git
+Vcs-Browser: http://anonscm.debian.org/cgit/collab-maint/uriparser.git
+
+Package: liburiparser1
+Architecture: any
+Multi-Arch: same
+Depends:
+ ${misc:Depends},
+ ${shlibs:Depends}
+Pre-Depends:
+ ${misc:Pre-Depends}
+Description: URI parsing library compliant with RFC 3986
+ uriparser is a library that parses Uniform Resource Identifiers (URIs),
+ strictly adhering to RFC 3986 where syntax for URIs is defined. URIs
+ are used to identify resources, like http://www.debian.org/ or
+ urn:isbn:0-395-36341-1.
+ .
+ uriparser has the following features:
+ .
+ * strictly compliant to RFC 3986, implementing:
+ + parsing
+ + reference resolution
+ + reference creation
+ + recomposition
+ + syntax-based normalization
+ * fast (linear input length time complexity)
+ * unicode support
+
+Package: liburiparser-dev
+Architecture: any
+Section: libdevel
+Depends:
+ liburiparser1 (= ${binary:Version}),
+ ${misc:Depends}
+Description: development files for uriparser
+ This package provides the development files for uriparser, a library to parse
+ Uniform Resource Identifiers (URIs). Install it if you want to compile a
+ program that makes use of this library.
+
+Package: liburiparser-doc
+Architecture: all
+Section: doc
+Depends:
+ ${misc:Depends}
+Description: documentation files for uriparser
+ uriparser is a library that parses Uniform Resource Identifiers (URIs),
+ strictly adhering to RFC 3986 where syntax for URIs is defined. URIs
+ are used to identify resources, like http://www.debian.org/ or
+ urn:isbn:0-395-36341-1. This package provides the documentation
+ files for uriparser.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..5d1d263
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,84 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: uriparser
+Source: http://uriparser.sourceforge.net
+
+Files: *
+Copyright: 2007 Weijia Song <songweijia@gmail.com>
+ 2008 Michael Anthony Puls II <shadow2531@gmail.com>
+ 2007-2015 Sebastian Pipping <webmaster@hartwork.org>
+ 2013 Radu Hociung <radu.uriparser@ohmi.org>
+License: BSD-3-clause
+
+Files: test/*
+Copyright: 2007 Weijia Song <songweijia@gmail.com>
+ 2007 Sebastian Pipping <webmaster@hartwork.org>
+License: LGPL-2.1+
+
+Files: test/VersionSuite.*
+Copyright: 2014-2015 Sebastian Pipping <webmaster@hartwork.org>
+License: LGPL-2.1+
+
+Files: debian/*
+Copyright: 2014-2015 Jörg Frings-Fürst <debian@jff-webhosting.net>
+License: GPL-3+
+
+License: BSD-3-clause
+ All rights reserved.
+ .
+ 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. The name of the author may not be used to endorse or promote products
+ derived from this software without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE REGENTS 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 REGENTS 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.
+
+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.
+ .
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ .
+ On Debian systems, the complete text of the GNU Lesser General
+ Public License can be found in `/usr/share/common-licenses/LGPL-2.1'
+
+License: GPL-3+
+ 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 3 of the License, or
+ (at your option) any later version.
+ .
+ This package 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 program. If not, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
diff --git a/debian/liburiparser-dev.install b/debian/liburiparser-dev.install
new file mode 100644
index 0000000..68e5a87
--- /dev/null
+++ b/debian/liburiparser-dev.install
@@ -0,0 +1,2 @@
+usr/include
+usr/lib/*/pkgconfig/*
diff --git a/debian/liburiparser-dev.links b/debian/liburiparser-dev.links
new file mode 100755
index 0000000..5ec7658
--- /dev/null
+++ b/debian/liburiparser-dev.links
@@ -0,0 +1,3 @@
+#! /usr/bin/dh-exec
+
+usr/lib/${DEB_HOST_MULTIARCH}/liburiparser.so.1.0.20 usr/lib/${DEB_HOST_MULTIARCH}/liburiparser.so
diff --git a/debian/liburiparser-doc.dirs b/debian/liburiparser-doc.dirs
new file mode 100644
index 0000000..14ce20b
--- /dev/null
+++ b/debian/liburiparser-doc.dirs
@@ -0,0 +1 @@
+/usr/share/doc/liburiparser-doc/html/
diff --git a/debian/liburiparser-doc.doc-base b/debian/liburiparser-doc.doc-base
new file mode 100644
index 0000000..3e3c089
--- /dev/null
+++ b/debian/liburiparser-doc.doc-base
@@ -0,0 +1,7 @@
+Document: liburiparser
+Title: liburiparserx Documentation
+Section: Network/Communication
+
+Format: HTML
+Index: /usr/share/doc/liburiparser-doc/html/index.html
+Files: /usr/share/doc/liburiparser-doc/html/*.html
diff --git a/debian/liburiparser-doc.lintian-overrides b/debian/liburiparser-doc.lintian-overrides
new file mode 100644
index 0000000..3b05f63
--- /dev/null
+++ b/debian/liburiparser-doc.lintian-overrides
@@ -0,0 +1,7 @@
+# The lintian warning "liburiparser-doc: embedded-javascript-library
+# usr/share/doc/liburiparser-doc/html/jquery.js please use libjs-jquery"
+# was overridden.
+# The file jquery.js comes from the with doxygen-generated documentation.
+# The built-in jquery.js in doxygen is not going to be removed (see Debian bug #736432).
+#
+liburiparser-doc binary: embedded-javascript-library
diff --git a/debian/liburiparser1.install b/debian/liburiparser1.install
new file mode 100644
index 0000000..3de3b10
--- /dev/null
+++ b/debian/liburiparser1.install
@@ -0,0 +1 @@
+usr/lib/*/*.so.*
diff --git a/debian/liburiparser1.symbols b/debian/liburiparser1.symbols
new file mode 100644
index 0000000..4e5f406
--- /dev/null
+++ b/debian/liburiparser1.symbols
@@ -0,0 +1,104 @@
+liburiparser.so.1 liburiparser1 #MINVER#
+ uriAddBaseUriA@Base 0.6.0
+ uriAddBaseUriExA@Base 0.8.1
+ uriAddBaseUriExW@Base 0.8.1
+ uriAddBaseUriW@Base 0.6.0
+ uriCompareRangeA@Base 0.8.1
+ uriCompareRangeW@Base 0.8.1
+ uriComposeQueryA@Base 0.7.2
+ uriComposeQueryCharsRequiredA@Base 0.7.2
+ uriComposeQueryCharsRequiredExA@Base 0.7.2
+ uriComposeQueryCharsRequiredExW@Base 0.7.2
+ uriComposeQueryCharsRequiredW@Base 0.7.2
+ uriComposeQueryExA@Base 0.7.2
+ uriComposeQueryExW@Base 0.7.2
+ uriComposeQueryMallocA@Base 0.7.2
+ uriComposeQueryMallocExA@Base 0.7.2
+ uriComposeQueryMallocExW@Base 0.7.2
+ uriComposeQueryMallocW@Base 0.7.2
+ uriComposeQueryW@Base 0.7.2
+ uriConstParentA@Base 0.6.0
+ uriConstParentW@Base 0.6.0
+ uriConstPwdA@Base 0.6.0
+ uriConstPwdW@Base 0.6.0
+ uriCopyAuthorityA@Base 0.6.0
+ uriCopyAuthorityW@Base 0.6.0
+ uriCopyPathA@Base 0.6.0
+ uriCopyPathW@Base 0.6.0
+ uriDissectQueryMallocA@Base 0.7.2
+ uriDissectQueryMallocExA@Base 0.7.2
+ uriDissectQueryMallocExW@Base 0.7.2
+ uriDissectQueryMallocW@Base 0.7.2
+ uriEqualsUriA@Base 0.6.0
+ uriEqualsUriW@Base 0.6.0
+ uriEscapeA@Base 0.6.0
+ uriEscapeExA@Base 0.6.0
+ uriEscapeExW@Base 0.6.0
+ uriEscapeW@Base 0.6.0
+ uriFixAmbiguityA@Base 0.6.0
+ uriFixAmbiguityW@Base 0.6.0
+ uriFixEmptyTrailSegmentA@Base 0.7.2
+ uriFixEmptyTrailSegmentW@Base 0.7.2
+ uriFreeQueryListA@Base 0.7.2
+ uriFreeQueryListW@Base 0.7.2
+ uriFreeUriMembersA@Base 0.6.0
+ uriFreeUriMembersW@Base 0.6.0
+ uriGetOctetValue@Base 0.6.0
+ uriHexToLetterA@Base 0.6.0
+ uriHexToLetterExA@Base 0.7.4
+ uriHexToLetterExW@Base 0.7.4
+ uriHexToLetterW@Base 0.6.0
+ uriHexdigToIntA@Base 0.6.0
+ uriHexdigToIntW@Base 0.6.0
+ uriIsHostSetA@Base 0.6.0
+ uriIsHostSetW@Base 0.6.0
+ uriIsUnreserved@Base 0.6.0
+ uriNormalizeSyntaxA@Base 0.6.0
+ uriNormalizeSyntaxExA@Base 0.6.0
+ uriNormalizeSyntaxExW@Base 0.6.0
+ uriNormalizeSyntaxMaskRequiredA@Base 0.6.0
+ uriNormalizeSyntaxMaskRequiredW@Base 0.6.0
+ uriNormalizeSyntaxW@Base 0.6.0
+ uriParseIpFourAddressA@Base 0.6.0
+ uriParseIpFourAddressW@Base 0.6.0
+ uriParseUriA@Base 0.6.0
+ uriParseUriExA@Base 0.6.0
+ uriParseUriExW@Base 0.6.0
+ uriParseUriW@Base 0.6.0
+ uriPushToStack@Base 0.6.0
+ uriRemoveBaseUriA@Base 0.6.0
+ uriRemoveBaseUriImplA@Base 0.7.2
+ uriRemoveBaseUriImplW@Base 0.7.2
+ uriRemoveBaseUriW@Base 0.6.0
+ uriRemoveDotSegmentsA@Base 0.6.0
+ uriRemoveDotSegmentsAbsoluteA@Base 0.6.4
+ uriRemoveDotSegmentsAbsoluteW@Base 0.6.4
+ uriRemoveDotSegmentsExA@Base 0.7.4
+ uriRemoveDotSegmentsExW@Base 0.7.4
+ uriRemoveDotSegmentsW@Base 0.6.0
+ uriResetUriA@Base 0.6.0
+ uriResetUriW@Base 0.6.0
+ uriSafeToPointToA@Base 0.6.0
+ uriSafeToPointToW@Base 0.6.0
+ uriStackToOctet@Base 0.6.0
+ uriToStringA@Base 0.6.0
+ uriToStringCharsRequiredA@Base 0.6.0
+ uriToStringCharsRequiredW@Base 0.6.0
+ uriToStringW@Base 0.6.0
+ uriUnescapeInPlaceA@Base 0.6.0
+ uriUnescapeInPlaceExA@Base 0.6.0
+ uriUnescapeInPlaceExW@Base 0.6.0
+ uriUnescapeInPlaceW@Base 0.6.0
+ uriUnixFilenameToUriStringA@Base 0.6.0
+ uriUnixFilenameToUriStringW@Base 0.6.0
+ uriUriStringToUnixFilenameA@Base 0.6.0
+ uriUriStringToUnixFilenameW@Base 0.6.0
+ uriUriStringToWindowsFilenameA@Base 0.6.0
+ uriUriStringToWindowsFilenameW@Base 0.6.0
+ uriWindowsFilenameToUriStringA@Base 0.6.0
+ uriWindowsFilenameToUriStringW@Base 0.6.0
+ uriWriteQuadToDoubleByte@Base 0.6.0
+ uri_TESTING_ONLY_ParseIpFourA@Base 0.6.0
+ uri_TESTING_ONLY_ParseIpFourW@Base 0.6.0
+ uri_TESTING_ONLY_ParseIpSixA@Base 0.6.0
+ uri_TESTING_ONLY_ParseIpSixW@Base 0.6.0
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..713b782
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,43 @@
+#!/usr/bin/make -f
+
+# hardening
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+# Configure arguments
+
+confflags = --prefix=/usr --disable-test --disable-doc --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)
+
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+confflags += --build $(DEB_BUILD_GNU_TYPE)
+
+# Only specify --host when cross-compiling
+ifneq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
+ confflags += --host $(DEB_HOST_GNU_TYPE)
+endif
+
+###
+
+%:
+ dh $@ --with autoreconf
+
+override_dh_auto_configure:
+ ./configure $(confflags)
+
+override_dh_auto_build-indep:
+ dh_auto_build
+ make -C doc
+
+override_dh_installdocs-indep:
+ cp -r $(CURDIR)/doc/html/* $(CURDIR)/debian/liburiparser-doc/usr/share/doc/liburiparser-doc/html/
+ $(RM) debian/liburiparser-doc/usr/share/doc/liburiparser-doc/html/*.md5
+ dh_installdocs
+
+UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -n '/\(Version:\)/{s/^Version:[[:space:]]\+\([0-9]\+:\)\?\(.*\)/\2/p}' | rev | cut -d- -f 2- | rev)
+
+override_dh_makeshlibs:
+ dh_makeshlibs -- -v$(UPSTREAM_VERSION) -Pdebian/liburiparser1 -pliburiparser1
+
+override_dh_compress:
+ dh_compress -X.qhp
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..965e62e
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,6 @@
+Bug-Database: http://sourceforge.net/p/uriparser/bugs/
+Bug-Submit: https://sourceforge.net/p/uriparser/bugs/new/
+Contact: https://sourceforge.net/p/uriparser/mailman/uriparser-users
+Name: uriparser
+Repository: git://git.code.sf.net/p/uriparser/git uriparser-git
+Repository-Browse: https://sourceforge.net/p/uriparser/git/ci/master/tree/
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..5641bc5
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=4
+opts=uversionmangle=s/_/./g;s/\.(rc\d*)$/~$1/ \
+ https://github.com/uriparser/uriparser/releases \
+ .*[^n]/(?:|v|version-|version|release-|r|REL_|rel-|uriparser(?:_|-))(\d[^\s/]*)\.(?:tar\.xz|txz|tar\.bz2|tbz2|tar\.gz|tgz)