plautrba pushed to setroubleshoot (f22). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Apr 9 13:44:31 UTC 2015
>From 329c7eab28bd09d66aeceb9217b0af5095dbc6c9 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:43:04 +0000
Subject: Add an AppData file for the software center
diff --git a/setroubleshoot.spec b/setroubleshoot.spec
index 57650b2..bf2b46d 100644
--- a/setroubleshoot.spec
+++ b/setroubleshoot.spec
@@ -1,7 +1,7 @@
Summary: Helps troubleshoot SELinux problems
Name: setroubleshoot
Version: 3.2.22
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPLv2+
Group: Applications/System
URL: https://fedorahosted.org/setroubleshoot
@@ -87,6 +87,46 @@ mkdir -p %{buildroot}%{pkgvardatadir}
touch %{buildroot}%{pkgdatabase}
touch %{buildroot}%{pkgvardatadir}/email_alert_recipients
rm -rf %{buildroot}/usr/share/doc/
+
+# 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://fedorahosted.org/setroubleshoot/ticket/14
+SentUpstream: 2014-07-02
+-->
+<application>
+ <id type="desktop">setroubleshoot.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>Troubleshoot SELinux policy and access denials</summary>
+ <description>
+ <p>
+ The SELinux Troubleshooter provides a graphical user interface to help
+ diagnose SELinux policy issues.
+ When Access Vector Cache (AVC) denial messages are logged by SELinux,
+ the SELinux Troubleshooter generates a desktop notification containing
+ information about the problem and allows the user to launch the
+ troubleshooting interface to help track down the cause of the denial.
+ </p>
+ </description>
+ <url type="homepage">https://fedorahosted.org/setroubleshoot/</url>
+ <screenshots>
+ <screenshot type="default">https://fedorahosted.org/setroubleshoot/raw-attachment/wiki/WikiStart/setroubleshoot.png</screenshot>
+ </screenshots>
+ <!-- FIXME: change this to an upstream email address for spec updates
+ <updatecontact>someone_who_cares at upstream_project.org</updatecontact>
+ -->
+</application>
+EOF
+
%find_lang %{name}
%package server
@@ -128,6 +168,7 @@ rm -rf %{buildroot}
%files server -f %{name}.lang
%defattr(-,root,root,-)
+%{_datadir}/appdata/*.appdata.xml
%{_bindir}/sealert
%{_sbindir}/sedispatch
%{_sbindir}/setroubleshootd
@@ -171,6 +212,9 @@ rm -rf %{buildroot}
%{_datadir}/dbus-1/system-services/org.fedoraproject.SetroubleshootFixit.service
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 3.2.22-2
+- Add an AppData file for the software center
+
* Thu Mar 26 2015 Petr Lautrbach <plautrba at redhat.com> 3.2.22-1
- Ship a symbolic setroubleshoot icon (#1182652)
- Fix get_rpm_nvr_*_temporary functions - CVE-2015-1815 (#1203352)
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/setroubleshoot.git/commit/?h=f22&id=329c7eab28bd09d66aeceb9217b0af5095dbc6c9
More information about the scm-commits
mailing list