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