tieugene pushed to nomacs (f21). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Wed Apr 15 19:02:31 UTC 2015
>From ecc9fb649dcedaec74794761c979c1352a25f705 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:39:34 +0000
Subject: Add an AppData file for the software center
diff --git a/nomacs.spec b/nomacs.spec
index 8af34d7..3108272 100644
--- a/nomacs.spec
+++ b/nomacs.spec
@@ -1,6 +1,6 @@
Name: nomacs
Version: 2.4.2
-Release: 2%{?dist}
+Release: 3%{?dist}
License: GPLv3+
Url: http://nomacs.org
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}-source.tar.bz2
@@ -60,6 +60,43 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
# hack - wrong lang code "als" (http://www.nomacs.org/redmine/issues/228)
rm -f translations/nomacs_als.ts
rm -f %{buildroot}/%{_datadir}/%{name}/translations/nomacs_als.qm
+
+# 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: http://www.nomacs.org/redmine/issues/364
+SentUpstream: 2014-09-22
+-->
+<application>
+ <id type="desktop">nomacs.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>View and edit images</summary>
+ <description>
+ <p>
+ Nomacs is a fast image viewer with additional image editing functionality.
+ When viewing images, it features fast thumbnail previews, a zoomable grid
+ display of thumbnails, a chromeless view, and display of metadata and
+ image details with a histogram.
+ It also has the ability to edit images, including cropping, resizing,
+ rotating and color correction.
+ </p>
+ </description>
+ <url type="homepage">http://nomacs.org</url>
+ <screenshots>
+ <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/nomacs/a.png</screenshot>
+ </screenshots>
+</application>
+EOF
+
%find_lang %{name} --with-qt --without-mo
@@ -68,12 +105,16 @@ rm -f %{buildroot}/%{_datadir}/%{name}/translations/nomacs_als.qm
%{_bindir}/%{name}
%dir %{_datadir}/%{name}/
%dir %{_datadir}/%{name}/translations/
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_mandir}/man1/%{name}.*
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 2.4.2-3
+- Add an AppData file for the software center
+
* Tue Mar 03 2015 TI_Eugene <ti.eugene at gmail.com> 2.4.2-2
- Version bump.
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/nomacs.git/commit/?h=f21&id=ecc9fb649dcedaec74794761c979c1352a25f705
More information about the scm-commits
mailing list