[khmeros-fonts] Adding metainfo for gnome-software.

Pravin Satpute pravins at fedoraproject.org
Thu Oct 30 10:52:21 UTC 2014


commit 6cc239ee7f8c070fd358ed7ca1b5c6b796f720e9
Author: Pravin Satpute <psatpute at redhat.com>
Date:   Thu Oct 30 16:22:21 2014 +0530

    Adding metainfo for gnome-software.

 khmeros-base.metainfo.xml          |   17 +++++++++++++++
 khmeros-battambang.metainfo.xml    |    6 +++++
 khmeros-bokor.metainfo.xml         |    6 +++++
 khmeros-fonts.spec                 |   41 ++++++++++++++++++++++++++++++++++-
 khmeros-handwritten.metainfo.xml   |    6 +++++
 khmeros-metal-chrieng.metainfo.xml |    6 +++++
 khmeros-muol.metainfo.xml          |    6 +++++
 khmeros-siemreap.metainfo.xml      |    6 +++++
 8 files changed, 92 insertions(+), 2 deletions(-)
---
diff --git a/khmeros-base.metainfo.xml b/khmeros-base.metainfo.xml
new file mode 100644
index 0000000..5088990
--- /dev/null
+++ b/khmeros-base.metainfo.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="font">
+  <id>khmeros-base</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <name>Khmer OS</name>
+  <summary>A set of Cambodian fonts</summary>
+  <description>
+    <p>
+	The Khmer OS fonts include Khmer and Latin alphabets, and they have equivalent
+	sizes for Khmer and English alphabets, so that when texts mix both it is not
+	necessary to have different point sizes for the text in each language.
+	They were created by Danh Hong of the Cambodian Open Institute.
+    </p>
+  </description>
+  <updatecontact>psatpute_at_redhat_dot_com</updatecontact>
+  <url type="homepage">http://www.khmeros.info/</url>
+</component>
diff --git a/khmeros-battambang.metainfo.xml b/khmeros-battambang.metainfo.xml
new file mode 100644
index 0000000..929fec5
--- /dev/null
+++ b/khmeros-battambang.metainfo.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="font">
+  <id>khmeros-battambang</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <extends>khmeros-base</extends>
+</component>
diff --git a/khmeros-bokor.metainfo.xml b/khmeros-bokor.metainfo.xml
new file mode 100644
index 0000000..d09b858
--- /dev/null
+++ b/khmeros-bokor.metainfo.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="font">
+  <id>khmeros-bokor</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <extends>khmeros-base</extends>
+</component>
diff --git a/khmeros-fonts.spec b/khmeros-fonts.spec
index d00d3cc..9959c21 100644
--- a/khmeros-fonts.spec
+++ b/khmeros-fonts.spec
@@ -13,12 +13,12 @@ They were created by Danh Hong of the Cambodian Open Institute.
 
 Name:           %{fontname}-fonts
 Version:        5.0
-Release:        18%{?dist}
+Release:        19%{?dist}
 Summary:        Khmer font set created by Danh Hong of the Cambodian Open Institute
 
 Group:          User Interface/X
 License:        LGPLv2+
-URL:            http://www.khmeros.info/drupal/?q=en/download/fonts
+URL:            http://www.khmeros.info/en/fonts
 Source0:        http://downloads.sourceforge.net/khmer/%{archivename}.zip
 Source1:        65-0-khmeros-battambang.conf
 Source2:        65-0-khmeros-bokor.conf
@@ -28,6 +28,13 @@ Source5:        65-0-khmeros-metal-chrieng.conf
 Source6:        65-0-khmeros-muol.conf
 Source7:        65-0-khmeros-siemreap.conf
 Source8:        License.txt
+Source9:        %{fontname}-base.metainfo.xml
+Source10:        %{fontname}-battambang.metainfo.xml
+Source11:        %{fontname}-bokor.metainfo.xml
+Source12:        %{fontname}-handwritten.metainfo.xml
+Source13:        %{fontname}-metal-chrieng.metainfo.xml
+Source14:        %{fontname}-muol.metainfo.xml
+Source15:        %{fontname}-siemreap.metainfo.xml
 
 BuildArch:      noarch
 BuildRequires:  fontpackages-devel
@@ -58,6 +65,8 @@ Requires:       %{name}-common = %{version}-%{release}
 Base KhmerOS fonts.
 
 %_font_pkg -n base -f 65-0-khmeros-base.conf KhmerOS.ttf KhmerOS_content.ttf KhmerOS_sys.ttf
+%{_datadir}/appdata/%{fontname}-base.metainfo.xml
+
 
 %package -n %{fontname}-battambang-fonts
 Summary:        Battambang font
@@ -70,6 +79,8 @@ Requires:       %{name}-common = %{version}-%{release}
 Battambang font.
 
 %_font_pkg -n battambang -f 65-0-khmeros-battambang.conf KhmerOS_battambang.ttf
