Add AppData file
This commit is contained in:
parent
19cab3f7e4
commit
ca642f60a1
22
lshw-gui.appdata.xml
Normal file
22
lshw-gui.appdata.xml
Normal file
@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!-- Copyright 2017 Daniel Rusek <mail@asciiwolf.com> -->
|
||||
<component type="desktop">
|
||||
<id>gtk-lshw.desktop</id>
|
||||
<project_license>GPL-2.0</project_license>
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<name>LSHW</name>
|
||||
<summary>Provides information on hardware</summary>
|
||||
<description>
|
||||
<p>
|
||||
A small tool to provide detailed information on the hardware
|
||||
configuration of the machine. It can report exact memory
|
||||
configuration, firmware version, mainboard configuration, CPU
|
||||
version and speed, cache configuration, bus speed, etc. on
|
||||
DMI-capable x86 systems, on some PowerPC machines (PowerMac G4
|
||||
is known to work) and AMD64.
|
||||
</p>
|
||||
</description>
|
||||
<url type="homepage">http://www.ezix.org/project/wiki/HardwareLiSter</url>
|
||||
<update_contact>mail@asciiwolf.com</update_contact>
|
||||
</component>
|
||||
|
19
lshw.spec
19
lshw.spec
@ -1,7 +1,7 @@
|
||||
Summary: Hardware lister
|
||||
Name: lshw
|
||||
Version: B.02.18
|
||||
Release: 9%{?dist}
|
||||
Release: 10%{?dist}
|
||||
License: GPLv2
|
||||
Group: Applications/System
|
||||
URL: http://ezix.org/project/wiki/HardwareLiSter
|
||||
@ -9,9 +9,13 @@ Source0: http://www.ezix.org/software/files/lshw-%{version}.tar.gz
|
||||
Source1: lshw.desktop
|
||||
Source2: org.ezix.lshw.gui.policy
|
||||
Source3: lshw-gui
|
||||
Source4: lshw-gui.appdata.xml
|
||||
Patch1: lshw-B.02.18-non-root.patch
|
||||
Patch2: lshw-B.02.18-long-bit.patch
|
||||
Patch3: lshw-B.02.18-scandir.patch
|
||||
BuildRequires: gtk2-devel >= 2.4
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: libappstream-glib
|
||||
Requires: hwdata
|
||||
%description
|
||||
lshw is a small tool to provide detailed informaton on the hardware
|
||||
@ -27,8 +31,6 @@ Summary: Graphical hardware lister
|
||||
Group: Applications/System
|
||||
Requires: polkit
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
BuildRequires: gtk2-devel >= 2.4
|
||||
BuildRequires: desktop-file-utils
|
||||
%description gui
|
||||
Graphical frontend for the hardware lister (lshw) tool. If desired,
|
||||
hardware information can be saved to file in plain, XML or HTML
|
||||
@ -85,10 +87,17 @@ install -D -m 0644 %{SOURCE2} \
|
||||
%{buildroot}%{_datadir}/polkit-1/actions/org.ezix.lshw.gui.policy
|
||||
install -D -m 0755 %{SOURCE3} %{buildroot}%{_bindir}/lshw-gui
|
||||
|
||||
# AppData
|
||||
install -D -m 0644 %{SOURCE4} \
|
||||
%{buildroot}%{_datadir}/appdata/lshw-gui.appdata.xml
|
||||
|
||||
# translations seems borken, remove for now
|
||||
#find_lang %{name}
|
||||
rm -rf %{buildroot}%{_datadir}/locale/fr/
|
||||
|
||||
%check
|
||||
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/*.appdata.xml
|
||||
|
||||
#files -f %{name}.lang
|
||||
%files
|
||||
%license COPYING
|
||||
@ -104,9 +113,13 @@ rm -rf %{buildroot}%{_datadir}/locale/fr/
|
||||
%{_datadir}/%{name}
|
||||
%{_datadir}/pixmaps/%{name}-logo.svg
|
||||
%{_datadir}/applications/*%{name}.desktop
|
||||
%{_datadir}/appdata/%{name}-gui.appdata.xml
|
||||
%{_datadir}/polkit-1/actions/org.ezix.lshw.gui.policy
|
||||
|
||||
%changelog
|
||||
* Sun Aug 13 2017 Terje Rosten <terje.rosten@ntnu.no> - B.02.18-10
|
||||
- Add AppData bz#1476498
|
||||
|
||||
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - B.02.18-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user