rhughes pushed to chinese-calendar (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:20:18 UTC 2015
>From 7be6e47624c65fd45bddff837e622d66f2d20486 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:06:54 +0000
Subject: Add an AppData file for the software center
diff --git a/chinese-calendar.spec b/chinese-calendar.spec
index 9c67c67..3f8c218 100644
--- a/chinese-calendar.spec
+++ b/chinese-calendar.spec
@@ -1,6 +1,6 @@
Name: chinese-calendar
Version: 0.8.1
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: A Chinese traditional calendar of UbuntuKylin
License: GPLv3
URL: https://launchpad.net/chinese-calendar
@@ -26,6 +26,38 @@ make %{?_smp_mflags}
%install
make install INSTALL_ROOT=%{buildroot}
+# Register as an application to be visible in the software center
+#
+# NOTE: It would be *awesome* if this file was maintained by the upstream
+# project, translated and installed into the right place during `make install`.
+#
+# See http://www.freedesktop.org/software/appstream/docs/ for more details.
+#
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
+cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Ryan Lerch <rlerch at redhat.com> -->
+<!--
+BugReportURL: https://bugs.launchpad.net/chinese-calendar/+bug/1322680
+SentUpstream: 2014-09-17
+-->
+<application>
+ <id type="desktop">chinese-calendar.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>Chinese traditional calendar</summary>
+ <description>
+ <p>
+ Chinese Calendar is a calendar application tailored to Chinese users. It allows you to easily
+ find the names and dates of festivals and also query solar terms typically used in China.
+ </p>
+ </description>
+ <url type="homepage">https://launchpad.net/chinese-calendar</url>
+ <screenshots>
+ <screenshot type="default">http://assets.ubuntu.com/sites/ubuntu/1138/u/img/desktop/image-chinese-lunar-calendar.png</screenshot>
+ </screenshots>
+</application>
+EOF
+
%check
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
@@ -33,11 +65,15 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
%exclude %{_sysconfdir}/xdg/autostart/*.desktop
%{_bindir}/chinese-calendar-autostart
%{_bindir}/%{name}
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%{_datadir}/pixmaps/chinesecalendar-64.png
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.8.1-4
+- Add an AppData file for the software center
+
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.8.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/chinese-calendar.git/commit/?h=master&id=7be6e47624c65fd45bddff837e622d66f2d20486
More information about the scm-commits
mailing list