--- uriparser-0.6.0.orig/debian/control +++ uriparser-0.6.0/debian/control @@ -0,0 +1,38 @@ +Source: uriparser +Section: libs +Priority: optional +Maintainer: Debian Xiph.org Maintainers +Build-Depends: autotools-dev, debhelper +Standards-Version: 3.7.2 +Uploaders: Adeodato Simó +Homepage: http://uriparser.sourceforge.net +XS-VCS-Bzr: http://bzr.debian.org/bzr/pkg-xiph/uriparser + +Package: liburiparser1 +Architecture: any +Depends: ${shlibs: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 and locate resources, like http://www.debian.org or + 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}), ${shlibs: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. --- uriparser-0.6.0.orig/debian/rules +++ uriparser-0.6.0/debian/rules @@ -0,0 +1,114 @@ +#! /usr/bin/make -f + +### + +# Configure arguments + +confflags = --prefix=/usr + +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 + +### + +# Directory to make the build on + +objdir = $(CURDIR)/obj-$(DEB_HOST_GNU_TYPE) + +### + +# CFLAGS + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +### + +configure: configure-stamp +configure-stamp: + dh_testdir + + ln -sf /usr/share/misc/config.sub . + ln -sf /usr/share/misc/config.guess . + + -mkdir $(objdir) + cd $(objdir) && \ + env CFLAGS="$(CFLAGS)" ../configure $(confflags) + + touch $@ + +# + +build: build-stamp +build-stamp: configure-stamp + cd $(objdir) && \ + $(MAKE) all check + + touch $@ + +# + +clean: + dh_testdir + dh_testroot + + rm -f configure-stamp build-stamp install-stamp + rm -f config.guess config.sub + rm -rf $(objdir) + + dh_clean + +# + +install: install-stamp +install-stamp: + dh_testdir + dh_testroot + dh_clean + dh_installdirs + cd $(objdir) && $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp + dh_install --list-missing + nm -D $(CURDIR)/debian/tmp/usr/lib/liburiparser.so.1 | awk '/ T / {print $$3}' | env LC_ALL=C sort | diff $(CURDIR)/debian/liburiparser1.symbols - + touch $@ + +# + +binary: binary-arch + +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs + dh_installexamples + dh_installmime + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs -V 'liburiparser1' + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-indep: + @echo "Nothing to do." + +# + +.PHONY: configure build clean install binary binary-arch binary-indep --- uriparser-0.6.0.orig/debian/liburiparser1.install +++ uriparser-0.6.0/debian/liburiparser1.install @@ -0,0 +1,2 @@ +debian/tmp/usr/lib/liburiparser.so.1 +debian/tmp/usr/lib/liburiparser.so.1.* --- uriparser-0.6.0.orig/debian/changelog +++ uriparser-0.6.0/debian/changelog @@ -0,0 +1,8 @@ +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ó Wed, 19 Sep 2007 21:07:20 +0200 --- uriparser-0.6.0.orig/debian/prune-tarball.sh +++ uriparser-0.6.0/debian/prune-tarball.sh @@ -0,0 +1,24 @@ +#! /bin/bash + +set -e + +if [ ! -r "$1" ]; then + echo >&2 "E: need an existing tarball as the first argument." + exit 1 +fi + +TMP_DIR=`mktemp -d` +TARBALL_NAME="`basename $1`" +trap "rm -rf $TMP_DIR" 0 + +tar xCf "$TMP_DIR" "$1" +rm "$TMP_DIR"/*/doc/rfc{3986,3513}.htm +rm "$TMP_DIR"/*/doc/rfc3986_grammar_only.txt + +( +cd "$TMP_DIR" +tar czf "$TARBALL_NAME" * +) + +mv "$1" "$1.bak" +mv "$TMP_DIR/$TARBALL_NAME" `dirname "$1"` --- uriparser-0.6.0.orig/debian/compat +++ uriparser-0.6.0/debian/compat @@ -0,0 +1 @@ +5 --- uriparser-0.6.0.orig/debian/liburiparser-dev.install +++ uriparser-0.6.0/debian/liburiparser-dev.install @@ -0,0 +1,3 @@ +debian/tmp/usr/lib/liburiparser.a +debian/tmp/usr/lib/liburiparser.so +debian/tmp/usr/include/uriparser/*.h --- uriparser-0.6.0.orig/debian/liburiparser1.symbols +++ uriparser-0.6.0/debian/liburiparser1.symbols @@ -0,0 +1,67 @@ +_fini +_init +uriAddBaseUriA +uriAddBaseUriW +uriCopyAuthorityA +uriCopyAuthorityW +uriCopyPathA +uriCopyPathW +uriEqualsUriA +uriEqualsUriW +uriEscapeA +uriEscapeExA +uriEscapeExW +uriEscapeW +uriFixAmbiguityA +uriFixAmbiguityW +uriFreeUriMembersA +uriFreeUriMembersW +uriGetOctetValue +uriHexToLetterA +uriHexToLetterW +uriHexdigToIntA +uriHexdigToIntW +uriIsHostSetA +uriIsHostSetW +uriIsUnreserved +uriNormalizeSyntaxA +uriNormalizeSyntaxExA +uriNormalizeSyntaxExW +uriNormalizeSyntaxMaskRequiredA +uriNormalizeSyntaxMaskRequiredW +uriNormalizeSyntaxW +uriParseIpFourAddressA +uriParseIpFourAddressW +uriParseUriA +uriParseUriExA +uriParseUriExW +uriParseUriW +uriPushToStack +uriRemoveBaseUriA +uriRemoveBaseUriW +uriRemoveDotSegmentsA +uriRemoveDotSegmentsW +uriResetUriA +uriResetUriW +uriStackToOctet +uriToStringA +uriToStringCharsRequiredA +uriToStringCharsRequiredW +uriToStringW +uriUnescapeInPlaceA +uriUnescapeInPlaceExA +uriUnescapeInPlaceExW +uriUnescapeInPlaceW +uriUnixFilenameToUriStringA +uriUnixFilenameToUriStringW +uriUriStringToUnixFilenameA +uriUriStringToUnixFilenameW +uriUriStringToWindowsFilenameA +uriUriStringToWindowsFilenameW +uriWindowsFilenameToUriStringA +uriWindowsFilenameToUriStringW +uriWriteQuadToDoubleByte +uri_TESTING_ONLY_ParseIpFourA +uri_TESTING_ONLY_ParseIpFourW +uri_TESTING_ONLY_ParseIpSixA +uri_TESTING_ONLY_ParseIpSixW --- uriparser-0.6.0.orig/debian/copyright +++ uriparser-0.6.0/debian/copyright @@ -0,0 +1,30 @@ +Debianized by Adeodato Simó 2007-09-19 + +The sources of uriparser can be downloaded from: + + http://sourceforge.net/project/showfiles.php?group_id=182840 + +And the project homepage is: + + http://uriparser.sourceforge.net + +Upstream authors: + + Weijia Song + Sebastian Pipping + +Copyright and license terms: + + - The sources of uriparser are: + + | Copyright (C) 2007 Weijia Song + | Copyright (C) 2007 Sebastian Pipping + + And licensed under the terms of the BSD license. On Debian systems, the + full text of the BSD License is available in /usr/share/common-licenses/BSD. + + - The packaging scripts in the debian/ subdirectory are: + + | Copyright (c) 2007 Adeodato Simó + + And licensed under the same terms of uriparser itself. --- uriparser-0.6.0.orig/debian/README.Debian-source +++ uriparser-0.6.0/debian/README.Debian-source @@ -0,0 +1,7 @@ +The tarball distributed by Debian is a modified version of the tarball +provided by upstream, where the files rfc3986.htm, rfc3513.htm, and +rfc3986_grammar_only.txt have been removed from the doc/ subdirectory +because they're not available under a DFSG-compliant license. + +A script to automatically perform these removals is provided in +debian/prune-tarball.sh. --- uriparser-0.6.0.orig/Makefile.am +++ uriparser-0.6.0/Makefile.am @@ -21,7 +21,7 @@ -liburiparser_la_CFLAGS = -Iinclude +liburiparser_la_CFLAGS = -I$(srcdir)/include liburiparser_la_LDFLAGS = -version-info 1:0:0 liburiparser_la_SOURCES = \ @@ -45,7 +45,7 @@ -test_uriparser_test_CPPFLAGS = -Iinclude +test_uriparser_test_CPPFLAGS = -I$(srcdir)/include test_uriparser_test_LDADD = liburiparser.la test_uriparser_test_SOURCES = \ --- uriparser-0.6.0.orig/Makefile.in +++ uriparser-0.6.0/Makefile.in @@ -248,7 +248,7 @@ include/uriparser/UriDefsUnicode.h \ include/uriparser/UriIp4.h -liburiparser_la_CFLAGS = -Iinclude +liburiparser_la_CFLAGS = -I$(srcdir)/include liburiparser_la_LDFLAGS = -version-info 1:0:0 liburiparser_la_SOURCES = \ lib/UriCommon.c \ @@ -269,7 +269,7 @@ lib/UriResolve.c \ lib/UriShorten.c -test_uriparser_test_CPPFLAGS = -Iinclude +test_uriparser_test_CPPFLAGS = -I$(srcdir)/include test_uriparser_test_LDADD = liburiparser.la test_uriparser_test_SOURCES = \ test/CppTest/collectoroutput.cpp \