rhughes pushed to skanlite (master). "Add an AppData file for the software center"

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:59:24 UTC 2015


>From cb8aadaf0676282fdb12794587ac12ad5c42ab26 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:43:23 +0000
Subject: Add an AppData file for the software center


diff --git a/skanlite.spec b/skanlite.spec
index fc340b1..ccf6f51 100644
--- a/skanlite.spec
+++ b/skanlite.spec
@@ -1,6 +1,6 @@
 Name:           skanlite
 Version:        1.1
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Lightweight scanning program
 Group:          Applications/Productivity
 # Actually: GPLv2 or GPLv3 or any later Version approved by KDE e.V.
@@ -34,6 +34,42 @@ make %{?_smp_mflags} -C %{_target_platform}
 %install
 make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
 
+# 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> -->
+<component type="desktop">
+  <id>skanlite.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Scan images</summary>
+  <description>
+    <p>
+      Skanlite is an application to scan images using a hardware scanner attached to your computer.
+      It is able to save in a variety of image formats (including JPEG) and can even
+      save your scan as a PDF.
+      Skanlite also has support for scanning multiple pages and merging them
+      into a single document.
+    </p>
+  </description>
+  <url type="homepage">http://kde-apps.org/content/show.php?content=109803</url>
+  <screenshots>
+    <screenshot type="default">
+      <image>http://kde-apps.org/CONTENT/content-pre1/109803-1.png</image>
+    </screenshot>
+    <screenshot>
+      <image>http://kde-apps.org/CONTENT/content-pre2/109803-2.png</image>
+    </screenshot>
+  </screenshots>
+</component>
+EOF
+
 %find_lang %{name} --with-kde 
 
 %check
@@ -43,9 +79,13 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/kde4/skanlite.desktop
 %defattr(-,root,root,-)
 %doc src/COPYING src/TODO
 %{_kde4_bindir}/skanlite
+%{_kde4_datadir}/appdata/%{name}.appdata.xml
 %{_kde4_datadir}/applications/kde4/skanlite.desktop
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.1-4
+- Add an AppData file for the software center
+
 * Mon Aug 18 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.1-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/skanlite.git/commit/?h=master&id=cb8aadaf0676282fdb12794587ac12ad5c42ab26


More information about the scm-commits mailing list