summaryrefslogtreecommitdiffstats
path: root/unicode
diff options
context:
space:
mode:
Diffstat (limited to 'unicode')
-rw-r--r--unicode/.gitignore5
-rw-r--r--unicode/ChangeLog5
-rw-r--r--unicode/Makefile.am48
-rw-r--r--unicode/README49
-rw-r--r--unicode/book.xml269
-rw-r--r--unicode/configure.ac29
-rw-r--r--unicode/courier-debuild.in54
-rw-r--r--unicode/courier-unicode.spec.in2
-rw-r--r--unicode/packaging/debian/.gitignore1
-rw-r--r--unicode/packaging/debian/changelog.in5
-rw-r--r--unicode/packaging/debian/control29
-rw-r--r--unicode/packaging/debian/copyright25
-rw-r--r--unicode/packaging/debian/libcourier-unicode-dev.install6
-rw-r--r--unicode/packaging/debian/libcourier-unicode-dev.lintian-overrides1
-rw-r--r--unicode/packaging/debian/libcourier-unicode.install1
-rwxr-xr-xunicode/packaging/debian/rules7
-rw-r--r--unicode/packaging/debian/source/format1
17 files changed, 446 insertions, 91 deletions
diff --git a/unicode/.gitignore b/unicode/.gitignore
index 9b3f46d..5affc19 100644
--- a/unicode/.gitignore
+++ b/unicode/.gitignore
@@ -24,20 +24,25 @@
/config.cache
/config.guess
/config.sub
+/courier-debuild
/courier-unicode.h
/courier-unicode.spec
/courier-unicode-version.m4
+/deb
+/deb.release
/depcomp
/docs.stamp
/enttest
/graphemetest
/html
+/INSTALL
/install-sh
/linebreaktest
/ltmain.sh
/man
/missing
/normalizetest
+/README
/rpm
/rpm.release
/scripttest
diff --git a/unicode/ChangeLog b/unicode/ChangeLog
index d286d12..75a47c9 100644
--- a/unicode/ChangeLog
+++ b/unicode/ChangeLog
@@ -1,3 +1,8 @@
+2022-03-13 Sam Varshavchik <mrsam@courier-mta.com>
+
+ * Add scripts to create installable .deb packages, update
+ documentation.
+
2.2.3
2021-03-21 Sam Varshavchik <mrsam@courier-mta.com>
diff --git a/unicode/Makefile.am b/unicode/Makefile.am
index 9dc63f6..5299437 100644
--- a/unicode/Makefile.am
+++ b/unicode/Makefile.am
@@ -43,7 +43,7 @@ update-www:
@$(MAKE) update-www-composition
update-www-unicode-copyright:
- links -dump https://www.unicode.org/license.html >UNICODE-LICENSE.txt.tmp
+ elinks -dump -no-numbering https://www.unicode.org/license.html >UNICODE-LICENSE.txt.tmp
mv UNICODE-LICENSE.txt.tmp UNICODE-LICENSE.txt
update-www-unicode:
@@ -248,15 +248,31 @@ libcourier_unicode_la_SOURCES=\
bidi_mirroring.h \
unicode_categories.c
-libcourier_unicode_la_LDFLAGS=-version-info 7:0:0
+libcourier_unicode_la_LDFLAGS=-version-info @LIBVERSION_INFO@
+DATE := $(shell date -R)
dist-hook:
rm -f $(distdir)/courier-unicode.h
+ chmod +x $(distdir)/courier-debuild
+ @PERL@ -p -i -e 's/\@DATE\@/'"$(DATE)"'/' $(distdir)/packaging/debian/changelog.in
+ @PERL@ -p -i -e 's/\@DATE\@/'"$(DATE)"'/' $(distdir)/packaging/debian/changelog
EXTRA_DIST=$(noinst_SCRIPTS) $(man_MANS) $(PACKAGE).spec \
m4/courier-unicode.m4 \
packaging/freebsd10/pkg-descr
+EXTRA_DIST += \
+ courier-debuild \
+ packaging/debian/changelog \
+ packaging/debian/changelog.in \
+ packaging/debian/control \
+ packaging/debian/copyright \
+ packaging/debian/libcourier-unicode.install \
+ packaging/debian/libcourier-unicode-dev.install \
+ packaging/debian/libcourier-unicode-dev.lintian-overrides \
+ packaging/debian/rules \
+ packaging/debian/source/format
+
if UPDATE_UNICODE
BUILT_SOURCES=unicode_ultcasetab.c \
@@ -508,7 +524,7 @@ rpm:
$(MAKE) bump.rpm.release
$(MAKE) dist
$(MAKE) dorpm
- $$HOME/repos.sh
+ $$HOME/bin/rpmrepos.sh
dorpm:
rm -rf rpm/BUILD/*
@@ -540,6 +556,28 @@ bump.rpm.release: $(PACKAGE).spec
<$(PACKAGE).spec >$(PACKAGE).spec.new; \
mv $(PACKAGE).spec.new $(PACKAGE).spec
+packaging/debian/changelog: packaging/debian/changelog.in configure.ac
+ CONFIG_FILES=packaging/debian/changelog $(srcdir)/config.status
+
+deb: bump.deb.release
+ $(MAKE) dist
+ rm -rf @PACKAGE@-@VERSION@ deb
+ tar xf @PACKAGE@-@VERSION@.tar.bz2
+ cd @PACKAGE@-@VERSION@ && ./courier-debuild -us -uc && mv deb ../deb && cd .. && rm -rf @PACKAGE@-@VERSION@
+ $$HOME/bin/debrepos.sh
+
+bump.deb.release: packaging/debian/changelog
+ VERSION="x"; \
+ test -f $(srcdir)/deb.release && . $(srcdir)/deb.release; \
+ NEXT_RELEASE=100; \
+ test "$$VERSION" = "@PACKAGE_VERSION@" && NEXT_RELEASE="$$RELEASE"; \
+ RELEASE=`expr $$NEXT_RELEASE + 1`; \
+ echo "VERSION=@PACKAGE_VERSION@" >$(srcdir)/deb.release; \
+ echo "RELEASE=$$RELEASE" >>$(srcdir)/deb.release; \
+ sed 's/^@PACKAGE@.*/@PACKAGE@ (@VERSION@-'$$RELEASE') devel; urgency=medium/' \
+ <packaging/debian/changelog >packaging/debian/changelog.new; \
+ mv packaging/debian/changelog.new packaging/debian/changelog
+
upload-beta:
rm -f @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.bz2.sig; gpg --detach-sign --default-key mrsam@courier-mta.com @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.bz2; test -f @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.bz2.sig || exit 1
~/src/sftools/release.pl mrsam courier @PACKAGE_NAME@-devel `echo @PACKAGE_VERSION@|sed 's/.*\(........\)/\1/'` @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.bz2 @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.bz2.sig
@@ -554,8 +592,8 @@ distrelease:
$(MAKE) rpm
$(MAKE) -$(MAKEFLAGS)
$(MAKE) -$(MAKEFLAGS)
- rm -f courier-unicode.spec
- $(MAKE) courier-unicode.spec
+ rm -f courier-unicode.spec packaging/debian/changelog
+ $(MAKE) courier-unicode.spec packaging/debian/changelog
$(MAKE) dist
www:
diff --git a/unicode/README b/unicode/README
deleted file mode 100644
index 4e67d6c..0000000
--- a/unicode/README
+++ /dev/null
@@ -1,49 +0,0 @@
- Link: Courier Unicode Library (start)
- Link: Installation and usage (next)
-
-Courier Unicode Library
-
- --------------------------------------------------------------------------
-
- Table of Contents
-
- Current status
-
- Installation and usage
-
- Manual pages
-
- COPYING
-
- This library implements several algorithms related to the Unicode
- Standard, featuring:
-
- * Both C and C++11 bindings, with a complete manual page documentation
- set.
-
- * The library has all Unicode mappings compiled in as fast, compact,
- lookup table. The library does not need to load the Unicode database
- files at startup, every time.
-
- * The library implements lookups uppercase, lowercase, and titlecase
- equivalents of a unicode character; grapheme and word breaking rules;
- line breaking rules; and the bi-directional algorithm.
-
- * The library implements canonical and compatibility decomposition and
- composition of Unicode text; and the Unicode script property.
-
- * The library also implements ancillary functions, like looking up the
- unicode character that corresponds to some HTML 4.0 entity (such as
- “&amp;”, for example), and determining the normal width or a
- double-width status of a unicode character. Also, an adaptation of the
- iconv(3) API for this unicode library.
-
-Current status
-
- The current release of the Courier Unicode library is based on the Unicode
- 13.0.0 standard.
-
- --------------------------------------------------------------------------
-
-      Next
-      Installation and usage
diff --git a/unicode/book.xml b/unicode/book.xml
index f6a5dfd..a6cbd67 100644
--- a/unicode/book.xml
+++ b/unicode/book.xml
@@ -89,41 +89,242 @@ See COPYING for distribution information.
<section id="INSTALL">
<title>Installation and usage</title>
- <para>
- Download the current version of the library from
- <ulink url="/download.html#unicode">https://www.courier-mta.org/download.html#unicode</ulink>.
- Use the downloaded tarball to prepare an appropriate installation
- package for your operating system distribution.
- The typical sequence of commands is:
- </para>
+ <section id="rpmdeb">
+ <title>RPM and DEB packages</title>
+ <para>
+ These are not the same packages as the ones from various
+ distributions' repositories. These packages carry an higher internal
+ revision level in order to prevent them from getting upgraded
+ by the distribution packaging. This packaging exists in order to
+ have a convenient way of updating after a release without waiting
+ for the distribution's package to get built.
+ </para>
+ <note>
+ <para>
+ If a distribution package is already installed it should be removed
+ completely before switching to the upstream version (dnf remove or apt
+ purge). Preserve any existing configuration files, beforehand, in
+ order to reconfigure the package.
+ </para>
+ </note>
+ <note>
+ <para>
+ These packages use their own, generic, installation layout that may
+ deviate slightly from the package installation conventions that's
+ preferred by the
+ distributions.
+ </para>
+ </note>
+
+ <section id="rpmbuild">
+ <title>RPM builds</title>
+
+ <para>
+ It is not necessary to unpack this tarball in order to build
+ this tarball.
+ </para>
+
+ <para>
+ Run <quote>dnf install rpm-build</quote> if it's not installed
+ already, then:
+ </para>
+ <blockquote>
+ <informalexample>
+ <programlisting><![CDATA[
+ $ rpmbuild -ta courier-unicode-VERSION.tar.bz2
+ ]]></programlisting>
+ </informalexample>
+ </blockquote>
+
+ <para>
+ If this fails due to any missing dependencies, install them.
+ This builds the main <quote>courier-unicode</quote> package
+ with runtime libraries, and the
+ <quote>courier-unicode-devel</quote> package with
+ link libraries and header files.
+ </para>
+ <blockquote>
+ <informalexample>
+ <programlisting><![CDATA[
+ $ rpmbuild --define 'compat 1' -ta courier-unicode-VERSION.tar.bz2
+ ]]></programlisting>
+ </informalexample>
+ </blockquote>
+
+ <para>
+ Setting the <quote>compat 1</quote> flag during an RPM build
+ produces a differently-named <quote>compatibility</quote>
+ runtime package, with its version as part of the package's name.
+ The compatibility package gets installed together with the newer
+ version of this library that introduces a binary ABI change.
+ This supports a transition
+ period during which other software that's built to the
+ compatibility package's ABI version continue to load the
+ compatibility package's library at runtime, while new software
+ can be built against the newer ABI.
+ </para>
+ </section>
+
+ <section id="debbuild">
+ <title>DEB builds</title>
+
+ <para>
+ Run <quote>apt install devscripts debhelper</quote>,
+ if it's not installed already.
+ Create an empty directory, and copy/move the tarball into it:
+ </para>
+ <blockquote>
+ <informalexample>
+ <programlisting><![CDATA[
+ $ mkdir tmp
+ $ mv courier-unicode-VERSION.tar.bz2 tmp
+ $ cd tmp
+ ]]></programlisting>
+ </informalexample>
+ </blockquote>
+ <para>
+ Unpack the tarball and cd into the unpacked subdirectory:
+ </para>
+ <blockquote>
+ <informalexample>
+ <programlisting><![CDATA[
+ $ tar xvf courier-unicode-VERSION.tar.bz2
+ $ cd courier-unicode-VERSION
+ ]]></programlisting>
+ </informalexample>
+ </blockquote>
+ <para>
+ Run the <command>courier-debuild</command> script, which is a
+ wrapper for <command>debuild</command>, and forwards its parameters
+ to it:
+ </para>
+ <blockquote>
+ <informalexample>
+ <programlisting><![CDATA[
+ $ ./courier-debuild -us -uc
+ ]]></programlisting>
+ </informalexample>
+ </blockquote>
+ <note>
+ <para>
+ The above steps must be followed strictly.
+ The <command>courier-debuild</command>
+ script expects the distributed tarball in its parent directory.
+ </para>
+ </note>
+
+ <para>
+ This eventually produces a deb subdirectory with .deb packages
+ that can be installed with "dpkg -i":
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ The <quote>libcourier-unicode-dev</quote> package
+ contains the development libraries and header files, for
+ building other packages that use the Courier Unicode
+ Library.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ The <quote>libcourier-unicode<replaceable>&lt;N&gt;</replaceable></quote>
+ package
+ contains the runtime library.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <blockquote>
+ <informalexample>
+ <programlisting><![CDATA[
+ $ DEBGCC=10 ./courier-debuild -us -uc
+ ]]></programlisting>
+ </informalexample>
+ </blockquote>
+
+ <para>
+ Setting the <envar>DEBGCC</envar> environment variable
+ selects a non-default gcc version.
+ </para>
+
+ <note>
+ <para>
+ All Courier packages should be built using the same version of
+ gcc.
+ </para>
+ </note>
+ </section>
+ </section>
- <blockquote>
- <informalexample>
- <programlisting>
-./configure # Takes the default configure script options
-make
-make install DESTDIR=/tmp/courier-unicode-instimage # For example.</programlisting>
- </informalexample>
- </blockquote>
+ <section id="manualbuild">
+ <title>Manual</title>
- <para>
- The library uses a stock configure script, <command>make</command>
- and <command>make install</command> command that respects the
- <varname>DESTDIR</varname> setting to create an installation image
- in the directory specified by <varname>DESTDIR</varname>.
- </para>
+ <blockquote>
+ <informalexample>
+ <programlisting><![CDATA[
+ ./configure # Takes the default configure script options
+ make
+ make install DESTDIR=/tmp/courier-unicode-instimage # For example.]]></programlisting>
+ </informalexample>
+ </blockquote>
- <note>
<para>
- <command>make install</command> does not take any explicit action
- to uninstall any older version of the library, or remove any files
- from an older version that do not exist any more in the new version.
- Use the created installation image to prepare an
- installable package in a native package format for your operating
- system distribution. Use your native system distribution's package
- manager to properly install and update this library.
+ The library uses a stock configure script, <command>make</command>
+ and <command>make install</command> command that respects the
+ <varname>DESTDIR</varname> setting to create an installation image
+ in the directory specified by <varname>DESTDIR</varname>.
</para>
- </note>
+
+ <note>
+ <para>
+ <command>make install</command> does not take any explicit action
+ to uninstall any older version of the library, or remove any files
+ from an older version that do not exist any more in the new version.
+ Use the created installation image to prepare an
+ installable package in a native package format for your operating
+ system distribution. Use your distribution&#39;s native package
+ manager to properly install and update this library.
+ </para>
+ </note>
+ </section>
+
+ <section id="maintbuild">
+ <title>Maintainer Mode (see README in the git repository to set up)</title>
+ <para>
+ <command>make rpm</command> or <command>make deb</command>, as
+ appropriate, will:
+ </para>
+ <orderedlist>
+ <listitem>
+ <para>
+ Increment an internal release number.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Run <command>make dist</command>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Proceed and build a new release, creating the native packages
+ in the rpm or deb subdirectory.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Execute either <command>$HOME/bin/rpmrepos.sh</command> or
+ <command>$HOME/bin/debrepos.sh</command>. This can be a script
+ that does nothing, or it's intended to be the maintainer's
+ script that pushes out the packages to a repository.
+ </para>
+ </listitem>
+ </orderedlist>
+ </section>
+ </section>
+
+ <section id="using">
+ <title>Using the library</title>
<para>
To use the library, <quote>#include &lt;courier-unicode.h&gt;</quote> and link
@@ -133,7 +334,7 @@ make install DESTDIR=/tmp/courier-unicode-instimage # For example.</programlisti
Current versions of gcc use C++11, or higher, by default and do not
require extra flags. For C++ code, as usual, the compiler and compilation
flags for compiling any code that uses this library must be ABI-compatible
- too.
+ too.
</para>
<para>
@@ -145,10 +346,10 @@ make install DESTDIR=/tmp/courier-unicode-instimage # For example.</programlisti
<blockquote>
<informalexample>
<programlisting>
- AX_COURIER_UNICODE_VERSION
- AX_COURIER_UNICODE_CXXFLAGS
+ AX_COURIER_UNICODE_VERSION
+ AX_COURIER_UNICODE_CXXFLAGS
- AC_SUBST(COURIER_UNICODE_CXXFLAGS)
+ AC_SUBST(COURIER_UNICODE_CXXFLAGS)
</programlisting>
</informalexample>
</blockquote>
diff --git a/unicode/configure.ac b/unicode/configure.ac
index 2d49e70..3604371 100644
--- a/unicode/configure.ac
+++ b/unicode/configure.ac
@@ -1,6 +1,6 @@
dnl Process this file with autoconf to produce a configure script.
-AC_INIT([courier-unicode], [2.2.3],
+AC_INIT([courier-unicode], [2.2.3.20220416],
[courier-users@lists.sourceforge.net])
>confdefs.h # Kill PACKAGE_ macros
@@ -133,10 +133,35 @@ p=`echo "00"$p | sed 's/.*(...)$/$[]1/'`
HVERSION="$v$r$p"
AC_SUBST(HVERSION)
+COMPATVERSION="`echo $VERSION | tr -d '.'`"
+AC_SUBST(COMPATVERSION)
+
+LIBVERSION_CURRENT=7
+LIBVERSION_RELEASE=0
+LIBVERSION_AGE=0
+
+LIBVERSION_INFO=$LIBVERSION_CURRENT:$LIBVERSION_RELEASE:$LIBVERSION_AGE
+AC_SUBST(LIBVERSION_CURRENT)
+AC_SUBST(LIBVERSION_RELEASE)
+AC_SUBST(LIBVERSION_AGE)
+AC_SUBST(LIBVERSION_INFO)
+
+SOVERSION=0
+if test "$LIBVERSION_CURRENT" -ne "$LIBVERSION_AGE"
+then
+ SOVERSION=`expr $LIBVERSION_CURRENT - $LIBVERSION_AGE`
+fi
+
+AC_SUBST(SOVERSION)
+
AM_CONDITIONAL(HAVE_DOCS,[test -f $srcdir/docbook/icon.gif])
-AC_OUTPUT(Makefile
+
+AC_CONFIG_FILES(Makefile
+ courier-debuild
packaging/freebsd10/Makefile
courier-unicode.spec
courier-unicode.h
courier-unicode-version.m4
)
+
+AC_OUTPUT
diff --git a/unicode/courier-debuild.in b/unicode/courier-debuild.in
new file mode 100644
index 0000000..010cced
--- /dev/null
+++ b/unicode/courier-debuild.in
@@ -0,0 +1,54 @@
+#! /bin/bash
+#
+# Wrapper script for running debuild to build this package.
+#
+# export DEBGCC=10
+#
+# Set DEBGCC to use a non-default version of gcc
+
+set -e
+shopt -s extglob
+
+f=`cd .. && ls @PACKAGE@-@VERSION@.tar* | sed -n 1p`
+
+rm -rf deb
+mkdir deb
+cp ../$f deb/`echo $f | sed 's/@PACKAGE@-/@PACKAGE@_/;s/.tar./.orig.tar./'`
+cd deb
+tar xf *
+cd @PACKAGE@-@VERSION@
+cp -pr packaging/debian .
+
+if test "$DEBGCC" = ""
+then
+ DEBGCC=`readlink /usr/bin/gcc | sed 's/gcc-//'`
+
+ case "$DEBGCC" in
+ [1-9]*([0-9]))
+ ;;
+ *)
+ echo "Cannot determine gcc version"
+ exit 1
+ ;;
+ esac
+fi
+
+DEBGCC="-$DEBGCC"
+
+for f in debian/rules debian/control
+do
+ sed "
+s/%SOVERSION%/@SOVERSION@/g
+s/%DEBGCC%/$DEBGCC/g
+" <$f >$f.tmp
+
+mv $f.tmp $f
+done
+
+mv debian/libcourier-unicode.install debian/libcourier-unicode@SOVERSION@.install
+chmod +x debian/rules
+
+debuild "$@"
+cd ..
+rm -rf @PACKAGE@-@VERSION@
+echo "Built packages in the deb subdirectory."
diff --git a/unicode/courier-unicode.spec.in b/unicode/courier-unicode.spec.in
index ae1c472..07585d8 100644
--- a/unicode/courier-unicode.spec.in
+++ b/unicode/courier-unicode.spec.in
@@ -1,6 +1,6 @@
Summary: Courier Unicode Library
%if 0%{?compat:1}
-Name: courier-unicode%(echo @PACKAGE_VERSION@ | tr -d '.')
+Name: courier-unicode@COMPATVERSION@
%define __brp_ldconfig %{nil}
diff --git a/unicode/packaging/debian/.gitignore b/unicode/packaging/debian/.gitignore
new file mode 100644
index 0000000..8132460
--- /dev/null
+++ b/unicode/packaging/debian/.gitignore
@@ -0,0 +1 @@
+/changelog
diff --git a/unicode/packaging/debian/changelog.in b/unicode/packaging/debian/changelog.in
new file mode 100644
index 0000000..58c9d38
--- /dev/null
+++ b/unicode/packaging/debian/changelog.in
@@ -0,0 +1,5 @@
+courier-unicode (@VERSION@-100) devel; urgency=medium
+
+ * Upstream release
+
+ -- Sam Varshavchik <mrsam@courier-mta.com> @DATE@
diff --git a/unicode/packaging/debian/control b/unicode/packaging/debian/control
new file mode 100644
index 0000000..5e7ca51
--- /dev/null
+++ b/unicode/packaging/debian/control
@@ -0,0 +1,29 @@
+Source: courier-unicode
+Priority: optional
+Maintainer: Sam Varshavchik <mrsam@courier-mta.com>
+Build-Depends: debhelper-compat (= 12), gcc%DEBGCC%, g++%DEBGCC%
+Standards-Version: 4.4.1
+Section: contrib/libs
+Homepage: https://www.courier-mta.org/unicode/
+Rules-Requires-Root: no
+
+Package: libcourier-unicode-dev
+Section: contrib/libdevel
+Architecture: any
+Depends: libcourier-unicode%SOVERSION% (= ${binary:Version}), ${misc:Depends}
+Description: Courier Unicode Library (header files and development libraries)
+ This package contains development files for the Courier Unicode Library.
+ Install this package if you want to develop applications that uses this
+ unicode library.
+
+Package: libcourier-unicode%SOVERSION%
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Courier Unicode Library
+ This library implements several algorithms related to the Unicode
+ Standard.
+ -
+ This package installs only the run-time libraries needed by applications that
+ use this library. Install the "courier-unicode-dev" package if you want
+ to develop new applications using this library.
+
diff --git a/unicode/packaging/debian/copyright b/unicode/packaging/debian/copyright
new file mode 100644
index 0000000..7aa7ab2
--- /dev/null
+++ b/unicode/packaging/debian/copyright
@@ -0,0 +1,25 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Courier Mail Server
+Upstream-Contact: https://www.courier-mta.org/unicode/
+Source: https://www.courier-mta.org/unicode/
+
+Files: *
+Copyright: 2000-2021 Double Precision Inc
+License: GPL-3.0
+
+License: GPL-3.0
+ 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 <https://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/unicode/packaging/debian/libcourier-unicode-dev.install b/unicode/packaging/debian/libcourier-unicode-dev.install
new file mode 100644
index 0000000..1175cad
--- /dev/null
+++ b/unicode/packaging/debian/libcourier-unicode-dev.install
@@ -0,0 +1,6 @@
+usr/lib/*/*.so
+usr/lib/*/*.a
+usr/lib/*/*.la
+usr/share/aclocal/*
+usr/share/man/*/*
+usr/include/*
diff --git a/unicode/packaging/debian/libcourier-unicode-dev.lintian-overrides b/unicode/packaging/debian/libcourier-unicode-dev.lintian-overrides
new file mode 100644
index 0000000..149c7f5
--- /dev/null
+++ b/unicode/packaging/debian/libcourier-unicode-dev.lintian-overrides
@@ -0,0 +1 @@
+manpage-has-errors-from-man usr/share/man/man3/*
diff --git a/unicode/packaging/debian/libcourier-unicode.install b/unicode/packaging/debian/libcourier-unicode.install
new file mode 100644
index 0000000..3de3b10
--- /dev/null
+++ b/unicode/packaging/debian/libcourier-unicode.install
@@ -0,0 +1 @@
+usr/lib/*/*.so.*
diff --git a/unicode/packaging/debian/rules b/unicode/packaging/debian/rules
new file mode 100755
index 0000000..1258b41
--- /dev/null
+++ b/unicode/packaging/debian/rules
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+
+export CXX=g++%DEBGCC%
+export CC=gcc%DEBGCC%
+
+%:
+ dh $@
diff --git a/unicode/packaging/debian/source/format b/unicode/packaging/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/unicode/packaging/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)