From 329c7eab28bd09d66aeceb9217b0af5095dbc6c9 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Thu, 26 Mar 2015 16:43:04 +0000 Subject: [PATCH] Add an AppData file for the software center --- setroubleshoot.spec | 46 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) 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 < + + + + setroubleshoot.desktop + CC0-1.0 + Troubleshoot SELinux policy and access denials + +

+ 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. +

+
+ https://fedorahosted.org/setroubleshoot/ + + https://fedorahosted.org/setroubleshoot/raw-attachment/wiki/WikiStart/setroubleshoot.png + + +
+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 - 3.2.22-2 +- Add an AppData file for the software center + * Thu Mar 26 2015 Petr Lautrbach 3.2.22-1 - Ship a symbolic setroubleshoot icon (#1182652) - Fix get_rpm_nvr_*_temporary functions - CVE-2015-1815 (#1203352)