[freecol] Add a MetaInfo file for the software center
Richard Hughes
rhughes at fedoraproject.org
Fri Oct 17 20:29:49 UTC 2014
commit 3bfd6acab4341a5c455b5eaba324533019d80a59
Author: Richard Hughes <richard at hughsie.com>
Date: Fri Oct 17 21:29:24 2014 +0100
Add a MetaInfo file for the software center
freecol-imperator.metainfo.xml | 8 ++++++++
freecol.spec | 10 +++++++++-
2 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/freecol-imperator.metainfo.xml b/freecol-imperator.metainfo.xml
new file mode 100644
index 0000000..9514e6b
--- /dev/null
+++ b/freecol-imperator.metainfo.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Richard Hughes <richard at hughsie.com> -->
+<component type="font">
+ <id>freecol-imperator</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <name>Imperator</name>
+ <summary>A gothic font</summary>
+</component>
diff --git a/freecol.spec b/freecol.spec
index 82c58c7..5ad844e 100644
--- a/freecol.spec
+++ b/freecol.spec
@@ -7,7 +7,7 @@
Name: freecol
Version: 0.10.7
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Turn-based multi-player strategy game
Group: Amusements/Games
License: GPL+
@@ -16,6 +16,7 @@ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}-src.
Source1: %{name}.sh
Source2: %{name}.desktop
Source3: freecol.appdata.xml
+Source4: %{name}-imperator.metainfo.xml
Patch0: freecol-no-classpath-in-MF.patch
# texlive makeindex disallows absolute paths, and file= gets turned into one
Patch1: freecol-fix-makeindex-invocation.patch
@@ -124,6 +125,9 @@ desktop-file-install \
install -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/appdata
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE4} \
+ %{buildroot}%{_datadir}/appdata/%{name}-imperator.metainfo.xml
%post
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
@@ -156,11 +160,15 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%dir %{_fontdir}
%_font_pkg -n imperator Imperator.ttf
+%{_datadir}/appdata/%{name}-imperator.metainfo.xml
%doc COPYING data/base/resources/fonts/README
%dir %{_fontdir}
%changelog
+* Fri Oct 17 2014 Richard Hughes <richard at hughsie.com> - 0.10.7-5
+- Add a MetaInfo file for the software center; this is a font we want to show.
+
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.10.7-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
More information about the scm-commits
mailing list