rhughes pushed to viewnior (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 17:03:22 UTC 2015
>From 523afd571f657fe8fa6616d63d3519dce7719d84 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:45:47 +0000
Subject: Add an AppData file for the software center
diff --git a/viewnior.spec b/viewnior.spec
index cbb6836..b1a41ea 100644
--- a/viewnior.spec
+++ b/viewnior.spec
@@ -1,6 +1,6 @@
Name: viewnior
Version: 1.4
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Elegant image viewer
Group: User Interface/X
@@ -53,6 +53,42 @@ make install DESTDIR=%{buildroot} INSTALL='install -p'
%find_lang %{name}
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
+# 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/viewnior/+bug/1323677
+SentUpstream: 2014-09-18
+-->
+<application>
+ <id type="desktop">viewnior.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>Simple image viewer and editor</summary>
+ <description>
+ <p>
+ Viewnior is a simple and elegant image viewer with a minimal interface that
+ provides as much screen real estate as possible to view your images.
+ It has a wide range of features, including: fullscreen and slideshow modes,
+ the ability to rotate, flip and crop images, support for animations (GIF),
+ support for reading image metadata, and the ability to configure mouse actions.
+ </p>
+ </description>
+ <url type="homepage">http://siyanpanayotov.com/project/viewnior/</url>
+ <screenshots>
+ <screenshot type="default">http://siyanpanayotov.com/wp-content/uploads/2014/04/vnr_normal_mode_2.png</screenshot>
+ <screenshot>http://siyanpanayotov.com/wp-content/uploads/2014/04/vnr_pref_window.png</screenshot>
+ <screenshot>http://siyanpanayotov.com/wp-content/uploads/2014/04/vnr_navigation_window.png</screenshot>
+ </screenshots>
+</application>
+EOF
%clean
rm -rf %{buildroot}
@@ -79,6 +115,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README TODO
%{_bindir}/%{name}
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_datadir}/%{name}/
@@ -86,6 +123,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.4-3
+- Add an AppData file for the software center
+
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/viewnior.git/commit/?h=master&id=523afd571f657fe8fa6616d63d3519dce7719d84
More information about the scm-commits
mailing list