From db1d0f189300601b2a80055e00b90f349998b021 Mon Sep 17 00:00:00 2001 From: Graham Inggs Date: Mon, 30 Mar 2020 09:12:49 +0100 Subject: [PATCH] Import utf8proc_2.5.0-1.debian.tar.xz [dgit import tarball utf8proc 2.5.0-1 utf8proc_2.5.0-1.debian.tar.xz] --- changelog | 125 +++++++++++++++++++++++++++++++++ control | 41 +++++++++++ copyright | 76 ++++++++++++++++++++ docs | 1 + gbp.conf | 2 + libutf8proc-dev.install | 3 + libutf8proc2.install | 1 + libutf8proc2.symbols | 30 ++++++++ patches/series | 1 + patches/use-unicode-data.patch | 51 ++++++++++++++ rules | 12 ++++ source/format | 1 + tests/Makefile | 43 ++++++++++++ tests/control | 3 + upstream/metadata | 3 + watch | 3 + 16 files changed, 396 insertions(+) create mode 100644 changelog create mode 100644 control create mode 100644 copyright create mode 100644 docs create mode 100644 gbp.conf create mode 100644 libutf8proc-dev.install create mode 100644 libutf8proc2.install create mode 100644 libutf8proc2.symbols create mode 100644 patches/series create mode 100644 patches/use-unicode-data.patch create mode 100755 rules create mode 100644 source/format create mode 100644 tests/Makefile create mode 100644 tests/control create mode 100644 upstream/metadata create mode 100644 watch diff --git a/changelog b/changelog new file mode 100644 index 0000000..79f2862 --- /dev/null +++ b/changelog @@ -0,0 +1,125 @@ +utf8proc (2.5.0-1) unstable; urgency=medium + + * New upstream release + * Refresh use-unicode-data.patch + * Build with unicode-data 13.0 (Closes: #954131) + * Set Rules-Requires-Root: no + * Add Build-Depends-Package to libutf8proc2.symbols + * Bump Standards-Version to 4.5.0, no changes + + -- Graham Inggs Mon, 30 Mar 2020 08:12:49 +0000 + +utf8proc (2.4.0-2) unstable; urgency=medium + + [ Debian Janitor ] + * Bump debhelper from old 11 to 12. + * Set upstream metadata fields: + Bug-Database, Repository, Repository-Browse. + * Update standards version to 4.4.1, no changes needed. + + [ Mo Zhou ] + * Update my mail address in control and copyright. + * Initialize autopkgtest: compile and run upstream tests. + + -- Mo Zhou Tue, 07 Jan 2020 14:56:30 +0800 + +utf8proc (2.4.0-1) unstable; urgency=medium + + * New upstream version 2.4.0 + * Bump Standards-Version to 4.4.0 (no change). + * Delete d/compat in favor of debhelper-compat (= 11). + * Update patches: + * Rebase use-unicode-data.patch + - Remove unicode-data-12.1.0pre1.patch + - Remove utf8proc-unicode-version.patch + + -- Mo Zhou Wed, 21 Aug 2019 14:41:53 +0000 + +utf8proc (2.3.0-1) unstable; urgency=medium + + * New upstream version 2.3.0 (Closes: #927941) + * Bump unicode-data requirement to (>= 12.1) && (<< 12.2). + * Refresh use-unicode-data.patch; Remove pass-hardening-flags.patch (merged). + * Patch: update utf8proc_data.c against unicode-data 12.1.0~pre1. + * Patch: update unicode-data version strings to 12.1.0 + * Patch: upstream didn't bump minor version in build system and header. + * Install the newly-added pkgconfig file. (Closes: #927260) + * Add a new symbol. + + -- Mo Zhou Sat, 27 Apr 2019 08:12:00 +0000 + +utf8proc (2.2.0-1) unstable; urgency=medium + + * New upstream release + * Drop patches no longer needed, refresh remaining + * Update debian/libutf8proc2.symbols + * Update debian/copyright + * New patch pass-hardening-flags.patch + + -- Graham Inggs Fri, 27 Jul 2018 10:17:12 +0000 + +utf8proc (2.1.1-1) unstable; urgency=medium + + [ Peter Colberg ] + * Update Vcs-* fields for move to salsa.debian.org + + [ Graham Inggs ] + * New upstream release (Closes: #902902) + * Update upstream URLs for move to JuliaStrings + * Refresh patches + * Drop symbols of generated const tables, see upstream PR #100 + * Add Mo Zhou to uploaders + * Switch to debhelper 11 + * Trim trailing whitespace from debian/changelog + * Drop unnecessary get-orig-source target from debian/rules + * Bump Standards-Version to 4.1.5 + * Switch to unicode-data 11 (Closes: #903381) + * Regenerate utf8proc_data.c from unicode-data 11 + * Skip failing grapheme break tests + + -- Graham Inggs Mon, 09 Jul 2018 13:43:06 +0000 + +utf8proc (2.1.0-1) unstable; urgency=medium + + * New upstream release + * Switch to unicode-data 10 (Closes: #867105) + * Regenerate utf8proc_data.c from unicode-data 10 + * Update debian/libutf8proc2.symbols + * Switch to debhelper 10 + * Enable all hardening flags + * Bump Standards-Version to 4.0.0 + * Update copyright, use https + + -- Graham Inggs Sat, 08 Jul 2017 10:47:15 +0200 + +utf8proc (2.0.2-1) unstable; urgency=medium + + * New upstream release + + -- Peter Colberg Sat, 30 Jul 2016 23:21:18 -0400 + +utf8proc (2.0.1-1) unstable; urgency=medium + + * New upstream release (Closes: #829236) + * Refresh patch + * Bump SONAME to libutf8proc2 + * Update debian/libutf8proc2.symbols + * Update Vcs-* fields to use https + * Enable bindnow hardening flag + * Bump Standards-Version to 3.9.8 + * Add debian/gbp.conf for pristine-tar + * Build depend on unicode-data >= 9.0 and << 9.1 for tests + + -- Peter Colberg Sat, 16 Jul 2016 17:15:58 -0400 + +utf8proc (1.3.1-2) unstable; urgency=medium + + * Relax build-depends version for unicode-data. + + -- Peter Colberg Fri, 06 Nov 2015 13:26:14 -0500 + +utf8proc (1.3.1-1) unstable; urgency=medium + + * Initial release. (Closes: #803681) + + -- Peter Colberg Sun, 01 Nov 2015 13:30:40 -0500 diff --git a/control b/control new file mode 100644 index 0000000..289aaf7 --- /dev/null +++ b/control @@ -0,0 +1,41 @@ +Source: utf8proc +Priority: optional +Maintainer: Debian Julia Team +Uploaders: Peter Colberg , + Graham Inggs , + Mo Zhou +Build-Depends: debhelper-compat (= 12), + perl, + unicode-data (<< 13.1), + unicode-data (>= 13.0) +Standards-Version: 4.5.0 +Rules-Requires-Root: no +Section: libs +Homepage: https://github.com/JuliaStrings/utf8proc +Vcs-Git: https://salsa.debian.org/julia-team/utf8proc.git +Vcs-Browser: https://salsa.debian.org/julia-team/utf8proc + +Package: libutf8proc2 +Architecture: any +Multi-Arch: same +Pre-Depends: ${misc:Pre-Depends} +Depends: ${misc:Depends}, ${shlibs:Depends} +Description: C library for processing UTF-8 Unicode data (shared library) + utf8proc is a small, clean C library that provides Unicode normalization, + case-folding, and other operations for data in the UTF-8 encoding, supporting + Unicode version 8.0. + . + This package contains a shared version of the library. + +Package: libutf8proc-dev +Section: libdevel +Architecture: any +Multi-Arch: same +Depends: libutf8proc2 (= ${binary:Version}), ${misc:Depends} +Description: C library for processing UTF-8 Unicode data (development files) + utf8proc is a small, clean C library that provides Unicode normalization, + case-folding, and other operations for data in the UTF-8 encoding, supporting + Unicode version 8.0. + . + This package contains the development files needed to compile software using + utf8proc. diff --git a/copyright b/copyright new file mode 100644 index 0000000..feef72c --- /dev/null +++ b/copyright @@ -0,0 +1,76 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: utf8proc +Source: https://github.com/JuliaStrings/utf8proc + +Files: * +Copyright: 2009, 2013 Public Software Group e. V., Berlin, Germany + 2014-2018 Steven G. Johnson, Jiahao Chen, Tony Kelman, + Jonas Fonseca, and other contributors +License: Expat + +Files: data/data_generator.rb +Copyright: 2009 Public Software Group e. V., Berlin, Germany + 2018 Steven G. Johnson, Tony Kelman, Keno Fischer, + Benito van der Zander, Michaël Meyer, and other contributors + 1991-2007 Unicode, Inc. +License: Expat and Unicode + +Files: utf8proc_data.c +Copyright: 1991-2007 Unicode, Inc. +License: Unicode + +Files: debian/* +Copyright: 2015-2016 Peter Colberg + 2017-2018 Graham Inggs + 2019-2020 Mo Zhou +License: Expat + +License: Expat + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + . + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION + OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +License: Unicode + Permission is hereby granted, free of charge, to any person obtaining a + copy of the Unicode data files and any associated documentation (the "Data + Files") or Unicode software and any associated documentation (the + "Software") to deal in the Data Files or Software without restriction, + including without limitation the rights to use, copy, modify, merge, + publish, distribute, and/or sell copies of the Data Files or Software, and + to permit persons to whom the Data Files or Software are furnished to do + so, provided that (a) the above copyright notice(s) and this permission + notice appear with all copies of the Data Files or Software, (b) both the + above copyright notice(s) and this permission notice appear in associated + documentation, and (c) there is clear notice in each modified Data File or + in the Software as well as in the documentation associated with the Data + File(s) or Software that the data or software has been modified. + . + THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY + KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF + THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS + INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR + CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF + USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER + TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + PERFORMANCE OF THE DATA FILES OR SOFTWARE. + . + Except as contained in this notice, the name of a copyright holder shall + not be used in advertising or otherwise to promote the sale, use or other + dealings in these Data Files or Software without prior written + authorization of the copyright holder. diff --git a/docs b/docs new file mode 100644 index 0000000..b43bf86 --- /dev/null +++ b/docs @@ -0,0 +1 @@ +README.md diff --git a/gbp.conf b/gbp.conf new file mode 100644 index 0000000..cec628c --- /dev/null +++ b/gbp.conf @@ -0,0 +1,2 @@ +[DEFAULT] +pristine-tar = True diff --git a/libutf8proc-dev.install b/libutf8proc-dev.install new file mode 100644 index 0000000..a3c8f6c --- /dev/null +++ b/libutf8proc-dev.install @@ -0,0 +1,3 @@ +usr/include/* +usr/lib/*/lib*.a +usr/lib/*/lib*.so diff --git a/libutf8proc2.install b/libutf8proc2.install new file mode 100644 index 0000000..3ddde58 --- /dev/null +++ b/libutf8proc2.install @@ -0,0 +1 @@ +usr/lib/*/lib*.so.* diff --git a/libutf8proc2.symbols b/libutf8proc2.symbols new file mode 100644 index 0000000..47521dd --- /dev/null +++ b/libutf8proc2.symbols @@ -0,0 +1,30 @@ +libutf8proc.so.2 libutf8proc2 #MINVER# +* Build-Depends-Package: libutf8proc-dev + utf8proc_NFC@Base 1.3 + utf8proc_NFD@Base 1.3 + utf8proc_NFKC@Base 1.3 + utf8proc_NFKC_Casefold@Base 2.2 + utf8proc_NFKD@Base 1.3 + utf8proc_category@Base 1.3 + utf8proc_category_string@Base 1.3 + utf8proc_charwidth@Base 1.3 + utf8proc_codepoint_valid@Base 1.3 + utf8proc_decompose@Base 1.3 + utf8proc_decompose_char@Base 1.3 + utf8proc_decompose_custom@Base 2.1 + utf8proc_encode_char@Base 1.3 + utf8proc_errmsg@Base 1.3 + utf8proc_get_property@Base 1.3 + utf8proc_grapheme_break@Base 1.3 + utf8proc_grapheme_break_stateful@Base 2.0 + utf8proc_iterate@Base 1.3 + utf8proc_map@Base 1.3 + utf8proc_map_custom@Base 2.1 + utf8proc_normalize_utf32@Base 2.1 + utf8proc_reencode@Base 1.3 + utf8proc_tolower@Base 1.3 + utf8proc_totitle@Base 2.0 + utf8proc_toupper@Base 1.3 + utf8proc_unicode_version@Base 2.3.0 + utf8proc_utf8class@Base 1.3 + utf8proc_version@Base 1.3 diff --git a/patches/series b/patches/series new file mode 100644 index 0000000..6216540 --- /dev/null +++ b/patches/series @@ -0,0 +1 @@ +use-unicode-data.patch diff --git a/patches/use-unicode-data.patch b/patches/use-unicode-data.patch new file mode 100644 index 0000000..7f370c5 --- /dev/null +++ b/patches/use-unicode-data.patch @@ -0,0 +1,51 @@ +Description: Use unicode-data instead of downloading external files + Replace external links with copies of Unicode data and GNU Unifont + provided by the packages unicode-data and ttf-unifont, respectively. +Author: Peter Colberg +Forwarded: not-needed +Last-Update: 2020-03-30 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- a/data/Makefile ++++ b/data/Makefile +@@ -25,31 +25,31 @@ + UNICODE_VERSION=13.0.0 + + UnicodeData.txt: +- $(CURL) $(CURLFLAGS) -o $@ -O http://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/UnicodeData.txt ++ cp /usr/share/unicode/UnicodeData.txt $@ + + EastAsianWidth.txt: +- $(CURL) $(CURLFLAGS) -o $@ -O $(URLCACHE)http://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/EastAsianWidth.txt ++ cp /usr/share/unicode/extracted/DerivedEastAsianWidth.txt $@ + + GraphemeBreakProperty.txt: +- $(CURL) $(CURLFLAGS) -o $@ -O $(URLCACHE)http://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/auxiliary/GraphemeBreakProperty.txt ++ cp /usr/share/unicode/auxiliary/GraphemeBreakProperty.txt $@ + + DerivedCoreProperties.txt: +- $(CURL) $(CURLFLAGS) -o $@ -O $(URLCACHE)http://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/DerivedCoreProperties.txt ++ cp /usr/share/unicode/DerivedCoreProperties.txt $@ + + CompositionExclusions.txt: +- $(CURL) $(CURLFLAGS) -o $@ -O $(URLCACHE)http://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/CompositionExclusions.txt ++ cp /usr/share/unicode/CompositionExclusions.txt $@ + + CaseFolding.txt: +- $(CURL) $(CURLFLAGS) -o $@ -O $(URLCACHE)http://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/CaseFolding.txt ++ cp /usr/share/unicode/CaseFolding.txt $@ + + NormalizationTest.txt: +- $(CURL) $(CURLFLAGS) -o $@ -O $(URLCACHE)http://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/NormalizationTest.txt ++ bzip2 -d < /usr/share/unicode/NormalizationTest.txt.bz2 > $@ + + GraphemeBreakTest.txt: +- $(CURL) $(CURLFLAGS) $(URLCACHE)http://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/auxiliary/GraphemeBreakTest.txt | $(PERL) -pe 's,÷,/,g;s,×,+,g' > $@ ++ $(PERL) -pe 's,÷,/,g;s,×,+,g' < /usr/share/unicode/auxiliary/GraphemeBreakTest.txt > $@ + + emoji-data.txt: +- $(CURL) $(CURLFLAGS) -o $@ -O $(URLCACHE)http://unicode.org/Public/$(UNICODE_VERSION)/ucd/emoji/emoji-data.txt ++ cp /usr/share/unicode/emoji/emoji-data.txt $@ + + clean: + rm -f UnicodeData.txt EastAsianWidth.txt GraphemeBreakProperty.txt DerivedCoreProperties.txt CompositionExclusions.txt CaseFolding.txt NormalizationTest.txt GraphemeBreakTest.txt CharWidths.txt emoji-data.txt diff --git a/rules b/rules new file mode 100755 index 0000000..c8ab103 --- /dev/null +++ b/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f +export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +%: + dh $@ + +override_dh_auto_install: + dh_auto_install -- prefix=/usr libdir=/usr/lib/$(DEB_HOST_MULTIARCH) + install -Dm0644 libutf8proc.pc debian/libutf8proc-dev/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/libutf8proc.pc + +override_dh_installchangelogs: + dh_installchangelogs NEWS.md diff --git a/source/format b/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/tests/Makefile b/tests/Makefile new file mode 100644 index 0000000..dc3ce80 --- /dev/null +++ b/tests/Makefile @@ -0,0 +1,43 @@ +# libutf8proc Makefile + +UCFLAGS = $(shell dpkg-buildflags --get CPPFLAGS) \ + $(shell dpkg-buildflags --get CFLAGS) + +all: check + +test/tests.o: test/tests.c test/tests.h utf8proc.h + $(CC) $(UCFLAGS) -c -o test/tests.o test/tests.c + +test/normtest: test/normtest.c test/tests.o utf8proc.h test/tests.h + $(CC) $(UCFLAGS) $(LDFLAGS) test/normtest.c test/tests.o -lutf8proc -o $@ + +test/graphemetest: test/graphemetest.c test/tests.o utf8proc.h test/tests.h + $(CC) $(UCFLAGS) $(LDFLAGS) test/graphemetest.c test/tests.o -lutf8proc -o $@ + +test/printproperty: test/printproperty.c test/tests.o utf8proc.h test/tests.h + $(CC) $(UCFLAGS) $(LDFLAGS) test/printproperty.c test/tests.o -lutf8proc -o $@ + +test/charwidth: test/charwidth.c test/tests.o utf8proc.h test/tests.h + $(CC) $(UCFLAGS) $(LDFLAGS) test/charwidth.c test/tests.o -lutf8proc -o $@ + +test/valid: test/valid.c test/tests.o utf8proc.h test/tests.h + $(CC) $(UCFLAGS) $(LDFLAGS) test/valid.c test/tests.o -lutf8proc -o $@ + +test/iterate: test/iterate.c test/tests.o utf8proc.h test/tests.h + $(CC) $(UCFLAGS) $(LDFLAGS) test/iterate.c test/tests.o -lutf8proc -o $@ + +test/case: test/case.c test/tests.o utf8proc.h test/tests.h + $(CC) $(UCFLAGS) $(LDFLAGS) test/case.c test/tests.o -lutf8proc -o $@ + +test/custom: test/custom.c test/tests.o utf8proc.h test/tests.h + $(CC) $(UCFLAGS) $(LDFLAGS) test/custom.c test/tests.o -lutf8proc -o $@ + +test/misc: test/misc.c test/tests.o utf8proc.h test/tests.h + $(CC) $(UCFLAGS) $(LDFLAGS) -DUNICODE_VERSION='"'`$(PERL) -ne "/^UNICODE_VERSION=/ and print $$';" data/Makefile`'"' test/misc.c test/tests.o -lutf8proc -o $@ + +check: test/normtest test/graphemetest test/printproperty test/case test/custom test/charwidth test/misc test/valid test/iterate bench/util.c bench/util.h + test/charwidth + test/valid + test/iterate + test/case + test/custom diff --git a/tests/control b/tests/control new file mode 100644 index 0000000..fb8a730 --- /dev/null +++ b/tests/control @@ -0,0 +1,3 @@ +Test-Command: make -f debian/tests/Makefile +Depends: @, build-essential +Restrictions: allow-stderr diff --git a/upstream/metadata b/upstream/metadata new file mode 100644 index 0000000..91451b3 --- /dev/null +++ b/upstream/metadata @@ -0,0 +1,3 @@ +Bug-Database: https://github.com/JuliaStrings/utf8proc/issues +Repository: https://github.com/JuliaStrings/utf8proc.git +Repository-Browse: https://github.com/JuliaStrings/utf8proc diff --git a/watch b/watch new file mode 100644 index 0000000..e508d56 --- /dev/null +++ b/watch @@ -0,0 +1,3 @@ +version=3 +opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/utf8proc-$1\.tar\.gz/ \ +https://github.com/JuliaStrings/utf8proc/tags .*/v?(\d\S*)\.tar\.gz -- 2.30.2