+%{_datadir}/appdata/%{fontname}-battambang.metainfo.xml
+
 
 %package -n %{fontname}-bokor-fonts
 Summary:        Bokor font
@@ -82,6 +93,7 @@ Requires:       %{name}-common = %{version}-%{release}
 Bokor font.
 
 %_font_pkg -n bokor -f 65-0-khmeros-bokor.conf KhmerOS_bokor.ttf
+%{_datadir}/appdata/%{fontname}-bokor.metainfo.xml
 
 %package -n %{fontname}-handwritten-fonts
 Summary:        Freehand and fasthand fonts
@@ -94,6 +106,7 @@ Requires:       %{name}-common = %{version}-%{release}
 Freehand and fasthand - handwritten fonts.
 
 %_font_pkg -n handwritten -f 65-0-khmeros-handwritten.conf KhmerOS_freehand.ttf KhmerOS_fasthand.ttf
+%{_datadir}/appdata/%{fontname}-handwritten.metainfo.xml
 
 %package -n %{fontname}-metal-chrieng-fonts
 Summary:        Metal Chrieng font
@@ -106,6 +119,7 @@ Requires:       %{name}-common = %{version}-%{release}
 Metal Chrieng font.
 
 %_font_pkg -n metal-chrieng -f 65-0-khmeros-metal-chrieng.conf  KhmerOS_metalchrieng.ttf
+%{_datadir}/appdata/%{fontname}-metal-chrieng.metainfo.xml
 
 %package -n %{fontname}-muol-fonts
 Summary:        Muol fonts - normal, light and Pali
@@ -118,6 +132,7 @@ Requires:       %{name}-common = %{version}-%{release}
 Muol fonts - normal, light and Pali.
 
 %_font_pkg -n muol -f 65-0-khmeros-muol.conf KhmerOS_muol.ttf KhmerOS_muollight.ttf KhmerOS_muolpali.ttf
+%{_datadir}/appdata/%{fontname}-muol.metainfo.xml
 
 %package -n %{fontname}-siemreap-fonts
 Summary:        Siemreap font
@@ -130,6 +145,7 @@ Requires:       %{name}-common = %{version}-%{release}
 Siemreap font.
 
 %_font_pkg -n siemreap -f 65-0-khmeros-siemreap.conf KhmerOS_siemreap.ttf
+%{_datadir}/appdata/%{fontname}-siemreap.metainfo.xml
 
 
 %prep
@@ -157,12 +173,33 @@ ln -s %{_fontconfig_templatedir}/$conffile \
       %{buildroot}%{_fontconfig_confdir}/$conffile
 done
 
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE9} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}-base.metainfo.xml
+install -Dm 0644 -p %{SOURCE10} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}-battambang.metainfo.xml
+install -Dm 0644 -p %{SOURCE11} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}-bokor.metainfo.xml
+install -Dm 0644 -p %{SOURCE12} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}-handwritten.metainfo.xml
+install -Dm 0644 -p %{SOURCE13} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}-metal-chrieng.metainfo.xml
+install -Dm 0644 -p %{SOURCE14} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}-muol.metainfo.xml
+install -Dm 0644 -p %{SOURCE15} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}-siemreap.metainfo.xml
+
+
 %files common
 %defattr(0644,root,root,0755)
 %doc License.txt
 
 
 %changelog
+* Thu Oct 30 2014 Pravin Satpute <psatpute At redhat DIT com> - 5.0-19
+- Adding metainfo for gnome-software.
+- Corrected url
+
 * Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 5.0-18
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
diff --git a/khmeros-handwritten.metainfo.xml b/khmeros-handwritten.metainfo.xml
new file mode 100644
index 0000000..578f8ec
--- /dev/null
+++ b/khmeros-handwritten.metainfo.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="font">
+  <id>khmeros-handwritten</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <extends>khmeros-base</extends>
+</component>
diff --git a/khmeros-metal-chrieng.metainfo.xml b/khmeros-metal-chrieng.metainfo.xml
new file mode 100644
index 0000000..e12d586
--- /dev/null
+++ b/khmeros-metal-chrieng.metainfo.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="font">
+  <id>khmeros-metal-chrieng</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <extends>khmeros-base</extends>
+</component>
diff --git a/khmeros-muol.metainfo.xml b/khmeros-muol.metainfo.xml
new file mode 100644
index 0000000..d09c61e
--- /dev/null
+++ b/khmeros-muol.metainfo.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="font">
+  <id>khmeros-muol</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <extends>khmeros-base</extends>
+</component>
diff --git a/khmeros-siemreap.metainfo.xml b/khmeros-siemreap.metainfo.xml
new file mode 100644
index 0000000..89c1d93
--- /dev/null
+++ b/khmeros-siemreap.metainfo.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="font">
+  <id>khmeros-siemreap</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <extends>khmeros-base</extends>
+</component>


More information about the fonts-bugs mailing list