[phetsarath-fonts] Initial import (#1151721)

Parag Nemade pnemade at fedoraproject.org
Sun Nov 2 10:33:06 UTC 2014


commit e663de013c12494a48197b5f4c886f51933f9b0d
Author: Parag Nemade <pnemade at redhat.com>
Date:   Sun Nov 2 16:03:10 2014 +0530

    Initial import (#1151721)

 .gitignore                       |    1 +
 phetsarath-fonts-fontconfig.conf |   21 ++++++++++++
 phetsarath-fonts.spec            |   68 ++++++++++++++++++++++++++++++++++++++
 phetsarath.metainfo.xml          |   16 +++++++++
 sources                          |    1 +
 5 files changed, 107 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..88630c3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/download.zip
diff --git a/phetsarath-fonts-fontconfig.conf b/phetsarath-fonts-fontconfig.conf
new file mode 100644
index 0000000..bfa9ca4
--- /dev/null
+++ b/phetsarath-fonts-fontconfig.conf
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
+<fontconfig>
+  <match>
+    <test name="lang" compare="contains">
+       <string>lo</string>
+    </test>
+    <test name="family">
+       <string>sans-serif</string>
+    </test>
+    <edit name="family" mode="prepend">
+       <string>Phetsarath</string>
+    </edit>
+  </match>
+  <alias>
+     <family>Phetsarath</family>
+         <default>
+             <family>sans-serif</family>
+        </default>
+  </alias>
+</fontconfig>
diff --git a/phetsarath-fonts.spec b/phetsarath-fonts.spec
new file mode 100644
index 0000000..8791475
--- /dev/null
+++ b/phetsarath-fonts.spec
@@ -0,0 +1,68 @@
+%global fontname phetsarath
+%global fontconf 67-%{fontname}.conf
+
+Name:           %{fontname}-fonts
+Version:        1.01
+Release:        4%{?dist}
+Summary:        The font for the Lao language
+
+License:        OFL
+URL:            http://www.google.com/fonts/earlyaccess
+Source0:        http://themes.googleusercontent.com/static/fonts/earlyaccess/phetsarath/v3/download.zip
+Source1:        %{name}-fontconfig.conf
+Source2:        %{fontname}.metainfo.xml
+
+BuildArch:      noarch
+BuildRequires:  fontpackages-devel
+Requires:       fontpackages-filesystem
+
+Obsoletes:      google-phetsarath-fonts < 1.01-3.fc21
+Provides:       google-phetsarath-fonts = %{version}-%{release}
+
+%description
+This is a font for the Lao language which is commissioned by the Ministry of
+Posts and Telecommunications of the Laos government.
+
+%prep
+%setup -q -c
+
+
+%build
+# nothing to build
+
+%install
+install -m 0755 -d %{buildroot}%{_fontdir}
+install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
+
+install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
+                   %{buildroot}%{_fontconfig_confdir}
+
+install -m 0644 -p %{SOURCE1} \
+        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}
+ln -s %{_fontconfig_templatedir}/%{fontconf} \
+      %{buildroot}%{_fontconfig_confdir}/%{fontconf}
+
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE2} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
+
+%_font_pkg -f %{fontconf} *.ttf
+%doc OFL.txt
+%{_datadir}/appdata/%{fontname}.metainfo.xml
+
+%changelog
+* Thu Oct 30 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.01-4
+- Add metainfo file to show this font in gnome-software
+
+* Sat Oct 11 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.01-3
+- Renamed from google-phetsarath-fonts to phetsarath-fonts
+
+* Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.01-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
+
+* Sat Nov 23 2013 Parag Nemade <pnemade AT redhat DOT com> - 1.01-1
+- Use upstream as google font directory
+
+* Mon Nov 18 2013 Parag Nemade <pnemade AT redhat DOT com> - 1.00-1
+- Initial Fedora release.
+
diff --git a/phetsarath.metainfo.xml b/phetsarath.metainfo.xml
new file mode 100644
index 0000000..ad743de
--- /dev/null
+++ b/phetsarath.metainfo.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Parag Nemade <pnemade AT redhat DOT com> -->
+<component type="font">
+  <id>phetsarath</id>
+  <metadata_license>CC-BY-3.0</metadata_license>
+  <name>Phetsarath</name>
+  <summary></summary>
+  <description>
+    <p>
+       This is a font for the Lao language which is commissioned by the Ministry of
+       Posts and Telecommunications of the Laos government.
+    </p>
+  </description>
+  <updatecontact>pnemade_at_redhat_dot_com</updatecontact>
+  <url type="homepage">http://www.google.com/fonts/earlyaccess</url>
+</component>
diff --git a/sources b/sources
index e69de29..09126b8 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+d1d6b86692454aa1b9b90dff94674cc8  download.zip


More information about the scm-commits mailing list