commit 2c612ef6384eed975d0206b2806826fb1e485622
Author: Akira TAGOH <ta...@redhat.com>
Date:   Fri Mar 20 16:40:13 2015 +0900

    Add metainfo file.

 ipa-gothic-fonts.spec   | 10 +++++++++-
 ipa-gothic.metainfo.xml | 21 +++++++++++++++++++++
 2 files changed, 30 insertions(+), 1 deletion(-)
---
diff --git a/ipa-gothic-fonts.spec b/ipa-gothic-fonts.spec
index 3f914de..3f82930 100644
--- a/ipa-gothic-fonts.spec
+++ b/ipa-gothic-fonts.spec
@@ -6,7 +6,7 @@
 
 Name:          %{fontname}-fonts
 Version:       003.03
-Release:       6%{?dist}
+Release:       7%{?dist}
 Summary:       Japanese Gothic-typeface OpenType font by IPA
 
 Group:         User Interface/X
@@ -14,6 +14,7 @@ License:      IPA
 URL:           http://ossipedia.ipa.go.jp/ipafont/
 Source0:       
http://info.openlab.ipa.go.jp/ipafont/fontdata/%{archivename}.zip
 Source1:       %{name}-fontconfig.conf
+Source2:       %{fontname}.metainfo.xml
 
 BuildArch:     noarch
 BuildRequires: fontpackages-devel
@@ -40,6 +41,9 @@ install -m 0755 -d    
$RPM_BUILD_ROOT%{_fontconfig_templatedir}       \
 install -m 0644 -p     %{SOURCE1}      \
                        $RPM_BUILD_ROOT%{_fontconfig_templatedir}/%{fontconf}
 
+install -m 0755 -d $RPM_BUILD_ROOT%{_datadir}/appdata
+install -m 0644 -p %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/appdata
+
 ln -s  %{_fontconfig_templatedir}/%{fontconf}  \
        $RPM_BUILD_ROOT%{_fontconfig_confdir}/%{fontconf}
 
@@ -47,9 +51,13 @@ ln -s        %{_fontconfig_templatedir}/%{fontconf}  \
 %_font_pkg -f %{fontconf} *.ttf
 
 %doc Readme_%{archivename}.txt IPA_Font_License_Agreement_v1.0.txt
+%{_datadir}/appdata/%{fontname}.metainfo.xml
 
 
 %changelog
+* Fri Mar 20 2015 Akira TAGOH <ta...@redhat.com> - 003.03-7
+- Add metainfo file.
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-...@lists.fedoraproject.org> 
- 003.03-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
diff --git a/ipa-gothic.metainfo.xml b/ipa-gothic.metainfo.xml
new file mode 100644
index 0000000..30da3c7
--- /dev/null
+++ b/ipa-gothic.metainfo.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2015 Akira TAGOH <ta...@redhat.com> -->
+<component type="font">
+ <id>ipa-gothic</id>
+ <metadata_license>CC-BY-3.0</metadata_license>
+ <project_license>IPA</project_license>
+ <name>IPAGothic</name>
+ <summary>Japanese Gothic-typeface OpenType font by IPA</summary>
+ <description>
+  <p>
+   IPA Font is a Japanese OpenType fonts that is JIS X 0213:2004
+   compliant, provided by Information-technology Promotion Agency, Japan.
+  </p>
+  <p>
+   This font is a sans-serif based typeface.
+  </p>
+ </description>
+ <url type="homepage">http://ossipedia.ipa.go.jp/ipafont/</url>
+ <updatecontact>ta...@redhat.com</updatecontact>
+</component>
+
_______________________________________________
fonts-bugs mailing list
fonts-bugs@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/fonts-bugs
http://fonts.fedoraproject.org/

Reply via email to