diff --git a/.ghostscript-fonts.metadata b/.ghostscript-fonts.metadata new file mode 100644 index 0000000..b1f5c4a --- /dev/null +++ b/.ghostscript-fonts.metadata @@ -0,0 +1 @@ +bc7ad686024947c8770f18c12692383c8df570c5 SOURCES/gnu-gs-fonts-other-5.50-nobch.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/Kevin_Hartig-Font_License.txt b/SOURCES/Kevin_Hartig-Font_License.txt new file mode 100644 index 0000000..82cce8a --- /dev/null +++ b/SOURCES/Kevin_Hartig-Font_License.txt @@ -0,0 +1,56 @@ +Date: Mon, 21 Jul 2008 11:43:35 -0600 +From: Kevin Hartig +To: "Tom \"spot\" Callaway" +Subject: Re: Licensing question + +Hi Tom, + +You found the right person. :-) +All the addresses listed except kevin.hartig@gmail.com are no longer valid. + +I'd be happy to relicense the fonts under SIL Open Font License. What do +I need to do in order to bundle the new license with the font? + +-kevin. + +Tom "spot" Callaway wrote: +> Hi, +> +> I'm looking for the Kevin Hartig who is listed as the copyright holder +> for the Calligraphic-Hiragana (fhirw.gsf) and Calligraphic-Katakana +> (fkarw.gsf) Fonts. Are you that Kevin? +> +> If so, your fonts are currently included in the Ghostscript Font +> collection under the following license terms: +> +> These copyrighted fonts were developed by Kevin Hartig. Permission is +> granted to freely distribute them in entirety along with this +> statement. +> This is shareware. If you decide to use these fonts please contribute +> $10 US to help support further freeware and shareware software +> development. +> Questions and comments may be sent to: +> +> hartig@fsl.noaa.gov +> khartig@nyx.cs.du.edu +> +> Kevin Hartig +> 1126 Collyer Street +> Longmont, CO 80501 USA +> +> copyright 1993. +> +> We would like to include these fonts in Fedora (a popular distribution +> of Linux), but the license is not a Free License. Would you be willing +> to relicense your fonts under a Free License? +> +> We recommend the SIL Open Font License (http://scripts.sil.org/OFL_web), +> but we have a list of acceptable Font Licenses here: +> http://fedoraproject.org/wiki/Licensing/Fonts +> +> Thanks in advance, and apologies if you are not the copyright holder, +> +> Tom Callaway, Fedora Legal +> +> + diff --git a/SOURCES/SIL-Open-Font-License.txt b/SOURCES/SIL-Open-Font-License.txt new file mode 100644 index 0000000..2351534 --- /dev/null +++ b/SOURCES/SIL-Open-Font-License.txt @@ -0,0 +1,91 @@ + 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/SOURCES/generate-tarball.sh b/SOURCES/generate-tarball.sh new file mode 100755 index 0000000..067cde2 --- /dev/null +++ b/SOURCES/generate-tarball.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +NAME=gnu-gs-fonts-other +DIR=fonts +VERSION=$1 +rm -rf "$DIR" +tar zxf "$NAME"-"$VERSION".tar.gz +for file in \ + bchb.afm \ + bchb.pfa \ + bchbi.afm \ + bchbi.pfa \ + bchr.afm \ + bchr.pfa \ + bchri.afm \ + bchri.pfa +do + rm "$DIR"/"$file" +done +tar zcf "$NAME"-"$VERSION"-nobch.tar.gz "$DIR" +rm -rf "$DIR" diff --git a/SPECS/ghostscript-fonts.spec b/SPECS/ghostscript-fonts.spec new file mode 100644 index 0000000..4e683e0 --- /dev/null +++ b/SPECS/ghostscript-fonts.spec @@ -0,0 +1,218 @@ +Summary: Fonts for the Ghostscript PostScript interpreter +Name: ghostscript-fonts +Version: 5.50 +Release: 31%{?dist} +# Contacted Kevin Hartig, who agreed to relicense his fonts under the SIL Open Font +# License. Hershey fonts are under the "Hershey Font License", which is not what Fontmap +# says (Fontmap is wrong). +License: GPLv2+ and Hershey and MIT and OFL and Public Domain +Group: Applications/Publishing +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +URL: http://www.gnu.org/software/ghostscript/ +Source0: gnu-gs-fonts-other-%{version}-nobch.tar.gz +Source1: Kevin_Hartig-Font_License.txt +Source2: SIL-Open-Font-License.txt +# gnu-gs-fonts-other-5.50 contains fonts with a non-free license (bug #690593). +# Therefore we use this script to remove those fonts before shipping +# it. Download the upstream tarball (from +# http://ftp.gnu.org/gnu/ghostscript/) and invoke this script while in +# the tarball's directory: +# ./generate-tarball.sh 5.50 +Source3: generate-tarball.sh +Requires: fontconfig +Requires(post): xorg-x11-font-utils +Requires(post): fontconfig +Requires(postun): fontconfig +BuildArchitectures: noarch + +%define fontdir %{_datadir}/fonts/default/ghostscript +%define catalogue %{_sysconfdir}/X11/fontpath.d + +%description +Ghostscript-fonts contains a set of fonts that Ghostscript, a +PostScript interpreter, uses to render text. These fonts are in +addition to the fonts shared by Ghostscript and the X Window System. + +%prep +%setup -q -c ghostscript-fonts-%{version} +cp -p %{SOURCE1} %{SOURCE2} . + +# Remove Hershey fonts as they cause problems (bug #707007). +find fonts -type f | xargs grep -lw Hershey | xargs rm -f + +%build + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT%{fontdir} +cp -p fonts/* $RPM_BUILD_ROOT%{fontdir} + +# Touch ghosted files +touch $RPM_BUILD_ROOT%{fontdir}/fonts.{dir,scale} + +# Install catalogue symlink +mkdir -p $RPM_BUILD_ROOT%{catalogue} +ln -sf %{fontdir} $RPM_BUILD_ROOT%{catalogue}/default-ghostscript + +%post +{ + mkfontscale %{fontdir} + mkfontdir %{fontdir} + fc-cache %{fontdir} +} &> /dev/null || : + +%postun +{ + if [ "$1" = "0" ]; then + fc-cache %{fontdir} + fi +} &> /dev/null || : + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc Kevin_Hartig-Font_License.txt SIL-Open-Font-License.txt +%{_datadir}/fonts/default/ +%{catalogue}/default-ghostscript +%ghost %verify(not md5 size mtime) %{fontdir}/fonts.dir +%ghost %verify(not md5 size mtime) %{fontdir}/fonts.scale + +%changelog +* Wed Nov 6 2013 Tim Waugh - 5.50-31 +- Run fc-cache on our font directory, not the entire font collection + (bug #1023977). + +* Wed Feb 13 2013 Fedora Release Engineering - 5.50-30 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Thu Jul 19 2012 Fedora Release Engineering - 5.50-29 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jan 13 2012 Fedora Release Engineering - 5.50-28 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Wed Oct 12 2011 Tim Waugh 5.50-27 +- Removed Hershey fonts as they cause problems (bug #707007). + +* Mon May 30 2011 Ville Skyttä - 5.50-26 +- Own %%ghosted fonts.dir and fonts.scale. + +* Fri Mar 25 2011 Tim Waugh 5.50-25 +- Removed non-free fonts (bug #690593). + +* Tue Feb 08 2011 Fedora Release Engineering - 5.50-24 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Fri Jul 24 2009 Fedora Release Engineering - 5.50-23 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Jun 10 2009 Tim Waugh 5.50-22 +- Further changes from package review (bug #225794): + - Don't use umask in scriptlet. + - Don't use 'which' in scriptlet. + +* Wed Jun 10 2009 Tim Waugh 5.50-21 +- Changes from package review (bug #225794): + - Requires xorg-x11-font-utils, not mkfontscale/mkfontdir. + - Use macro for /etc. + - Don't own catalogue directory. + +* Tue Feb 24 2009 Fedora Release Engineering - 5.50-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Mon Jul 21 2008 Tom "spot" Callaway - 5.50-19 +- fix license tag +- add licensing information for fhirw* and fkarw* fonts + +* Fri Aug 10 2007 Kristian Høgsberg - 5.50-18 +- Change link name to be default-ghostscript. + +* Tue Jun 26 2007 Kristian Høgsberg - 5.50-17 +- Drop chkfontpath dependency and use the catalogue font path mechanism. + +* Wed Feb 7 2007 Tim Waugh 5.50-16 +- Fixed URL again (bug #225794). +- Fixed requires tags (bug #225794). +- Preserve timestamps on installed files (bug #225794). +- Added empty %%build section (bug #225794). +- Use FHS macros for file manifest (bug #225794). +- Fixed summary (bug #225794). +- Fixed description (bug #225794). +- Fixed license (bug #225794). + +* Tue Feb 6 2007 Tim Waugh 5.50-15 +- Fixed URL (bug #225794). +- Fixed build root tag (bug #225794). +- This package does not require ghostscript (bug #225794). + +* Fri Dec 15 2006 Tim Waugh 5.50-14 +- Copied post/postun scriptlets from urw-fonts (bug #203369). + +* Wed Jul 12 2006 Jesse Keating - 5.50-13.1.1 +- rebuild + +* Fri Dec 09 2005 Jesse Keating +- rebuilt + +* Fri Sep 3 2004 Tim Waugh 5.50-13 +- Own /usr/share/fonts/default (bug #131650). + +* Tue Jun 15 2004 Elliot Lee +- rebuilt + +* Fri Feb 13 2004 Elliot Lee +- rebuilt + +* Thu Jan 22 2004 Tim Waugh 5.50-10 +- Rebuilt. (The 8.11 package which briefly appeared in rawhide should + not be used.) Bug #99323, bug #113866. + +* Wed Jan 22 2003 Tim Powers +- rebuilt + +* Wed Nov 20 2002 Tim Powers +- rebuild in latest collinst + +* Mon Sep 2 2002 Owen Taylor +- Run /usr/bin/fc-cache in the %%post + +* Fri Jun 21 2002 Tim Powers +- automated rebuild + +* Thu May 23 2002 Tim Powers +- automated rebuild + +* Wed Jan 09 2002 Tim Powers +- automated rebuild + +* Thu Jul 13 2000 Prospector +- automatic rebuild + +* Sun Jun 18 2000 Matt Wilson +- rebuild for next release + +* Mon Feb 14 2000 Bernhard Rosenkraenzer +- 5.50 + +* Sun Mar 21 1999 Cristian Gafton +- auto rebuild in the new build environment (release 3) + +* Wed Feb 24 1999 Preston Brown +- Injected new description and group. + +* Wed Jan 13 1999 Preston Brown +- renamed package to be consistent with new ghostscript. + +* Fri Nov 13 1998 Preston Brown +- removed the std fonts...now shared between X11 and gs with URW fonts pkg. + +* Thu Jul 2 1998 Jeff Johnson +- update to 4.03. + +* Mon May 04 1998 Erik Troan +- set the owner and group of all of the files to 0.0 + +* Tue Sep 23 1997 Erik Troan +- made a noarch package