Prefer lshw-gui in lshw-gui context
This commit is contained in:
parent
ca642f60a1
commit
a5312cc759
2
lshw-gui
2
lshw-gui
@ -1,5 +1,5 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
/usr/bin/pkexec /usr/sbin/gtk-lshw
|
/usr/bin/pkexec /usr/sbin/lshw-gui
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<!-- Copyright 2017 Daniel Rusek <mail@asciiwolf.com> -->
|
<!-- Copyright 2017 Daniel Rusek <mail@asciiwolf.com> -->
|
||||||
<component type="desktop">
|
<component type="desktop">
|
||||||
<id>gtk-lshw.desktop</id>
|
<id>lshw-gui.desktop</id>
|
||||||
<project_license>GPL-2.0</project_license>
|
<project_license>GPL-2.0</project_license>
|
||||||
<metadata_license>CC0-1.0</metadata_license>
|
<metadata_license>CC0-1.0</metadata_license>
|
||||||
<name>LSHW</name>
|
<name>LSHW</name>
|
||||||
|
@ -4,7 +4,7 @@ Name=Hardware Lister
|
|||||||
Comment=Browse hardware on host computer
|
Comment=Browse hardware on host computer
|
||||||
StartupNotify=true
|
StartupNotify=true
|
||||||
Exec=/usr/bin/lshw-gui
|
Exec=/usr/bin/lshw-gui
|
||||||
Icon=lshw-logo
|
Icon=lshw-gui
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Type=Application
|
Type=Application
|
||||||
Categories=GTK;System;
|
Categories=GTK;System;
|
19
lshw.spec
19
lshw.spec
@ -1,12 +1,12 @@
|
|||||||
Summary: Hardware lister
|
Summary: Hardware lister
|
||||||
Name: lshw
|
Name: lshw
|
||||||
Version: B.02.18
|
Version: B.02.18
|
||||||
Release: 10%{?dist}
|
Release: 11%{?dist}
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
URL: http://ezix.org/project/wiki/HardwareLiSter
|
URL: http://ezix.org/project/wiki/HardwareLiSter
|
||||||
Source0: http://www.ezix.org/software/files/lshw-%{version}.tar.gz
|
Source0: http://www.ezix.org/software/files/lshw-%{version}.tar.gz
|
||||||
Source1: lshw.desktop
|
Source1: lshw-gui.desktop
|
||||||
Source2: org.ezix.lshw.gui.policy
|
Source2: org.ezix.lshw.gui.policy
|
||||||
Source3: lshw-gui
|
Source3: lshw-gui
|
||||||
Source4: lshw-gui.appdata.xml
|
Source4: lshw-gui.appdata.xml
|
||||||
@ -66,7 +66,8 @@ make install-gui \
|
|||||||
STRIP="/bin/true" \
|
STRIP="/bin/true" \
|
||||||
INSTALL="install -p"
|
INSTALL="install -p"
|
||||||
|
|
||||||
ln -s -f gtk-lshw %{buildroot}%{_sbindir}/lshw-gui
|
mv %{buildroot}%{_sbindir}/gtk-lshw %{buildroot}%{_sbindir}/lshw-gui
|
||||||
|
ln -s -f lshw-gui %{buildroot}%{_sbindir}/gtk-lshw
|
||||||
|
|
||||||
# don't package these copies, use the ones from hwdata instead
|
# don't package these copies, use the ones from hwdata instead
|
||||||
rm -f %{buildroot}%{_datadir}/%{name}/pci.ids
|
rm -f %{buildroot}%{_datadir}/%{name}/pci.ids
|
||||||
@ -78,7 +79,9 @@ rm -f %{buildroot}%{_datadir}/%{name}/manuf.txt
|
|||||||
|
|
||||||
# desktop icon
|
# desktop icon
|
||||||
install -D -m 0644 -p ./src/gui/artwork/logo.svg \
|
install -D -m 0644 -p ./src/gui/artwork/logo.svg \
|
||||||
%{buildroot}%{_datadir}/pixmaps/%{name}-logo.svg
|
%{buildroot}%{_datadir}/pixmaps/%{name}-gui.svg
|
||||||
|
install -D -m 0644 -p ./src/gui/artwork/logo.svg \
|
||||||
|
%{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}-gui.svg
|
||||||
desktop-file-install %{?vendortag:--vendor fedora} \
|
desktop-file-install %{?vendortag:--vendor fedora} \
|
||||||
--dir %{buildroot}%{_datadir}/applications %{SOURCE1}
|
--dir %{buildroot}%{_datadir}/applications %{SOURCE1}
|
||||||
|
|
||||||
@ -111,12 +114,16 @@ appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/*.appdata
|
|||||||
%{_sbindir}/gtk-%{name}
|
%{_sbindir}/gtk-%{name}
|
||||||
%{_sbindir}/%{name}-gui
|
%{_sbindir}/%{name}-gui
|
||||||
%{_datadir}/%{name}
|
%{_datadir}/%{name}
|
||||||
%{_datadir}/pixmaps/%{name}-logo.svg
|
%{_datadir}/pixmaps/%{name}-gui.svg
|
||||||
%{_datadir}/applications/*%{name}.desktop
|
%{_datadir}/icons/hicolor/scalable/apps/%{name}-gui.svg
|
||||||
|
%{_datadir}/applications/%{name}-gui.desktop
|
||||||
%{_datadir}/appdata/%{name}-gui.appdata.xml
|
%{_datadir}/appdata/%{name}-gui.appdata.xml
|
||||||
%{_datadir}/polkit-1/actions/org.ezix.lshw.gui.policy
|
%{_datadir}/polkit-1/actions/org.ezix.lshw.gui.policy
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Aug 28 2017 Terje Rosten <terje.rosten@ntnu.no> - B.02.18-11
|
||||||
|
- Prefer lshw-gui in lshw-gui context
|
||||||
|
|
||||||
* Sun Aug 13 2017 Terje Rosten <terje.rosten@ntnu.no> - B.02.18-10
|
* Sun Aug 13 2017 Terje Rosten <terje.rosten@ntnu.no> - B.02.18-10
|
||||||
- Add AppData bz#1476498
|
- Add AppData bz#1476498
|
||||||
|
|
||||||
|
@ -8,13 +8,13 @@
|
|||||||
<action id="org.ezix.lshw.gui.pkexec.run">
|
<action id="org.ezix.lshw.gui.pkexec.run">
|
||||||
<description>Hardware Lister (lshw) - list hardware information</description>
|
<description>Hardware Lister (lshw) - list hardware information</description>
|
||||||
<message>Authentication is required to run lshw-gui</message>
|
<message>Authentication is required to run lshw-gui</message>
|
||||||
<icon_name>lshw-logo</icon_name>
|
<icon_name>lshw-gui</icon_name>
|
||||||
<defaults>
|
<defaults>
|
||||||
<allow_any>no</allow_any>
|
<allow_any>no</allow_any>
|
||||||
<allow_inactive>no</allow_inactive>
|
<allow_inactive>no</allow_inactive>
|
||||||
<allow_active>auth_admin_keep</allow_active>
|
<allow_active>auth_admin_keep</allow_active>
|
||||||
</defaults>
|
</defaults>
|
||||||
<annotate key="org.freedesktop.policykit.exec.path">/usr/sbin/gtk-lshw</annotate>
|
<annotate key="org.freedesktop.policykit.exec.path">/usr/sbin/lshw-gui</annotate>
|
||||||
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
|
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
|
||||||
</action>
|
</action>
|
||||||
</policyconfig>
|
</policyconfig>
|
||||||
|
Loading…
Reference in New Issue
Block a user