From a913e81afb7a564b5809d9a1c28297209473da3a Mon Sep 17 00:00:00 2001 From: nim Date: Thu, 1 Nov 2007 15:37:32 +0000 Subject: [PATCH] initial import --- .cvsignore | 1 + sources | 1 + stix-fonts-License.txt | 65 ++++++++++++ stix-fonts.spec | 226 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 293 insertions(+) create mode 100644 stix-fonts-License.txt create mode 100644 stix-fonts.spec diff --git a/.cvsignore b/.cvsignore index e69de29..03b36d0 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +STIXBeta.zip diff --git a/sources b/sources index e69de29..2d9dd61 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +3d869530e7fe4803658d3974392b5911 STIXBeta.zip diff --git a/stix-fonts-License.txt b/stix-fonts-License.txt new file mode 100644 index 0000000..cf5d6fd --- /dev/null +++ b/stix-fonts-License.txt @@ -0,0 +1,65 @@ +TERMS AND CONDITIONS + + 1. Permission is hereby granted, free of charge, to any person obtaining a +copy of the STIX Fonts-TM set accompanying this license (collectively, the +"Fonts") and the associated documentation files (collectively with the Fonts, +the "Font Software"), to reproduce and distribute the Font Software, including +the rights to use, copy, merge and publish copies of the Font Software, and to +permit persons to whom the Font Software is furnished to do so same, subject to +the following terms and conditions (the "License"). + + 2. The following copyright and trademark notice and these Terms and +Conditions shall be included in all copies of one or more of the Font typefaces +and any derivative work created as permitted under this License: + + Copyright (c) 2001-2005 by the STI Pub Companies, consisting of the +American Institute of Physics, the American Chemical Society, the American +Mathematical Society, the American Physical Society, Elsevier, Inc., and The +Institute of Electrical and Electronic Engineers, Inc. Portions copyright (c) +1998-2003 by MicroPress, Inc. Portions copyright (c) 1990 by Elsevier, Inc. All +rights reserved. STIX Fonts-TM is a trademark of The Institute of Electrical +and Electronics Engineers, Inc. + + 3. You may (a) convert the Fonts from one format to another (e.g., from +TrueType to PostScript), in which case the normal and reasonable distortion +that occurs during such conversion shall be permitted and (b) embed or include +a subset of the Fonts in a document for the purposes of allowing users to read +text in the document that utilizes the Fonts. In each case, you may use the +STIX Fonts-TM mark to designate the resulting Fonts or subset of the Fonts. + + 4. You may also (a) add glyphs or characters to the Fonts, or modify the +shape of existing glyphs, so long as the base set of glyphs is not removed and +(b) delete glyphs or characters from the Fonts, provided that the resulting +font set is distributed with the following disclaimer: "This [name] font does +not include all the Unicode points covered in the STIX Fonts-TM set but may +include others." In each case, the name used to denote the resulting font set +shall not include the term "STIX" or any similar term. + + 5. You may charge a fee in connection with the distribution of the Font +Software, provided that no copy of one or more of the individual Font typefaces +that form the STIX Fonts-TM set may be sold by itself. + + 6. 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 MICROPRESS OR +ANY OF THE STI PUB COMPANIES BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, INCLUDING, BUT NOT LIMITED TO, ANY GENERAL, SPECIAL, INDIRECT, +INCIDENTAL OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR +OTHERWISE, ARISING FROM OR OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE +OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. + + 7. Except as contained in the notice set forth in Section 2, the names +MicroPress Inc. and STI Pub Companies, as well as the names of the +companies/organizations that compose the STI Pub Companies, shall not be used +in advertising or otherwise to promote the sale, use or other dealings in the +Font Software without the prior written consent of the respective company or +organization. + + 8. This License shall become null and void in the event of any material +breach of the Terms and Conditions herein by licensee. + + 9. A substantial portion of the STIX Fonts set was developed by MicroPress +Inc. for the STI Pub Companies. To obtain additional mathematical fonts, please +contact MicroPress, Inc., 68-30 Harrow Street, Forest Hills, NY 11375, USA - +Phone: (718) 575-1816. diff --git a/stix-fonts.spec b/stix-fonts.spec new file mode 100644 index 0000000..54cdd2f --- /dev/null +++ b/stix-fonts.spec @@ -0,0 +1,226 @@ +%define fontname stix +%define fontdir %{_datadir}/fonts/%{fontname} +%define archivename STIXBeta + +Name: %{fontname}-fonts +Version: 0.9 +Release: 4%{?dist} +Summary: STIX scientific and engineering fonts + +Group: User Interface/X +License: STIX +URL: http://www.stixfonts.org/ +Source0: %{archivename}.zip +Source1: %{name}-License.txt + +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) +BuildArch: noarch + + +%description +The mission of the Scientific and Technical Information Exchange (STIX) font +creation project is the preparation of a comprehensive set of fonts that serve +the scientific and engineering community in the process from manuscript +creation through final publication, both in electronic and print formats. + +This package includes base Unicode fonts containing most glyphs for standard +use. + + +%package pua +Group: User Interface/X +Summary: STIX scientific and engineering fonts, PUA glyphs +# Does not really make sense without the core typefaces +Requires: %{name} = %{version}-%{release} + + +%description pua +The mission of the Scientific and Technical Information Exchange (STIX) font +creation project is the preparation of a comprehensive set of fonts that serve +the scientific and engineering community in the process from manuscript +creation through final publication, both in electronic and print formats. + +This package includes fonts containing glyphs called out from the Unicode +Private Use Area (PUA) range. Glyphs in this range do not have an official +Unicode codepoint. They're generally accessible only through specialised +software. Text using them will break if they're ever accepted by the Unicode +Consortium and moved to an official codepoint. + + +%package integrals +Group: User Interface/X +Summary: STIX scientific and engineering fonts, additional integral glyphs +# Does not really make sense without the core typefaces +Requires: %{name} = %{version}-%{release} + + +%description integrals +The mission of the Scientific and Technical Information Exchange (STIX) font +creation project is the preparation of a comprehensive set of fonts that serve +the scientific and engineering community in the process from manuscript +creation through final publication, both in electronic and print formats. + +This package includes fonts containing additional integrals of various size +and slant. + + +%package sizes +Group: User Interface/X +Summary: STIX scientific and engineering fonts, additional glyph sizes +# Does not really make sense without the core typefaces +Requires: %{name} = %{version}-%{release} + + +%description sizes +The mission of the Scientific and Technical Information Exchange (STIX) font +creation project is the preparation of a comprehensive set of fonts that serve +the scientific and engineering community in the process from manuscript +creation through final publication, both in electronic and print formats. + +This package includes fonts containing glyphs in additional sizes (Mostly +"fence" and "piece" glyphs). + + +%package variants +Group: User Interface/X +Summary: STIX scientific and engineering fonts, additional glyph variants +# Does not really make sense without the core typefaces +Requires: %{name} = %{version}-%{release} + + +%description variants +The mission of the Scientific and Technical Information Exchange (STIX) font +creation project is the preparation of a comprehensive set of fonts that serve +the scientific and engineering community in the process from manuscript +creation through final publication, both in electronic and print formats. + +This package includes fonts containing alternative variants of some glyphs. + + +%prep +%setup -c -q -n %{archivename} +install -m 0644 -p %{SOURCE1} License.txt +for txt in *.txt ; do + fold -s $txt > $txt.new + sed -i 's/\r//' $txt.new + touch -r $txt $txt.new + mv $txt.new $txt +done + + +%build +# Source format not available + + +%install +rm -fr %{buildroot} +install -m 0755 -d %{buildroot}%{fontdir} +install -m 0644 -p *.otf %{buildroot}%{fontdir} + + +%clean +rm -fr %{buildroot} + + +%post +if [ -x %{_bindir}/fc-cache ]; then + %{_bindir}/fc-cache -f %{fontdir} +fi + + +%postun +if [ "$1" = "0" ]; then + if [ -x %{_bindir}/fc-cache ]; then + %{_bindir}/fc-cache -f %{fontdir} + fi +fi + + +%post pua +if [ -x %{_bindir}/fc-cache ]; then + %{_bindir}/fc-cache -f %{fontdir} +fi + + +%postun pua +if [ "$1" = "0" ]; then + if [ -x %{_bindir}/fc-cache ]; then + %{_bindir}/fc-cache -f %{fontdir} + fi +fi + + +%post integrals +if [ -x %{_bindir}/fc-cache ]; then + %{_bindir}/fc-cache -f %{fontdir} +fi + + +%postun integrals +if [ "$1" = "0" ]; then + if [ -x %{_bindir}/fc-cache ]; then + %{_bindir}/fc-cache -f %{fontdir} + fi +fi + + +%post sizes +if [ -x %{_bindir}/fc-cache ]; then + %{_bindir}/fc-cache -f %{fontdir} +fi + + +%postun sizes +if [ "$1" = "0" ]; then + if [ -x %{_bindir}/fc-cache ]; then + %{_bindir}/fc-cache -f %{fontdir} + fi +fi + + +%post variants +if [ -x %{_bindir}/fc-cache ]; then + %{_bindir}/fc-cache -f %{fontdir} +fi + + +%postun variants +if [ "$1" = "0" ]; then + if [ -x %{_bindir}/fc-cache ]; then + %{_bindir}/fc-cache -f %{fontdir} + fi +fi + + +%files +%defattr(0644,root,root,0755) +%doc *.txt + +%dir %{fontdir} +%{fontdir}/STIXGeneral*otf + + +%files pua +%defattr(0644,root,root,0755) +%{fontdir}/STIXNonUni*otf + + +%files integrals +%defattr(0644,root,root,0755) +%{fontdir}/STIXInt*.otf + + +%files sizes +%defattr(0644,root,root,0755) +%{fontdir}/STIXSiz*.otf + + +%files variants +%defattr(0644,root,root,0755) +%{fontdir}/STIXVar*otf + + +%changelog +* Thu Nov 1 2007 +☢ 0.9-4 +⚠ Initial experimental packaging