File gnome-firmware.spec of Package gnome-firmware

#
# spec file for package gnome-firmware
#
# Copyright (c) 2022 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:           gnome-firmware
Version:        43.1
Release:        0
Summary:        Install firmware on devices
License:        GPL-2.0-or-later
Group:          System/Management
URL:            https://gitlab.gnome.org/World/gnome-firmware
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  help2man
BuildRequires:  meson >= 0.46.0
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(fwupd) >= 1.7.5
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gtk4) >= 4.2
BuildRequires:  pkgconfig(libadwaita-1) >= 1.0.0
BuildRequires:  pkgconfig(xmlb) >= 0.1.7
Provides:       gnome-firmware-updater = %{version}-%{release}
Obsoletes:      gnome-firmware-updater < %{version}-%{release}
Provides:       gnome-firmware-updater-lang = %{version}-%{release}
Obsoletes:      gnome-firmware-updater-lang < %{version}-%{release}
%lang_package

%description
This application can update, reinstall and downgrade firmware on devices
supported by fwupd.

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install
%suse_update_desktop_file -r -G "Install firmware on devices" org.gnome.Firmware "GTK;GNOME;Settings;HardwareSettings;"

%find_lang %{name}

%files
%license COPYING
%doc README.md
%{_bindir}/gnome-firmware
%{_datadir}/applications/org.gnome.Firmware.desktop
%{_datadir}/metainfo/org.gnome.Firmware.metainfo.xml
%{_datadir}/icons/hicolor/scalable/apps/org.gnome.Firmware.svg
%{_datadir}/icons/hicolor/symbolic/apps/org.gnome.Firmware-symbolic.svg
%{_mandir}/man1/gnome-firmware.1%{?ext_man}

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by