[lpf-mscore-fonts] New target spec: new description, lower priority.
by Sérgio M. Basto
commit 70d75ac36913cfa9d55a42c9c273201abaad8d51
Author: Sérgio M. Basto <sergio(a)serjux.com>
Date: Mon Sep 11 23:00:49 2017 +0100
New target spec: new description, lower priority.
61-mscore-andale.conf | 16 ++++
61-mscore-arial.conf | 16 ++++
61-mscore-comic.conf | 16 ++++
61-mscore-courier.conf | 16 ++++
61-mscore-georgia.conf | 16 ++++
61-mscore-impact.conf | 16 ++++
61-mscore-times.conf | 16 ++++
61-mscore-trebuchet.conf | 16 ++++
61-mscore-verdana.conf | 16 ++++
61-mscore-webdings.conf | 16 ++++
Licen.TXT | 24 +++++
lpf-mscore-fonts.spec | 70 ++++++++++++++
mscore-fonts.spec.in | 240 +++++++++++++++++++++++++++++++++++++++++++++++
13 files changed, 494 insertions(+)
---
diff --git a/61-mscore-andale.conf b/61-mscore-andale.conf
new file mode 100644
index 0000000..76e8e68
--- /dev/null
+++ b/61-mscore-andale.conf
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <alias>
+ <family>monospace</family>
+ <prefer>
+ <family>Andale Mono</family>
+ </prefer>
+ </alias>
+ <alias>
+ <family>Andale Mono</family>
+ <default>
+ <family>monospace</family>
+ </default>
+ </alias>
+</fontconfig>
diff --git a/61-mscore-arial.conf b/61-mscore-arial.conf
new file mode 100644
index 0000000..1fba2b8
--- /dev/null
+++ b/61-mscore-arial.conf
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <alias>
+ <family>sans-serif</family>
+ <prefer>
+ <family>Arial</family>
+ </prefer>
+ </alias>
+ <alias>
+ <family>Arial</family>
+ <default>
+ <family>sans-serif</family>
+ </default>
+ </alias>
+</fontconfig>
diff --git a/61-mscore-comic.conf b/61-mscore-comic.conf
new file mode 100644
index 0000000..006ff6f
--- /dev/null
+++ b/61-mscore-comic.conf
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <alias>
+ <family>cursive</family>
+ <prefer>
+ <family>Comic Sans MS</family>
+ </prefer>
+ </alias>
+ <alias>
+ <family>Comic Sans MS</family>
+ <default>
+ <family>cursive</family>
+ </default>
+ </alias>
+</fontconfig>
diff --git a/61-mscore-courier.conf b/61-mscore-courier.conf
new file mode 100644
index 0000000..5b3f794
--- /dev/null
+++ b/61-mscore-courier.conf
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <alias>
+ <family>monospace</family>
+ <prefer>
+ <family>Courier New</family>
+ </prefer>
+ </alias>
+ <alias>
+ <family>Courier New</family>
+ <default>
+ <family>monospace</family>
+ </default>
+ </alias>
+</fontconfig>
diff --git a/61-mscore-georgia.conf b/61-mscore-georgia.conf
new file mode 100644
index 0000000..5c1465f
--- /dev/null
+++ b/61-mscore-georgia.conf
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <alias>
+ <family>serif</family>
+ <prefer>
+ <family>Georgia</family>
+ </prefer>
+ </alias>
+ <alias>
+ <family>Georgia</family>
+ <default>
+ <family>serif</family>
+ </default>
+ </alias>
+</fontconfig>
diff --git a/61-mscore-impact.conf b/61-mscore-impact.conf
new file mode 100644
index 0000000..1e54422
--- /dev/null
+++ b/61-mscore-impact.conf
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <alias>
+ <family>sans-serif</family>
+ <prefer>
+ <family>Impact</family>
+ </prefer>
+ </alias>
+ <alias>
+ <family>Impact</family>
+ <default>
+ <family>sans-serif</family>
+ </default>
+ </alias>
+</fontconfig>
diff --git a/61-mscore-times.conf b/61-mscore-times.conf
new file mode 100644
index 0000000..d2aeab8
--- /dev/null
+++ b/61-mscore-times.conf
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <alias>
+ <family>serif</family>
+ <prefer>
+ <family>Times New Roman</family>
+ </prefer>
+ </alias>
+ <alias>
+ <family>Times New Roman</family>
+ <default>
+ <family>serif</family>
+ </default>
+ </alias>
+</fontconfig>
diff --git a/61-mscore-trebuchet.conf b/61-mscore-trebuchet.conf
new file mode 100644
index 0000000..9f80ed5
--- /dev/null
+++ b/61-mscore-trebuchet.conf
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <alias>
+ <family>sans-serif</family>
+ <prefer>
+ <family>Trebuchet MS</family>
+ </prefer>
+ </alias>
+ <alias>
+ <family>Trebuchet MS</family>
+ <default>
+ <family>sans-serif</family>
+ </default>
+ </alias>
+</fontconfig>
diff --git a/61-mscore-verdana.conf b/61-mscore-verdana.conf
new file mode 100644
index 0000000..f5894fc
--- /dev/null
+++ b/61-mscore-verdana.conf
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <alias>
+ <family>sans-serif</family>
+ <prefer>
+ <family>Verdana</family>
+ </prefer>
+ </alias>
+ <alias>
+ <family>Verdana</family>
+ <default>
+ <family>sans-serif</family>
+ </default>
+ </alias>
+</fontconfig>
diff --git a/61-mscore-webdings.conf b/61-mscore-webdings.conf
new file mode 100644
index 0000000..d3ac20f
--- /dev/null
+++ b/61-mscore-webdings.conf
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <alias>
+ <family>dingbats</family>
+ <prefer>
+ <family>Webdings</family>
+ </prefer>
+ </alias>
+ <alias>
+ <family>Webdings</family>
+ <default>
+ <family>dingbats</family>
+ </default>
+ </alias>
+</fontconfig>
diff --git a/Licen.TXT b/Licen.TXT
new file mode 100644
index 0000000..35ba6ce
--- /dev/null
+++ b/Licen.TXT
@@ -0,0 +1,24 @@
+Microsoft TrueType Fonts
+END-USER LICENSE AGREEMENT FOR MICROSOFT SOFTWARE
+---------------------------------------------------
+
+IMPORTANT - READ CAREFULLY: This Microsoft End-User License Agreement ("EULA") is a legal agreement between you (either an individual or a single entity) and Microsoft Corporation for the Microsoft software accompanying this EULA, which includes computer software and may include associated media, printed materials, and "on-line" or electronic documentation ("SOFTWARE PRODUCT" or "SOFTWARE"). By exercising your rights to make and use copies of the SOFTWARE PRODUCT, you agree to be bound by the terms of this EULA. If you do not agree to the terms of this EULA, you may not use the SOFTWARE PRODUCT.
+SOFTWARE PRODUCT LICENSE
+The SOFTWARE PRODUCT is protected by copyright laws and international copyright treaties, as well as other intellectual property laws and treaties. The SOFTWARE PRODUCT is licensed, not sold.
+1. GRANT OF LICENSE. This EULA grants you the following rights:
+� Installation and Use. You may install and use an unlimited number of copies of the SOFTWARE PRODUCT.
+� Reproduction and Distribution. You may reproduce and distribute an unlimited number of copies of the SOFTWARE PRODUCT; provided that each copy shall be a true and complete copy, including all copyright and trademark notices, and shall be accompanied by a copy of this EULA. Copies of the SOFTWARE PRODUCT may not be distributed for profit either on a standalone basis or included as part of your own product.
+2. DESCRIPTION OF OTHER RIGHTS AND LIMITATIONS.
+� Limitations on Reverse Engineering, Decompilation, and Disassembly. You may not reverse engineer, decompile, or disassemble the SOFTWARE PRODUCT, except and only to the extent that such activity is expressly permitted by applicable law notwithstanding this limitation.
+� Restrictions on Alteration. You may not rename, edit or create any derivative works from the SOFTWARE PRODUCT, other than subsetting when embedding them in documents.
+� Software Transfer. You may permanently transfer all of your rights under this EULA, provided the recipient agrees to the terms of this EULA.
+� Termination. Without prejudice to any other rights, Microsoft may terminate this EULA if you fail to comply with the terms and conditions of this EULA. In such event, you must destroy all copies of the SOFTWARE PRODUCT and all of its component parts.
+3. COPYRIGHT. All title and copyrights in and to the SOFTWARE PRODUCT (including but not limited to any images, text, and "applets" incorporated into the SOFTWARE PRODUCT), the accompanying printed materials, and any copies of the SOFTWARE PRODUCT are owned by Microsoft or its suppliers. The SOFTWARE PRODUCT is protected by copyright laws and international treaty provisions. Therefore, you must treat the SOFTWARE PRODUCT like any other copyrighted material.
+4. U.S. GOVERNMENT RESTRICTED RIGHTS. The SOFTWARE PRODUCT and documentation are provided with RESTRICTED RIGHTS. Use, duplication, or disclosure by the Government is subject to restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in Technical Data and Computer Software clause at DFARS 252.227-7013 or subparagraphs (c)(1) and (2) of the Commercial Computer Software-Restricted Rights at 48 CFR 52.227-19, as applicable. Manufacturer is Microsoft Corporation/One Microsoft Way/Redmond, WA 98052-6399.
+LIMITED WARRANTY
+NO WARRANTIES. Microsoft expressly disclaims any warranty for the SOFTWARE PRODUCT. The SOFTWARE PRODUCT and any related documentation is provided "as is" without warranty of any kind, either express or implied, including, without limitation, the implied warranties or merchantability, fitness for a particular purpose, or noninfringement. The entire risk arising out of use or performance of the SOFTWARE PRODUCT remains with you.
+NO LIABILITY FOR CONSEQUENTIAL DAMAGES. In no event shall Microsoft or its suppliers be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or any other pecuniary loss) arising out of the use of or inability to use this Microsoft product, even if Microsoft has been advised of the possibility of such damages. Because some states/jurisdictions do not allow the exclusion or limitation of liability for consequential or incidental damages, the above limitation may not apply to you.
+MISCELLANEOUS
+If you acquired this product in the United States, this EULA is governed by the laws of the State of Washington.
+If this product was acquired outside the United States, then local laws may apply.
+Should you have any questions concerning this EULA, or if you desire to contact Microsoft for any reason, please contact the Microsoft subsidiary serving your country, or write: Microsoft Sales Information Center/One Microsoft Way/Redmond, WA 98052-6399.
diff --git a/lpf-mscore-fonts.spec b/lpf-mscore-fonts.spec
new file mode 100644
index 0000000..03970dd
--- /dev/null
+++ b/lpf-mscore-fonts.spec
@@ -0,0 +1,70 @@
+# %%global will not work here, lazy evaluation needed.
+%define target_pkg %(t=%{name}; echo ${t#lpf-})
+
+Name: lpf-mscore-fonts
+Version: 2.2
+Release: 1%{?dist}
+Summary: Bootstrap package building mscore-fonts using lpf
+
+License: MIT
+URL: https://github.com/leamas/lpf
+Group: Development/Tools
+BuildArch: noarch
+Source0: mscore-fonts.spec.in
+Source1: Licen.TXT
+Source2: 61-mscore-arial.conf
+Source3: 61-mscore-andale.conf
+Source4: 61-mscore-comic.conf
+Source5: 61-mscore-courier.conf
+Source6: 61-mscore-georgia.conf
+Source7: 61-mscore-impact.conf
+Source8: 61-mscore-times.conf
+Source9: 61-mscore-trebuchet.conf
+Source10: 61-mscore-verdana.conf
+Source11: 61-mscore-webdings.conf
+
+BuildRequires: desktop-file-utils
+BuildRequires: lpf
+Requires: lpf
+
+
+%description
+Bootstrap package allowing the lpf system to build the
+mscore-fonts non-redistributable package.
+
+
+%prep
+%setup -cT
+
+
+%build
+
+
+%install
+# lpf-setup-pkg [-e eula] <topdir> <specfile> [sources...]
+/usr/share/lpf/scripts/lpf-setup-pkg -e %{SOURCE1} %{buildroot} %{SOURCE0} \
+ %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} \
+ %{SOURCE7} %{SOURCE8} %{SOURCE9} %{SOURCE10} %{SOURCE11}
+
+
+%post
+%lpf_post
+
+%postun
+%lpf_postun
+
+%lpf_triggerpostun
+
+
+%files
+%{_datadir}/applications/%{name}.desktop
+%{_datadir}/lpf/packages/%{target_pkg}
+%attr(775,pkg-build,pkg-build) /var/lib/lpf/packages/%{target_pkg}
+
+
+%changelog
+* Fri Feb 14 2014 Alec Leamas <leamas.alec(a)gmail.com> - 2.2-1
+- New target spec: new description, lower priority.
+
+* Mon Feb 10 2014 Alec Leamas <leamas.alec(a)gmail.com> - 2.2-1
+- Initial release
diff --git a/mscore-fonts.spec.in b/mscore-fonts.spec.in
new file mode 100644
index 0000000..ca9bd55
--- /dev/null
+++ b/mscore-fonts.spec.in
@@ -0,0 +1,240 @@
+%global fontname mscore
+# directory to unpack truetype fonts from the cab into
+%global fontdir %{_datadir}/fonts/%{fontname}
+
+%global sf_corefonts http://downloads.sourceforge.net/corefonts/the%20fonts/final
+
+Summary: Microsoft core TrueType fonts for better Windows Compatibility
+Name: %{fontname}-fonts
+Version: 1.0
+Release: 2%{?dist}
+
+URL: http://mscorefonts2.sourceforge.net/
+License: non-redistributable, no commercial use, no modifications permitted
+Group: User Interface/X
+BuildArch: noarch
+Source1: http://sourceforge.net/projects/mscorefonts2/files/cabs/EUupdate.EXE
+Source2: %{sf_corefonts}/andale32.exe
+Source3: %{sf_corefonts}/arialb32.exe
+Source4: %{sf_corefonts}/comic32.exe
+Source5: %{sf_corefonts}/courie32.exe
+Source6: %{sf_corefonts}/georgi32.exe
+Source7: %{sf_corefonts}/impact32.exe
+Source8: %{sf_corefonts}/webdin32.exe
+Source10: 61-%{fontname}-arial.conf
+Source11: 61-%{fontname}-andale.conf
+Source12: 61-%{fontname}-comic.conf
+Source13: 61-%{fontname}-courier.conf
+Source14: 61-%{fontname}-georgia.conf
+Source15: 61-%{fontname}-impact.conf
+Source16: 61-%{fontname}-times.conf
+Source17: 61-%{fontname}-trebuchet.conf
+Source18: 61-%{fontname}-verdana.conf
+Source19: 61-%{fontname}-webdings.conf
+
+Requires: xorg-x11-font-utils
+Requires: fontconfig
+Requires: %{fontname}-andale-fonts
+Requires: %{fontname}-arial-fonts
+Requires: %{fontname}-comic-fonts
+Requires: %{fontname}-courier-fonts
+Requires: %{fontname}-georgia-fonts
+Requires: %{fontname}-impact-fonts
+Requires: %{fontname}-times-fonts
+Requires: %{fontname}-trebuchet-fonts
+Requires: %{fontname}-verdana-fonts
+Requires: %{fontname}-webdings-fonts
+
+BuildRequires: cabextract
+BuildRequires: fontpackages-devel
+Provides: msttcore-fonts-installer = 2.6
+Provides: msttcorefonts = 2.1
+
+%description
+TrueType core fonts for the web that prior to 2002 was available from
+http://www.microsoft.com/typography/fontpack/ , updated in the European
+Union Expansion Update circa May 2007, still available on the Microsoft
+website.
+
+This is a meta package pulling in the different fonts making the complete
+set.
+
+These fonts are very old and not on pair with current Windows fonts.
+Installing them is not likely to improve the overall experience on screen.
+However, in some cases pdf documents produced on Windows hosts are better
+rendered with these fonts installed.
+
+
+%package common
+Summary: Common support files
+
+%description common
+Common support files for %{fontname}-fonts packages including licenses.
+
+
+%package -n %{fontname}-arial-fonts
+Summary: %{fontname} Arial ttf font
+Requires: %{name}-common = %{version}-%{release}
+
+%description -n %{fontname}-arial-fonts
+Microsoft Arial font for the web that prior to 2002 was available from
+http://www.microsoft.com/typography/fontpack/ , updated in the European
+Union Expansion Update circa May 2007, still available on the Microsoft
+website.
+
+%_font_pkg -n arial -f *-%{fontname}-arial.conf Arial*.ttf AriBlk.TTF
+
+
+%package -n %{fontname}-times-fonts
+Summary: %{fontname} Times ttf font
+Requires: %{name}-common = %{version}-%{release}
+
+%description -n %{fontname}-times-fonts
+Microsoft Times font for the web that prior to 2002 was available from
+http://www.microsoft.com/typography/fontpack/, updated in the European
+Union Expansion Update circa May 2007, still available on the Microsoft
+website.
+
+%_font_pkg -n times -f *-%{fontname}-times.conf Times*.ttf
+
+
+%package -n %{fontname}-trebuchet-fonts
+Summary: %{fontname} Trebuchet ttf font
+Requires: %{name}-common = %{version}-%{release}
+
+%description -n %{fontname}-trebuchet-fonts
+Microsoft Trebuchet font for the web that prior to 2002 was available
+from http://www.microsoft.com/typography/fontpack, updated
+in the European Union Expansion Update circa May 2007, still available
+on the Microsoft website.
+
+%_font_pkg -n trebuchet -f *-%{fontname}-trebuchet.conf trebuc*.ttf
+
+
+%package -n %{fontname}-verdana-fonts
+Summary: %{fontname} verdana ttf font
+Requires: %{name}-common = %{version}-%{release}
+
+%description -n %{fontname}-verdana-fonts
+Microsoft verdana font for the web that prior to 2002 was available from
+http://www.microsoft.com/typography/fontpack/, updated in the European
+Union Expansion Update circa May 2007, still available on the Microsoft
+website.
+
+%_font_pkg -n verdana -f *-%{fontname}-verdana.conf Verdana*.ttf
+
+
+%package -n %{fontname}-andale-fonts
+Summary: %{fontname} Andale Mono ttf font
+Requires: %{name}-common = %{version}-%{release}
+
+%description -n %{fontname}-andale-fonts
+Andale Mono font for the web that prior to 2002 was available from
+http://www.microsoft.com/typography/fontpack.
+
+%_font_pkg -n andale -f *-%{fontname}-andale.conf AndaleMo.TTF
+
+
+%package -n %{fontname}-comic-fonts
+Summary: %{fontname} comic ttf font
+Requires: %{name}-common = %{version}-%{release}
+
+%description -n %{fontname}-comic-fonts
+Comic bold and regular font for the web that prior to 2002 was available
+from http://www.microsoft.com/typography/fontpack.
+
+%_font_pkg -n comic -f *-%{fontname}-comic.conf Comic*.TTF
+
+
+%package -n %{fontname}-courier-fonts
+Summary: %{fontname} courier ttf font
+Requires: %{name}-common = %{version}-%{release}
+
+%description -n %{fontname}-courier-fonts
+Courier bold, bold italic, italic and regular font for the web that prior
+to 2002 was available from http://www.microsoft.com/typography/fontpack.
+
+%_font_pkg -n courier -f *-%{fontname}-courier.conf cour*ttf
+
+
+%package -n %{fontname}-georgia-fonts
+Summary: %{fontname} georgia ttf font
+Requires: %{name}-common = %{version}-%{release}
+
+%description -n %{fontname}-georgia-fonts
+Georgia font for the web that prior to 2002 was available from
+http://www.microsoft.com/typography/fontpack.
+
+%_font_pkg -n georgia -f *-%{fontname}-georgia.conf Georgi*TTF
+
+
+%package -n %{fontname}-impact-fonts
+Summary: %{fontname} impact ttf font
+Requires: %{name}-common = %{version}-%{release}
+
+%description -n %{fontname}-impact-fonts
+Impact font for the web that prior to 2002 was available from
+http://www.microsoft.com/typography/fontpack.
+
+%_font_pkg -n impact -f *-%{fontname}-impact.conf Impact.TTF
+
+
+%package -n %{fontname}-webdings-fonts
+Summary: %{fontname} webdings ttf font
+Requires: %{name}-common = %{version}-%{release}
+
+%description -n %{fontname}-webdings-fonts
+Webdings font for the web that prior to 2002 was available from
+http://www.microsoft.com/typography/fontpack.
+
+%_font_pkg -n webdings -f *-%{fontname}-webdings.conf Webdings.TTF
+
+
+%prep
+%setup -cT
+cabextract %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} \
+ %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8}
+sed -i 's/\r//' Licen.TXT
+touch -r Licen.TXT timestamp
+iconv -f iso8859-1 -t utf-8 Licen.TXT > Licen.TXT.conv && \
+ mv -f Licen.TXT.conv Licen.TXT
+touch -r timestamp Licen.TXT
+
+
+%build
+
+
+%install
+install -d $RPM_BUILD_ROOT/%{fontdir}
+install -m 644 -p *.ttf *.TTF $RPM_BUILD_ROOT/%{fontdir}
+install -m 0755 -d $RPM_BUILD_ROOT%{_fontconfig_templatedir} \
+ $RPM_BUILD_ROOT%{_fontconfig_confdir}
+for fontconf in %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} %{SOURCE14} \
+ %{SOURCE15} %{SOURCE16} %{SOURCE17} %{SOURCE18} %{SOURCE19}
+do
+ install -m 0644 -p $fontconf %{buildroot}%{_fontconfig_templatedir}
+ basename=$( basename $fontconf )
+ ln -s %{_fontconfig_templatedir}/$basename \
+ %{buildroot}%{_fontconfig_confdir}/$basename
+done
+
+
+%files common
+%doc Licen.TXT
+
+%files
+
+
+%changelog
+* Fri Feb 14 2014 Alec Leamas<leamas.alec(a)gmail.com>
+- Lower config priority (55 -> 61)
+- New description, downplay fonts usefullness.
+
+* Mon Feb 10 2014 Alec Leamas <leamas(a)nowhere.net> - 1.0-1
+- Based on previous work available at
+ https://downloads.sourceforge.net/project/mscorefonts2/specs/msttcore-fon...
+- Adapting to lpf, don't download in scriptlets.
+- Fedora GL: package each font in separate sub-package.
+- Fedora GL: Base on font package template
+- Fedora GL: Rename using offical fedora -fonts suffix
+- Purging changelog
7 years, 2 months
[lpf-cleartype-fonts] Initial release.
by Sérgio M. Basto
commit a7549b70fdcf5a6441942e89d2e9240498dfe97b
Author: Sérgio M. Basto <sergio(a)serjux.com>
Date: Mon Sep 11 21:59:56 2017 +0100
Initial release.
61-cleartype-calibri.conf | 16 +++++
61-cleartype-cambria.conf | 16 +++++
61-cleartype-candara.conf | 16 +++++
61-cleartype-consolas.conf | 16 +++++
61-cleartype-constantia.conf | 16 +++++
61-cleartype-corbel.conf | 16 +++++
cleartype-fonts.spec.in | 160 +++++++++++++++++++++++++++++++++++++++++++
eula.txt | 49 +++++++++++++
lpf-cleartype-fonts.spec | 64 +++++++++++++++++
9 files changed, 369 insertions(+)
---
diff --git a/61-cleartype-calibri.conf b/61-cleartype-calibri.conf
new file mode 100644
index 0000000..7014271
--- /dev/null
+++ b/61-cleartype-calibri.conf
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <alias>
+ <family>sans-serif</family>
+ <prefer>
+ <family>Calibri</family>
+ </prefer>
+ </alias>
+ <alias>
+ <family>Calibri</family>
+ <default>
+ <family>sans-serif</family>
+ </default>
+ </alias>
+</fontconfig>
diff --git a/61-cleartype-cambria.conf b/61-cleartype-cambria.conf
new file mode 100644
index 0000000..45df8bf
--- /dev/null
+++ b/61-cleartype-cambria.conf
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <alias>
+ <family>serif</family>
+ <prefer>
+ <family>Cambria</family>
+ </prefer>
+ </alias>
+ <alias>
+ <family>Cambria</family>
+ <default>
+ <family>serif</family>
+ </default>
+ </alias>
+</fontconfig>
diff --git a/61-cleartype-candara.conf b/61-cleartype-candara.conf
new file mode 100644
index 0000000..3d3b7a9
--- /dev/null
+++ b/61-cleartype-candara.conf
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <alias>
+ <family>serif</family>
+ <prefer>
+ <family>Candara</family>
+ </prefer>
+ </alias>
+ <alias>
+ <family>Candara</family>
+ <default>
+ <family>serif</family>
+ </default>
+ </alias>
+</fontconfig>
diff --git a/61-cleartype-consolas.conf b/61-cleartype-consolas.conf
new file mode 100644
index 0000000..643b431
--- /dev/null
+++ b/61-cleartype-consolas.conf
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <alias>
+ <family>monospace</family>
+ <prefer>
+ <family>Consolas</family>
+ </prefer>
+ </alias>
+ <alias>
+ <family>Consolas</family>
+ <default>
+ <family>monospace</family>
+ </default>
+ </alias>
+</fontconfig>
diff --git a/61-cleartype-constantia.conf b/61-cleartype-constantia.conf
new file mode 100644
index 0000000..d9e577b
--- /dev/null
+++ b/61-cleartype-constantia.conf
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <alias>
+ <family>serif</family>
+ <prefer>
+ <family>Constantia</family>
+ </prefer>
+ </alias>
+ <alias>
+ <family>Constantia</family>
+ <default>
+ <family>serif</family>
+ </default>
+ </alias>
+</fontconfig>
diff --git a/61-cleartype-corbel.conf b/61-cleartype-corbel.conf
new file mode 100644
index 0000000..4b465b4
--- /dev/null
+++ b/61-cleartype-corbel.conf
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <alias>
+ <family>sans-serif</family>
+ <prefer>
+ <family>Corbel</family>
+ </prefer>
+ </alias>
+ <alias>
+ <family>Corbel</family>
+ <default>
+ <family>sans-serif</family>
+ </default>
+ </alias>
+</fontconfig>
diff --git a/cleartype-fonts.spec.in b/cleartype-fonts.spec.in
new file mode 100644
index 0000000..0e83b51
--- /dev/null
+++ b/cleartype-fonts.spec.in
@@ -0,0 +1,160 @@
+%global fontname cleartype
+%global fontdir %{_datadir}/fonts/%{fontname}
+
+Summary: Microsoft ClearType fonts for better Windows Compatibility
+Name: %{fontname}-fonts
+Version: 1.0
+Release: 2%{?dist}
+
+URL: http://mscorefonts2.sourceforge.net/
+License: non-redistributable, no modifications permitted
+Group: User Interface/X
+BuildArch: noarch
+Source1: http://sourceforge.net/projects/mscorefonts2/files/cabs/PowerPointViewer.exe
+Source10: 61-%{fontname}-calibri.conf
+Source11: 61-%{fontname}-cambria.conf
+Source12: 61-%{fontname}-candara.conf
+Source13: 61-%{fontname}-consolas.conf
+Source14: 61-%{fontname}-constantia.conf
+Source15: 61-%{fontname}-corbel.conf
+
+Requires: xorg-x11-font-utils
+Requires: fontconfig
+Requires: %{fontname}-calibri-fonts
+Requires: %{fontname}-cambria-fonts
+Requires: %{fontname}-candara-fonts
+Requires: %{fontname}-consolas-fonts
+Requires: %{fontname}-constantia-fonts
+Requires: %{fontname}-corbel-fonts
+
+BuildRequires: cabextract
+BuildRequires: fontpackages-devel
+
+%description
+Cleartype fonts made available to the public in the PowerPoint Viewer
+package around 2006.
+
+This is a meta package pulling in the different fonts making the complete
+set.
+
+These fonts are old and not on pair with current Windows fonts. Installing
+them is not likely to improve the overall screen experience. However, in
+some cases pdf files produced on Windows hosts are better rendered with
+these fonts installed.
+
+
+%package common
+Summary: Common support files
+
+%description common
+Common support files for %{fontname}-fonts packages including licenses.
+
+
+%package -n %{fontname}-calibri-fonts
+Summary: %{fontname} Calibri ttf font
+Requires: %{name}-common = %{version}-%{release}
+
+%description -n %{fontname}-calibri-fonts
+Microsoft Calibri font, part of the ClearType collection made available
+in the PowerPointViewer package, still available on the Microsoft website.
+
+%_font_pkg -n calibri -f *-%{fontname}-calibri.conf CALIBR*.TTF
+
+
+%package -n %{fontname}-cambria-fonts
+Summary: %{fontname} Cambria ttf font
+Requires: %{name}-common = %{version}-%{release}
+
+%description -n %{fontname}-cambria-fonts
+Microsoft Cambria font, part of the ClearType collection made available
+in the PowerPointViewer package, still available on the Microsoft website.
+
+%_font_pkg -n cambria -f *-%{fontname}-cambria.conf CAMBRI*.TTF
+
+
+%package -n %{fontname}-candara-fonts
+Summary: %{fontname} Trebuchet ttf font
+Requires: %{name}-common = %{version}-%{release}
+
+%description -n %{fontname}-candara-fonts
+Microsoft Candara font, part of the ClearType collection made available
+in the PowerPointViewer package, still available on the Microsoft website.
+
+%_font_pkg -n candara -f *-%{fontname}-candara.conf CANDAR*.TTF
+
+
+%package -n %{fontname}-consolas-fonts
+Summary: %{fontname} verdana ttf font
+Requires: %{name}-common = %{version}-%{release}
+
+%description -n %{fontname}-consolas-fonts
+Microsoft Consolas font, part of the ClearType collection made available
+in the PowerPointViewer package, still available on the Microsoft website.
+
+%_font_pkg -n consolas -f *-%{fontname}-consolas.conf CONSOL*.TTF
+
+
+%package -n %{fontname}-constantia-fonts
+Summary: %{fontname} Andale Mono ttf font
+Requires: %{name}-common = %{version}-%{release}
+
+%description -n %{fontname}-constantia-fonts
+Microsoft Constantia font, part of the ClearType collection made available
+in the PowerPointViewer package, still available on the Microsoft website.
+
+%_font_pkg -n constantia -f *-%{fontname}-constantia.conf CONSTAN*.TTF
+
+
+%package -n %{fontname}-corbel-fonts
+Summary: %{fontname} corbel ttf font
+Requires: %{name}-common = %{version}-%{release}
+
+%description -n %{fontname}-corbel-fonts
+Microsoft Corbel font, part of the ClearType collection made available
+in the PowerPointViewer package, still available on the Microsoft website.
+
+%_font_pkg -n corbel -f *-%{fontname}-corbel.conf CORBEL*.TTF
+
+
+%prep
+%setup -cT
+cabextract %{SOURCE1}
+cabextract ppviewer.cab
+touch -r eula.txt timestamp
+sed -i 's/\r//' eula.txt
+iconv -f utf-16 -t utf-8 < eula.txt > eula.tmp && mv -f eula.tmp eula.txt
+touch -r timestamp eula.txt
+
+
+%build
+
+
+%install
+install -d $RPM_BUILD_ROOT/%{fontdir}
+install -m 644 -p *.TTF $RPM_BUILD_ROOT/%{fontdir}
+install -m 0755 -d $RPM_BUILD_ROOT%{_fontconfig_templatedir} \
+ $RPM_BUILD_ROOT%{_fontconfig_confdir}
+for fontconf in \
+ %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} %{SOURCE14} %{SOURCE15}
+do
+ install -m 0644 -p $fontconf %{buildroot}%{_fontconfig_templatedir}
+ basename=$( basename $fontconf )
+ ln -s %{_fontconfig_templatedir}/$basename \
+ %{buildroot}%{_fontconfig_confdir}/$basename
+done
+
+
+%files common
+%doc eula.txt
+
+
+%files
+
+
+%changelog
+* Fri Feb 14 2014 Alec Leamas <leamas.alec(a)gmail.com> - 1.0-1
+- Changed description, downplaying usefullness.
+- Lower config priority (55 -> 61).
+
+* Tue Feb 11 2014 Alec Leamas <leamas.alec(a)gmail.com> - 1.0-1
+- Initial release.
diff --git a/eula.txt b/eula.txt
new file mode 100644
index 0000000..e152077
--- /dev/null
+++ b/eula.txt
@@ -0,0 +1,49 @@
+MICROSOFT SOFTWARE LICENSE TERMS
+MICROSOFT OFFICE VIEWER 2007
+These license terms are an agreement between Microsoft Corporation (or based on where you live, one of its affiliates) and you. Please read them. They apply to the software named above, which includes the media on which you received it, if any. The terms also apply to any Microsoft
+• updates,
+• supplements,
+• Internet-based services, and
+• support services
+for this software, unless other terms accompany those items. If so, those terms apply.
+BY USING THE SOFTWARE, YOU ACCEPT THESE TERMS. IF YOU DO NOT ACCEPT THEM, DO NOT USE THE SOFTWARE.
+If you comply with these license terms, you have the rights below.
+1. INSTALLATION AND USE RIGHTS.
+a. General. You may install and use any number of copies of the software on your devices. You may use the software only to view and print files created with Microsoft Office software. You may not use the software for any other purpose.
+b. Distribution. You may copy and distribute the software, provided that:
+• each copy is complete and unmodified, including presentation of this agreement for each user's acceptance; and
+• you indemnify, defend, and hold harmless Microsoft and its affiliates and suppliers from any claims, including attorneys’ fees, related to your distribution of the software.
+You may not:
+• distribute the software with any non-Microsoft software that may use the software to enhance its functionality,
+• alter any copyright, trademark or patent notices in the software,
+• use Microsoft’s or affiliates or suppliers’ name, logo or trademarks to market your products or services,
+• distribute the software with malicious, deceptive or unlawful programs, or
+• modify or distribute the software so that any part of it becomes subject to an Excluded License. An Excluded License is one that requires, as a condition of use, modification or distribution, that
+• the code be disclosed or distributed in source code form; or
+• others have the right to modify it.
+2. SCOPE OF LICENSE. The software is licensed, not sold. This agreement only gives you some rights to use the software. Microsoft reserves all other rights. Unless applicable law gives you more rights despite this limitation, you may use the software only as expressly permitted in this agreement. In doing so, you must comply with any technical limitations in the software that only allow you to use it in certain ways. You may not
+• work around any technical limitations in the software;
+• reverse engineer, decompile or disassemble the software, except and only to the extent that applicable law expressly permits, despite this limitation;
+• make more copies of the software than specified in this agreement or allowed by applicable law, despite this limitation;
+• publish the software for others to copy;
+• rent, lease or lend the software; or
+• use the software for commercial software hosting services.
+3. BACKUP COPY. You may make one backup copy of the software. You may use it only to reinstall the software.
+4. DOCUMENTATION. Any person that has valid access to your computer or internal network may copy and use the documentation for your internal, reference purposes.
+5. TRANSFER TO ANOTHER DEVICE. You may uninstall the software and install it on another device for your use. You may not do so to share this license between devices.
+6. EXPORT RESTRICTIONS. The software is subject to United States export laws and regulations. You must comply with all domestic and international export laws and regulations that apply to the software. These laws include restrictions on destinations, end users and end use. For additional information, see www.microsoft.com/exporting.
+7. SUPPORT SERVICES. Because this software is “as is,” we may not provide support services for it.
+8. ENTIRE AGREEMENT. This agreement, and the terms for supplements, updates, Internet-based services and support services that you use, are the entire agreement for the software and support services.
+9. APPLICABLE LAW.
+a. United States. If you acquired the software in the United States, Washington state law governs the interpretation of this agreement and applies to claims for breach of it, regardless of conflict of laws principles. The laws of the state where you live govern all other claims, including claims under state consumer protection laws, unfair competition laws, and in tort.
+b. Outside the United States. If you acquired the software in any other country, the laws of that country apply.
+10. LEGAL EFFECT. This agreement describes certain legal rights. You may have other rights under the laws of your country. You may also have rights with respect to the party from whom you acquired the software. This agreement does not change your rights under the laws of your country if the laws of your country do not permit it to do so.
+11. DISCLAIMER OF WARRANTY. THE SOFTWARE IS LICENSED “AS-IS.” YOU BEAR THE RISK OF USING IT. MICROSOFT GIVES NO EXPRESS WARRANTIES, GUARANTEES OR CONDITIONS. YOU MAY HAVE ADDITIONAL CONSUMER RIGHTS UNDER YOUR LOCAL LAWS WHICH THIS AGREEMENT CANNOT CHANGE. TO THE EXTENT PERMITTED UNDER YOUR LOCAL LAWS, MICROSOFT EXCLUDES THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+12. LIMITATION ON AND EXCLUSION OF REMEDIES AND DAMAGES. YOU CAN RECOVER FROM MICROSOFT AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP TO U.S. $5.00. YOU CANNOT RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL, LOST PROFITS, SPECIAL, INDIRECT OR INCIDENTAL DAMAGES.
+This limitation applies to
+• anything related to the software, services, content (including code) on third party Internet sites, or third party programs; and
+• claims for breach of contract, breach of warranty, guarantee or condition, strict liability, negligence, or other tort to the extent permitted by applicable law.
+It also applies even if Microsoft knew or should have known about the possibility of the damages. The above limitation or exclusion may not apply to you because your country may not allow the exclusion or limitation of incidental, consequential or other damages.
+
+EULAID:O12_RTM_VWR.0_ALL_EN
+
diff --git a/lpf-cleartype-fonts.spec b/lpf-cleartype-fonts.spec
new file mode 100644
index 0000000..601fae6
--- /dev/null
+++ b/lpf-cleartype-fonts.spec
@@ -0,0 +1,64 @@
+Name: lpf-cleartype-fonts
+Version: 1.0
+Release: 1%{?dist}
+Summary: Bootstrap package building cleartype-fonts using lpf
+
+License: MIT
+URL: https://github.com/leamas/lpf
+Group: Development/Tools
+BuildArch: noarch
+Source0: cleartype-fonts.spec.in
+Source1: eula.txt
+Source2: 61-cleartype-calibri.conf
+Source3: 61-cleartype-cambria.conf
+Source4: 61-cleartype-candara.conf
+Source5: 61-cleartype-consolas.conf
+Source6: 61-cleartype-constantia.conf
+Source7: 61-cleartype-corbel.conf
+
+BuildRequires: desktop-file-utils
+BuildRequires: lpf
+Requires: lpf
+
+%global target_pkg %(t=%{name}; echo ${t#lpf-})
+
+
+%description
+Bootstrap package allowing the lpf system to build the
+cleartype-fonts non-redistributable package.
+
+
+%prep
+%setup -cT
+
+
+%build
+
+
+%install
+# lpf-setup-pkg [-e eula] <topdir> <specfile> [sources...]
+/usr/share/lpf/scripts/lpf-setup-pkg -e %{SOURCE1} %{buildroot} %{SOURCE0} \
+ %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7}
+
+
+%post
+%lpf_post
+
+%postun
+%lpf_postun
+
+%lpf_triggerpostun
+
+
+%files
+%{_datadir}/applications/%{name}.desktop
+%{_datadir}/lpf/packages/%{target_pkg}
+%attr(775,pkg-build,pkg-build) /var/lib/lpf/packages/%{target_pkg}
+
+
+%changelog
+* Fri Feb 14 2014 Alec Leamas <leamas.alec(a)gmail.com> - 1.0-1
+- New target spec: Updated description, lower config prio.
+
+* Mon Feb 10 2014 Alec Leamas <leamas.alec(a)gmail.com> - 1.0-1
+- Initial release
7 years, 2 months