From ee9dfd30e8c02e9a7457385786218d2b4b935720 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Fri, 29 Jan 2021 22:40:29 +0100 Subject: Debian package --- Makefile | 23 ++++++++++++++++++++++- debian/README.Debian | 11 +++++++++++ debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 13 ++++++++----- debian/copyright | 29 +++++++++++++++++++++++++++++ debian/rules | 4 ++++ debian/source/format | 1 + 8 files changed, 81 insertions(+), 6 deletions(-) create mode 100644 debian/README.Debian create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/copyright create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/Makefile b/Makefile index 31af4e2..46626e8 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,10 @@ +PROJECTNAME=unicode +VERSION=$(shell dpkg-parsechangelog --show-field Version) + +DISTROS=base #debian10 + CXX=clang++-11 +# GCC is buggy: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85282 #CXX=g++-10 STANDARD=c++17 @@ -68,6 +74,21 @@ install: mkdir -p $(DESTDIR)/usr/include cp include/unicode.h $(DESTDIR)/usr/include -.PHONY: all test clean install dep +deb: + # build binary deb package + dpkg-buildpackage -rfakeroot + +deb-src: + dh_clean + dh_auto_clean + dpkg-source -b -I.git -Iresult . + +$(DISTROS): deb-src + sudo pbuilder build --basetgz /var/cache/pbuilder/$@.tgz --buildresult result/$@ ../$(PROJECTNAME)_$(VERSION).dsc + debsign result/$@/$(PROJECTNAME)_$(VERSION)_amd64.changes + +debs: $(DISTROS) + +.PHONY: all test clean install dep deb deb-src $(DISTROS) -include $(wildcard $(SRC:.cpp=.d)) diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..162e3f0 --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,11 @@ +unicode for Debian +================== + +This package is the Debian version of unicode, a C++ library for Unicode encoding. + + +Contact +------- + +Reichwein IT + diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..8f59c68 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +unicode (1.0) unstable; urgency=medium + + * First version + + -- Roland Reichwein Thu, 10 Jan 2021 18:59:59 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..48082f7 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +12 diff --git a/debian/control b/debian/control index a875755..42b6c22 100644 --- a/debian/control +++ b/debian/control @@ -1,15 +1,18 @@ -Source: libunicode -Section: httpd +Source: unicode +Section: devel Priority: optional Maintainer: Roland Reichwein -Build-Depends: debhelper (>= 12), libboost-all-dev | libboost1.71-all-dev, clang | g++-9 +Build-Depends: debhelper (>= 12), libboost-all-dev | libboost1.74-all-dev, libc++-dev | libc++-11-dev, libc++abi-dev | libc++abi-11-dev, lld | lld-11, clang | clang-11 Standards-Version: 4.5.0 -Homepage: http://www.reichwein.it/libunicode/ +Homepage: http://www.reichwein.it/unicode/ Package: libunicode-dev Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} -Homepage: http://www.reichwein.it/libunicode/ +Homepage: http://www.reichwein.it/unicode/ Description: Unicode conversion library libunicode is a locale independent library for conversion between Unicode encodings UTF-8, UTF-16 and UTF-32. + . + Features: + - Additional support for ISO-8859-1 encoding (Latin-1) as subset of Unicode diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..8e3ebb6 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,29 @@ +This package is Copyright 2021 by Roland Reichwein + +Both upstream source code and Debian packaging is licensed under the BSD +license: + +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. Neither the name of the copyright holder nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 COPYRIGHT HOLDER 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. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..2d33f6a --- /dev/null +++ b/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) -- cgit v1.2.3