Add an AppData file for the software center
This commit is contained in:
parent
e86e290f45
commit
22b5a493e1
@ -21,7 +21,7 @@
|
||||
Summary: Network traffic analyzer
|
||||
Name: wireshark
|
||||
Version: 1.12.4
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: GPL+
|
||||
Group: Applications/Internet
|
||||
Source0: http://wireshark.org/download/src/%{name}-%{version}.tar.bz2
|
||||
@ -265,6 +265,44 @@ install -m 644 wsutil/*.h "${IDIR}/wsutil"
|
||||
install -m 644 ws_symbol_export.h "${IDIR}/"
|
||||
install -m 644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/udev/rules.d/
|
||||
|
||||
# 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 Richard Hughes <richard@hughsie.com> -->
|
||||
<!--
|
||||
BugReportURL: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=10479
|
||||
SentUpstream: 2014-09-18
|
||||
-->
|
||||
<application>
|
||||
<id type="desktop">wireshark.desktop</id>
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<description>
|
||||
<p>
|
||||
Wireshark is an essential tool to capture and analyze the packets
|
||||
arriving or leaving the network interface.
|
||||
It is almost a GUI equivalent of the classic unix tool tcpdump.
|
||||
</p>
|
||||
<p>
|
||||
Wireshark has a easy to use GUI to capture the packets matching the
|
||||
filter, on the mentioned interface and save them for later analysis.
|
||||
</p>
|
||||
</description>
|
||||
<url type="homepage">http://www.wireshark.org</url>
|
||||
<screenshots>
|
||||
<screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/wireshark/a.png</screenshot>
|
||||
<screenshot>https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/wireshark/b.png</screenshot>
|
||||
</screenshots>
|
||||
<updatecontact>http://www.wireshark.org/lists/</updatecontact>
|
||||
</application>
|
||||
EOF
|
||||
|
||||
# Remove .la files
|
||||
rm -f %{buildroot}%{_libdir}/%{name}/plugins/%{version}/*.la
|
||||
|
||||
@ -341,6 +379,7 @@ update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
|
||||
|
||||
|
||||
%files gnome
|
||||
%{_datadir}/appdata/%{name}.appdata.xml
|
||||
%{_datadir}/applications/wireshark.desktop
|
||||
%{_datadir}/icons/hicolor/16x16/apps/wireshark.png
|
||||
%{_datadir}/icons/hicolor/24x24/apps/wireshark.png
|
||||
@ -372,6 +411,9 @@ update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
|
||||
%{_datadir}/aclocal/*
|
||||
|
||||
%changelog
|
||||
* Thu Mar 26 2015 Richard Hughes <rhughes@redhat.com> - 1.12.4-2
|
||||
- Add an AppData file for the software center
|
||||
|
||||
* Thu Mar 5 2015 Peter Hatina <phatina@redhat.com> - 1.12.4-1
|
||||
- Ver. 1.12.4
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user