File oversteer.spec of Package oversteer

#
# spec file for package oversteer
#
# 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:           oversteer
Version:        0.8.2
Release:        0
Summary:        Steering wheel manager
License:        GPL-3.0-or-later
Group:          Hardware/Joystick
URL:            https://github.com/berarma/oversteer
Source:         https://github.com/berarma/oversteer/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  gettext
BuildRequires:  python3-devel
BuildRequires:  python3-pyudev
BuildRequires:  python3-gobject-devel
BuildRequires:  python3-pyxdg
BuildRequires:  python3-evdev
BuildRequires:  python3-matplotlib
BuildRequires:  python3-scipy
BuildRequires:  hicolor-icon-theme
BuildRequires:  udev
BuildRequires:  meson
BuildRequires:  update-desktop-files
BuildRequires:  python-rpm-generators
BuildRequires:  fdupes
Requires:  python311-pycairo
Requires:  python3-evdev
Requires:  python3-pyudev
Requires:  python3-pyxdg
Requires:  python3-scipy
Requires:  python311-matplotlib-gtk3
%{?python_enable_dependency_generator}
BuildArch:      noarch
%lang_package

%description
Oversteer is a desktop application to configure Logitech Wheels.

%check

%prep
%autosetup

%build
%meson
%meson_build

%install
%meson_install
%suse_update_desktop_file -r org.berarma.Oversteer "Settings;HardwareSettings;"
%find_lang %{name}

%files
%license LICENSE
%doc README.md
%dir %attr(0755, root, root) /usr/bin
%dir %attr(0755, root, root) /usr/lib
%attr(0755, root, root) /usr/bin/oversteer
%{python3_sitelib}/%{name}
%{_datadir}/metainfo/org.berarma.Oversteer.appdata.xml
%{_datadir}/applications/org.berarma.Oversteer.desktop
%{_datadir}/icons/hicolor/scalable/apps/org.berarma.Oversteer.svg
/usr/lib/udev/rules.d/99-thrustmaster-wheel-perms.rules
/usr/lib/udev/rules.d/99-logitech-wheel-perms.rules
/usr/lib/udev/rules.d/99-fanatec-wheel-perms.rules

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by