commit 5af0738d0941be92390ff00592c9b4fdfe0b9420
Author: Parag Nemade <[email protected]>
Date: Fri Nov 7 11:07:45 2014 +0530
Add metainfo file to show this font in gnome-software
- Remove %clean section which is optional now
- Remove buildroot which is optional now
- Remove removal of buildroot in %install
- Remove %defattr
- Remove group tag
kanjistrokeorders-fonts.spec | 22 ++++++++++++++--------
1 files changed, 14 insertions(+), 8 deletions(-)
---
diff --git a/kanjistrokeorders-fonts.spec b/kanjistrokeorders-fonts.spec
index ea0d3d3..51aca90 100644
--- a/kanjistrokeorders-fonts.spec
+++ b/kanjistrokeorders-fonts.spec
@@ -4,14 +4,13 @@
Name: %{fontname}-fonts
Version: 3.001
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Font to view stroke order diagrams for Kanji, Kana and etc
License: BSD
-Group: User Interface/X
URL: http://sites.google.com/site/nihilistorguk/
Source0: https://dl.dropboxusercontent.com/u/39004158/%{archivename}.zip
Source1: %{name}-fontconfig.conf
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Source2: %{fontname}.metainfo.xml
BuildArch: noarch
BuildRequires: fontpackages-devel
%description
@@ -33,8 +32,6 @@ sed -i 's#\r##g' readme_en_v%{version}.utf
%install
-rm -rf $RPM_BUILD_ROOT
-
install -m 0755 -d $RPM_BUILD_ROOT%{_fontdir}
install -m 0644 -p *.ttf $RPM_BUILD_ROOT%{_fontdir}
@@ -47,17 +44,26 @@ install -m 0644 -p %{SOURCE1} \
ln -s %{_fontconfig_templatedir}/%{fontconf} \
%{buildroot}%{_fontconfig_confdir}/%{fontconf}
-%clean
-rm -rf ${RPM_BUILD_ROOT}
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE2} \
+ %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
%files
-%defattr(0644, root, root, 0755)
%_font_pkg -f %{fontconf} *.ttf
%doc *.pdf *.txt *.utf
+%{_datadir}/appdata/%{fontname}.metainfo.xml
%changelog
+* Fri Nov 07 2014 Parag Nemade <pnemade AT redhat DOT com> - 3.001-2
+- Add metainfo file to show this font in gnome-software
+- Remove %%clean section which is optional now
+- Remove buildroot which is optional now
+- Remove removal of buildroot in %%install
+- Remove %%defattr
+- Remove group tag
+
* Mon Sep 22 2014 Paul Flo Williams <[email protected]> - 3.001-1
- New upstream version, with additions and improvements to about 40 characters
_______________________________________________
fonts-bugs mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/fonts-bugs
http://fonts.fedoraproject.org/