From 3ac42015574fe77f5aeac87a9444deaf635277be Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Sat, 24 Dec 2016 19:42:10 +0200 Subject: Debian packaging --- debian/.gitignore | 5 + debian/README.Source | 20 ++ debian/changelog | 5 + debian/compat | 1 + debian/control | 20 ++ debian/copyright | 358 ++++++++++++++++++++++++++++++++++++ debian/docs | 1 + debian/fonts-ldco.lintian-overrides | 5 + debian/gen_copyright | 31 ++++ debian/install | 3 + debian/rules | 12 ++ debian/source/format | 1 + 12 files changed, 462 insertions(+) create mode 100644 debian/.gitignore create mode 100644 debian/README.Source create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/docs create mode 100644 debian/fonts-ldco.lintian-overrides create mode 100755 debian/gen_copyright create mode 100644 debian/install create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/debian/.gitignore b/debian/.gitignore new file mode 100644 index 0000000..4ff71bc --- /dev/null +++ b/debian/.gitignore @@ -0,0 +1,5 @@ +debhelper-build-stamp +files +fonts-ldco.debhelper.log +fonts-ldco.substvars +fonts-ldco/ diff --git a/debian/README.Source b/debian/README.Source new file mode 100644 index 0000000..b89ad40 --- /dev/null +++ b/debian/README.Source @@ -0,0 +1,20 @@ +Packaging Style +--------------- +Simple gbp (with pristine-tar). If there will be any patches (unlikely) +I'll probably use gbp pq. + +Version +------- +Upstream tarball has no versioning. So far fonts were added to it in +"parts" and hence the version number. + +The upstream tarball is used as-is. + +Copyright File +-------------- +The bulk of it is generated by debian/gen_copyright . + +Some fonts lack a date in the OFL-1.1.txt file. In this case I just add +the release year. So far it is a constant 2016, but future parts may +come. + diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..2747197 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +ldcofonts (1.0.0.part3-1) UNRELEASED; urgency=medium + + * Initial release. (Closes: #849214) + + -- Tzafrir Cohen Mon, 21 Nov 2016 23:08:20 +0200 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..731cee4 --- /dev/null +++ b/debian/control @@ -0,0 +1,20 @@ +Source: ldcofonts +Section: fonts +Priority: optional +Maintainer: Tzafrir Cohen +Build-Depends: debhelper (>= 9.0) +Standards-Version: 3.9.8 +Homepage: http://www.ldcodesign.com/%D7%98%D7%99%D7%A4%D7%95%D7%92%D7%A8%D7%A4%D7%99%D7%94/ +Vcs-Git: https://git.tzafrir.org.il/cgit/ldsofonts.git/ +Vcs-Browser: https://git.tzafrir.org.il/cgit/ldsofonts.git/ + +Package: fonts-ldco +Architecture: all +Multi-Arch: foreign +Depends: ${misc:Depends} +Description: set of Hebrew fonts by Louis Davis & Co. + set of Hebrew fonts by Louis Davis and Co. in OTF, TTF, and WOFF formats. + . + Fonts: Amit, Daniel, ECO, HarSinai, Hidekel, Josef, Kimchi, Lilach, + Miso, Mixer, Neo, Noam, PatchSans, PatchSerif, PatchStencil, Sayphan, + Skechers, Sticks, Strokes, Yamsuf diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..7cf303c --- /dev/null +++ b/debian/copyright @@ -0,0 +1,358 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Contact: http://www.ldcodesign.com/%D7%98%D7%99%D7%A4%D7%95%D7%92%D7%A8%D7%A4%D7%99%D7%94/ +Source: http://www.ldcodesign.com/%D7%98%D7%99%D7%A4%D7%95%D7%92%D7%A8%D7%A4%D7%99%D7%94/ + +Files: debian/* +Copyright: 2016, Tzafrir Cohen +License: GPL-2.0+ + This package 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 2 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 + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". + + +Files: 1Part/DanielByLDCO/* +Copyright: + <19.11.2016>, <לואי דוד ושות'> (), + <19.11.2016>, (), + <2016>, (). +Comment: + with Reserved Font Name <דניאל>. + with Reserved Font Name . + with Reserved Font Name . +License: OFL-1.1 + +Files: 1Part/ECObyLDCO/* +Copyright: + <19.11.2016>, <לואי דוד ושות'> (), + <19.11.2016>, (), + <2016>, (). +Comment: + with Reserved Font Name <אקו>. + with Reserved Font Name . + with Reserved Font Name . +License: OFL-1.1 + +Files: 1Part/HidekelByLDCO/* +Copyright: + <19.11.2016>, <לואי דוד ושות'> (), + <19.11.2016>, (), + <2016>, (). +Comment: + with Reserved Font Name <חידקל>. + with Reserved Font Name . + with Reserved Font Name . +License: OFL-1.1 + +Files: 1Part/JosefFontByLDCO/* +Copyright: + <19.11.2016>, <לואי דוד ושות'> (), + <19.11.2016>, (), + <2016>, (). +Comment: + with Reserved Font Name <יוסף>. + with Reserved Font Name . + with Reserved Font Name . +License: OFL-1.1 + +Files: 1Part/KimchiFontByLDCO/* +Copyright: + <19.11.2016>, <לואי דוד ושות'> (), + <19.11.2016>, (), + <2016>, (). +Comment: + with Reserved Font Name <קימצ'י>. + with Reserved Font Name . + with Reserved Font Name . +License: OFL-1.1 + +Files: 1Part/MisoFontByLDCO/* +Copyright: + <19.11.2016>, <לואי דוד ושות'> (), + <19.11.2016>, (), + <2016>, (). +Comment: + with Reserved Font Name <מיסו>. + with Reserved Font Name . + with Reserved Font Name . +License: OFL-1.1 + +Files: 1Part/NeoFontByLDCO/* +Copyright: + <19.11.2016>, <לואי דוד ושות'> (), + <19.11.2016>, (), + <2016>, (). +Comment: + with Reserved Font Name <נאו>. + with Reserved Font Name . + with Reserved Font Name . +License: OFL-1.1 + +Files: 1Part/SticksFontByLDCO/* +Copyright: + <19.11.2016>, <לואי דוד ושות'> (), + <19.11.2016>, (), + <2016>, (). +Comment: + with Reserved Font Name <סטיקס>. + with Reserved Font Name . + with Reserved Font Name . +License: OFL-1.1 + +Files: 1Part/YamsufFontByLDCO/* +Copyright: + <19.11.2016>, <לואי דוד ושות'> (), + <19.11.2016>, (), + <2016>, (). +Comment: + with Reserved Font Name <ים סוף>. + with Reserved Font Name . + with Reserved Font Name . +License: OFL-1.1 + +Files: 2Part/LilachFontByLDCO/* +Copyright: + <2016>, <לואי דוד ושות'> (), + <2016>, (), + <2016>, (). + <2016>, <טורונצב ניקיטה> (), +Comment: + with Reserved Font Name <לילך>. + with Reserved Font Name . + with Reserved Font Name . + with Reserved Font Name <לילך>. +License: OFL-1.1 + +Files: 2Part/MixerFontByLDCO/* +Copyright: + <2016>, <לואי דוד ושות'> (), + <2016>, (), + <2016>, (). + <2016>, <טורונצב ניקיטה> (), +Comment: + with Reserved Font Name <מיקסר>. + with Reserved Font Name . + with Reserved Font Name . + with Reserved Font Name <מיקסר>. +License: OFL-1.1 + +Files: 2Part/PatchSansFontByLDCO/* +Copyright: + <2016>, <לואי דוד ושות'> (), + <2016>, (), + <2016>, (). + <2016>, <טורונצב ניקיטה> (), +Comment: + with Reserved Font Name <פאץ' סאנס>. + with Reserved Font Name . + with Reserved Font Name . + with Reserved Font Name <פאץ' סאנס>. +License: OFL-1.1 + +Files: 2Part/PatchSerifFontByLDCO/* +Copyright: + <2016>, <לואי דוד ושות'> (), + <2016>, (), + <2016>, (). + <2016>, <טורונצב ניקיטה> (), +Comment: + with Reserved Font Name <פאץ' סריף>. + with Reserved Font Name . + with Reserved Font Name . + with Reserved Font Name <פאץ' סריף>. +License: OFL-1.1 + +Files: 2Part/StrokesFontByLDCO/* +Copyright: + <2016>, <לואי דוד ושות'> (), + <2016>, (), + <2016>, (). + <2016>, <טורונצב ניקיטה> (), +Comment: + with Reserved Font Name <סטרוקס>. + with Reserved Font Name . + with Reserved Font Name . + with Reserved Font Name <סטרוקס>. +License: OFL-1.1 + +Files: 3Part/AmitFontByLDCO/* +Copyright: + <2016>, <לואי דוד ושות'> (), + <2016>, (), + <2016>, (). + <2016>, <טורונצב ניקיטה> (), +Comment: + with Reserved Font Name <עמית>. + with Reserved Font Name . + with Reserved Font Name . + with Reserved Font Name <עמית>. +License: OFL-1.1 + +Files: 3Part/HarSinaiFontByLDCO/* +Copyright: + <2016>, <לואי דוד ושות'> (), + <2016>, (), + <2016>, (). + <2016>, <טורונצב ניקיטה> (), +Comment: + with Reserved Font Name <הר סיני>. + with Reserved Font Name . + with Reserved Font Name . + with Reserved Font Name <הר סיני>. +License: OFL-1.1 + +Files: 3Part/NoamFontByLDCO/* +Copyright: + <2016>, <לואי דוד ושות'> (), + <2016>, (), + <2016>, (). + <2016>, <טורונצב ניקיטה> (), +Comment: + with Reserved Font Name <נועם>. + with Reserved Font Name . + with Reserved Font Name . + with Reserved Font Name <נועם>. +License: OFL-1.1 + +Files: 3Part/PatchStencilFontByLDCO/* +Copyright: + <2016>, <לואי דוד ושות'> (), + <2016>, (), + <2016>, (). + <2016>, <טורונצב ניקיטה> (), +Comment: + with Reserved Font Name <פאץ' סטנסיל>. + with Reserved Font Name . + with Reserved Font Name . + with Reserved Font Name <פאץ' סטנסיל>. +License: OFL-1.1 + +Files: 3Part/SayphanFontByLDCO/* +Copyright: + <2016>, <לואי דוד ושות'> (), + <2016>, (), + <2016>, (). + <2016>, <טורונצב ניקיטה> (), +Comment: + with Reserved Font Name <סייפן>. + with Reserved Font Name . + with Reserved Font Name . + with Reserved Font Name <סייפן>. +License: OFL-1.1 + +Files: 3Part/SkechersFontByLDCO/* +Copyright: + <2016>, <לואי דוד ושות'> (), + <2016>, (), + <2016>, (). + <2016>, <טורונצב ניקיטה> (), +Comment: + with Reserved Font Name <סקצ'רס>. + with Reserved Font Name . + with Reserved Font Name . + with Reserved Font Name <סקצ'רס>. +License: OFL-1.1 + +License: OFL-1.1 + This Font Software is licensed under the SIL Open Font License, Version 1.1. + This license is copied below, and is also available with a FAQ at: + http://scripts.sil.org/OFL + . + . + ----------------------------------------------------------- + SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 + ----------------------------------------------------------- + . + PREAMBLE + The goals of the Open Font License (OFL) are to stimulate worldwide + development of collaborative font projects, to support the font creation + efforts of academic and linguistic communities, and to provide a free and + open framework in which fonts may be shared and improved in partnership + with others. + . + The OFL allows the licensed fonts to be used, studied, modified and + redistributed freely as long as they are not sold by themselves. The + fonts, including any derivative works, can be bundled, embedded, + redistributed and/or sold with any software provided that any reserved + names are not used by derivative works. The fonts and derivatives, + however, cannot be released under any other type of license. The + requirement for fonts to remain under this license does not apply + to any document created using the fonts or their derivatives. + . + DEFINITIONS + "Font Software" refers to the set of files released by the Copyright + Holder(s) under this license and clearly marked as such. This may + include source files, build scripts and documentation. + . + "Reserved Font Name" refers to any names specified as such after the + copyright statement(s). + . + "Original Version" refers to the collection of Font Software components as + distributed by the Copyright Holder(s). + . + "Modified Version" refers to any derivative made by adding to, deleting, + or substituting -- in part or in whole -- any of the components of the + Original Version, by changing formats or by porting the Font Software to a + new environment. + . + "Author" refers to any designer, engineer, programmer, technical + writer or other person who contributed to the Font Software. + . + PERMISSION & CONDITIONS + Permission is hereby granted, free of charge, to any person obtaining + a copy of the Font Software, to use, study, copy, merge, embed, modify, + redistribute, and sell modified and unmodified copies of the Font + Software, subject to the following conditions: + . + 1) Neither the Font Software nor any of its individual components, + in Original or Modified Versions, may be sold by itself. + . + 2) Original or Modified Versions of the Font Software may be bundled, + redistributed and/or sold with any software, provided that each copy + contains the above copyright notice and this license. These can be + included either as stand-alone text files, human-readable headers or + in the appropriate machine-readable metadata fields within text or + binary files as long as those fields can be easily viewed by the user. + . + 3) No Modified Version of the Font Software may use the Reserved Font + Name(s) unless explicit written permission is granted by the corresponding + Copyright Holder. This restriction only applies to the primary font name as + presented to the users. + . + 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font + Software shall not be used to promote, endorse or advertise any + Modified Version, except to acknowledge the contribution(s) of the + Copyright Holder(s) and the Author(s) or with their explicit written + permission. + . + 5) The Font Software, modified or unmodified, in part or in whole, + must be distributed entirely under this license, and must not be + distributed under any other license. The requirement for fonts to + remain under this license does not apply to any document created + using the Font Software. + . + TERMINATION + This license becomes null and void if any of the above conditions are + not met. + . + DISCLAIMER + THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT + OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE + COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL + DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM + OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..efa371d --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +1Part/DanielByLDCO/ofl-faq.txt diff --git a/debian/fonts-ldco.lintian-overrides b/debian/fonts-ldco.lintian-overrides new file mode 100644 index 0000000..2b73f01 --- /dev/null +++ b/debian/fonts-ldco.lintian-overrides @@ -0,0 +1,5 @@ +# None, indeed: +no-upstream-changelog + +# Ends with a dot. That's OK: +description-synopsis-might-not-be-phrased-properly diff --git a/debian/gen_copyright b/debian/gen_copyright new file mode 100755 index 0000000..4bb0b0e --- /dev/null +++ b/debian/gen_copyright @@ -0,0 +1,31 @@ +#!/bin/sh + +license_file=1Part/DanielByLDCO/OFL.txt +copyright_prefix="Copyright (c)" +rfn_prefix="with Reserved Font Name" + +# FIXME: replacing '' with 2016. Correct for up to part 3 + +for dir in ?Part/*; do + dirname=${dir##*/} + name=${dirname%FontByLDCO} + lic_file="$dir/OFL.txt" + # Note the extra space left at the beginning: + copyright=`grep "^$copyright_prefix" "$lic_file" | \ + sed -e "s/^$copyright_prefix//" -e 's//<2016>/' -e 's/\r$//'` + rfns=`grep "^$rfn_prefix" "$lic_file" | sed -e 's/^/ /' -e 's/\r$//'` + + cat <