File efibootmgr-gui.spec of Package efibootmgr-gui
#
# spec file for package efibootmgr-gui
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: efibootmgr-gui
Version: 0.1
Release: 0
Summary: GUI for efibootmgr
License: GPL-3.0-only
URL: https://github.com/Elinvention/efibootmgr-gui
Source: %{name}-%{version}.tar.gz
Patch0: exec-efibootmgr.patch
Requires: efibootmgr
Requires: typelib(Gtk)
BuildRequires: update-desktop-files
BuildArch: noarch
%description
Manage EFI boot loader entries with this simple GUI
%prep
%autosetup -p1
%build
%install
sed -i 's,^#!/usr/bin/env ,#!/usr/bin/,' efibootmgr_gui.py
install -dm 0755 %{buildroot}/%{_sbindir}
install -m 0755 efibootmgr_gui.py %{buildroot}/%{_sbindir}/%{name}
%suse_update_desktop_file -c efibootmgr efibootmgr-gui efibootmgr-gui "/usr/sbin/efibootmgr-gui" system-shutdown "Settings;HardwareSettings;GNOME;GTK"
%files
%license LICENSE
%doc README.md
%{_sbindir}/%{name}
%{_datadir}/applications/*.desktop
%changelog