Add appinfo file for AppStream (#1476506)

This commit is contained in:
Pavel Zhukov 2018-02-27 16:08:33 +01:00
parent be1eabc567
commit a237feb63a
2 changed files with 34 additions and 1 deletions

View File

@ -8,7 +8,7 @@ Name: nmap
Epoch: 2
Version: 7.60
#global prerelease TEST5
Release: 12%{?dist}
Release: 13%{?dist}
# Uses combination of licenses based on GPL license, but with extra modification
# so it got its own license tag rhbz#1055861
License: Nmap
@ -17,6 +17,7 @@ Requires: %{name}-ncat = %{epoch}:%{version}-%{release}
Source0: http://nmap.org/dist/%{name}-%{version}%{?prerelease}.tar.bz2
Source1: zenmap.desktop
Source2: zenmap-root.pamd
Source3: zenmap.appdata.xml
#prevent possible race condition for shtool, rhbz#158996
Patch1: nmap-4.03-mktemp.patch
@ -171,6 +172,9 @@ desktop-file-install --vendor nmap \
--add-category X-Red-Hat-Base \
%{SOURCE1};
mkdir -p %{buildroot}/%{_datadir}/metainfo/
install -p -m 0644 %SOURCE3 %{buildroot}/%{_datadir}/metainfo/
#for .desktop and app icon
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/256x256/apps
ln -s ../../../../zenmap/pixmaps/zenmap.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps
@ -225,8 +229,12 @@ popd
%{_mandir}/man1/zenmap.1.gz
%{_mandir}/man1/nmapfe.1.gz
%{_mandir}/man1/xnmap.1.gz
%{_datadir}/metainfo/zenmap.appdata.xml
%changelog
* Tue Feb 27 2018 Pavel Zhukov <pzhukov@redhat.com> - 2:7.60-13
- Add appinfo file (#1476506)
* Mon Feb 19 2018 Pavel Zhukov <pzhukov@redhat.com> - 2:7.60-12
- add gcc-c++ BR

25
zenmap.appinfo.xml Normal file
View File

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2017 Pavel Zhukov <landgraf@fedoraproject.org> -->
<component type="desktop">
<id>zenmap.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>Nmap</project_license>
<name>Zenmap</name>
<summary>The GTK+ front end for nmap</summary>
<description>
<p>
This package includes zenmap, a GTK+ front end for nmap. The nmap package must
be installed before installing nmap front end.
</p>
</description>
<screenshots>
<screenshot type="default">
<image>https://nmap.org/zenmap/images/zenmap-multi-1220x700.png</image>
</screenshot>
<screenshot>
<image>https://nmap.org/zenmap/images/zenmap-no-648x700.png</image>
</screenshot>
</screenshots>
<url type="homepage">https://nmap.org/zenmap/</url>
<update_contact>landgraf_at_fedoraproject.org</update_contact>
</component>