From: Peter Colberg Date: Sun, 1 Nov 2015 18:31:00 +0000 (-0500) Subject: Initial Debian packaging X-Git-Tag: archive/raspbian/2.11.3-2+rpi1^2~154 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=27258214d1d62fc1f7ca199a582eaca62cbabb85;p=utf8proc.git Initial Debian packaging --- diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..d246c3d --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +utf8proc (1.3.1-1) UNRELEASED; urgency=medium + + * Initial release. (Closes: #803681) + + -- Peter Colberg Sun, 01 Nov 2015 13:30:40 -0500 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..5003867 --- /dev/null +++ b/debian/control @@ -0,0 +1,36 @@ +Source: utf8proc +Priority: optional +Maintainer: Debian Julia Team +Uploaders: Peter Colberg , Graham Inggs +Build-Depends: debhelper (>= 9), unicode-data (>= 8.0), ttf-unifont (>= 8.0.01), + fontforge, perl, ruby, julia [amd64 i386] +Standards-Version: 3.9.6 +Section: libs +Homepage: http://julialang.org/utf8proc/ +Vcs-Git: git://anonscm.debian.org/pkg-julia/utf8proc.git +Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-julia/utf8proc.git + +Package: libutf8proc1 +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: ${misc:Depends}, libutf8proc1 (= ${binary:Version}) +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/debian/copyright b/debian/copyright new file mode 100644 index 0000000..85f1dda --- /dev/null +++ b/debian/copyright @@ -0,0 +1,71 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: utf8proc +Source: http://julialang.org/utf8proc/ + +Files: * +Copyright: 2009, 2013 Public Software Group e. V., Berlin, Germany + 2014-2015 Steven G. Johnson, Jiahao Chen, Peter Colberg, Tony Kelman, Scott P. Jones, and other contributors: https://github.com/JuliaLang/utf8proc/contributors +License: Expat + +Files: data/data_generator.rb +Copyright: 2009, 2013 Public Software Group e. V., Berlin, Germany + 1991-2007 Unicode, Inc. +License: Expat and Unicode + +Files: utf8proc_data.c +Copyright: 1991-2007 Unicode, Inc. +License: Unicode + +Files: debian/* +Copyright: 2015 Peter Colberg +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/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/libutf8proc-dev.install b/debian/libutf8proc-dev.install new file mode 100644 index 0000000..a3c8f6c --- /dev/null +++ b/debian/libutf8proc-dev.install @@ -0,0 +1,3 @@ +usr/include/* +usr/lib/*/lib*.a +usr/lib/*/lib*.so diff --git a/debian/libutf8proc1.install b/debian/libutf8proc1.install new file mode 100644 index 0000000..3ddde58 --- /dev/null +++ b/debian/libutf8proc1.install @@ -0,0 +1 @@ +usr/lib/*/lib*.so.* diff --git a/debian/libutf8proc1.symbols b/debian/libutf8proc1.symbols new file mode 100644 index 0000000..358d190 --- /dev/null +++ b/debian/libutf8proc1.symbols @@ -0,0 +1,27 @@ +libutf8proc.so.1 libutf8proc1 #MINVER# + utf8proc_NFC@Base 1.3 + utf8proc_NFD@Base 1.3 + utf8proc_NFKC@Base 1.3 + 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_combinations@Base 1.3 + utf8proc_decompose@Base 1.3 + utf8proc_decompose_char@Base 1.3 + utf8proc_encode_char@Base 1.3 + utf8proc_errmsg@Base 1.3 + utf8proc_get_property@Base 1.3 + utf8proc_grapheme_break@Base 1.3 + utf8proc_iterate@Base 1.3 + utf8proc_map@Base 1.3 + utf8proc_properties@Base 1.3 + utf8proc_reencode@Base 1.3 + utf8proc_sequences@Base 1.3 + utf8proc_stage1table@Base 1.3 + utf8proc_stage2table@Base 1.3 + utf8proc_tolower@Base 1.3 + utf8proc_toupper@Base 1.3 + utf8proc_utf8class@Base 1.3 + utf8proc_version@Base 1.3 diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..6216540 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +use-unicode-data.patch diff --git a/debian/patches/use-unicode-data.patch b/debian/patches/use-unicode-data.patch new file mode 100644 index 0000000..acb57ec --- /dev/null +++ b/debian/patches/use-unicode-data.patch @@ -0,0 +1,60 @@ +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: 2015-11-01 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- a/data/Makefile ++++ b/data/Makefile +@@ -23,10 +23,10 @@ utf8proc_data.c.new: data_generator.rb U + UNIFONT_VERSION=8.0.01 + + unifont.ttf: +- $(CURL) $(CURLFLAGS) -o $@ $(URLCACHE)https://mirrors.kernel.org/gnu/unifont/unifont-$(UNIFONT_VERSION)/unifont-$(UNIFONT_VERSION).ttf ++ cp /usr/share/fonts/truetype/unifont/unifont.ttf $@ + + unifont_upper.ttf: +- $(CURL) $(CURLFLAGS) -o $@ $(URLCACHE)https://mirrors.kernel.org/gnu/unifont/unifont-$(UNIFONT_VERSION)/unifont_upper-$(UNIFONT_VERSION).ttf ++ cp /usr/share/fonts/truetype/unifont/unifont_upper.ttf $@ + + %.sfd: %.ttf + $(FONTFORGE) -lang=ff -c "Open(\"$<\");Save(\"$@\");Quit(0);" +@@ -35,28 +35,28 @@ CharWidths.txt: charwidths.jl unifont.sf + $(JULIA) charwidths.jl > $@ + + UnicodeData.txt: +- $(CURL) $(CURLFLAGS) -o $@ -O $(URLCACHE)http://www.unicode.org/Public/UNIDATA/UnicodeData.txt ++ cp /usr/share/unicode/UnicodeData.txt $@ + + EastAsianWidth.txt: +- $(CURL) $(CURLFLAGS) -o $@ -O $(URLCACHE)http://www.unicode.org/Public/UNIDATA/EastAsianWidth.txt ++ cp /usr/share/unicode/extracted/DerivedEastAsianWidth.txt $@ + + GraphemeBreakProperty.txt: +- $(CURL) $(CURLFLAGS) -o $@ -O $(URLCACHE)http://www.unicode.org/Public/UCD/latest/ucd/auxiliary/GraphemeBreakProperty.txt ++ cp /usr/share/unicode/auxiliary/GraphemeBreakProperty.txt $@ + + DerivedCoreProperties.txt: +- $(CURL) $(CURLFLAGS) -o $@ -O $(URLCACHE)http://www.unicode.org/Public/UNIDATA/DerivedCoreProperties.txt ++ cp /usr/share/unicode/DerivedCoreProperties.txt $@ + + CompositionExclusions.txt: +- $(CURL) $(CURLFLAGS) -o $@ -O $(URLCACHE)http://www.unicode.org/Public/UNIDATA/CompositionExclusions.txt ++ cp /usr/share/unicode/CompositionExclusions.txt $@ + + CaseFolding.txt: +- $(CURL) $(CURLFLAGS) -o $@ -O $(URLCACHE)http://www.unicode.org/Public/UNIDATA/CaseFolding.txt ++ cp /usr/share/unicode/CaseFolding.txt $@ + + NormalizationTest.txt: +- $(CURL) $(CURLFLAGS) -o $@ -O $(URLCACHE)http://www.unicode.org/Public/UNIDATA/NormalizationTest.txt ++ bzip2 -d < /usr/share/unicode/NormalizationTest.txt.bz2 > $@ + + GraphemeBreakTest.txt: +- $(CURL) $(CURLFLAGS) $(URLCACHE)http://www.unicode.org/Public/UCD/latest/ucd/auxiliary/GraphemeBreakTest.txt | $(PERL) -pe 's,÷,/,g;s,×,+,g' > $@ ++ $(PERL) -pe 's,÷,/,g;s,×,+,g' < /usr/share/unicode/auxiliary/GraphemeBreakTest.txt > $@ + + clean: + rm -f UnicodeData.txt EastAsianWidth.txt GraphemeBreakProperty.txt DerivedCoreProperties.txt CompositionExclusions.txt CaseFolding.txt NormalizationTest.txt GraphemeBreakTest.txt CharWidths.txt unifont*.ttf unifont*.sfd diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..b22c88e --- /dev/null +++ b/debian/rules @@ -0,0 +1,23 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_auto_build: + dh_auto_build +ifneq (,$(filter $(DEB_HOST_ARCH),amd64 i386)) + # For architectures that provide a julia package, reproduce the + # complete build process, by generating `utf8proc_data.c` from + # the Unicode data and GNU Unifont, and comparing with the one + # shipped by upstream. + dh_auto_build -- data + diff data/utf8proc_data.c.new utf8proc_data.c +endif + +override_dh_auto_install: + dh_auto_install -- prefix=/usr libdir=/usr/lib/$(DEB_HOST_MULTIARCH) + +override_dh_installchangelogs: + dh_installchangelogs NEWS.md + +get-orig-source: + uscan --noconf --verbose --rename --destdir=$(CURDIR) --check-dirname-level=0 --force-download --download-current-version 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..7964cda --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=3 +opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/utf8proc-$1\.tar\.gz/ \ +https://github.com/JuliaLang/utf8proc/tags .*/v?(\d\S*)\.tar\.gz