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:  meson
BuildRequires:  fdupes

%if 0%{?suse_version}
BuildRequires:  udev
BuildRequires:  update-desktop-files
BuildRequires:  python-rpm-generators
%endif
%if 0%{?fedora}
BuildRequires:  systemd-udev
BuildRequires:  python3-rpm-generators
%endif

Requires:  python3-evdev
Requires:  python3-pyudev
Requires:  python3-pyxdg
Requires:  python3-scipy

%if 0%{?suse_version}
Requires:  python311-matplotlib-gtk3
%endif
%if 0%{?fedora}
Requires:  python3-matplotlib-gtk3
%endif

%{?python_enable_dependency_generator}
BuildArch:      noarch
%if 0%{?suse_version}
%lang_package
%endif

%description
Oversteer - Steering Wheel Manager for Linux.

%check

%prep
%autosetup

%build
%meson
%meson_build

%install
%meson_install
%if 0%{?suse_version}
%suse_update_desktop_file -r org.berarma.Oversteer "Settings;HardwareSettings;"
%endif
%find_lang %{name}


%files -f %{name}.lang
%license LICENSE
%doc README.md
%dir %attr(0555, root, root) /usr/bin
%dir %attr(0555, 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

%changelog
openSUSE Build Service is sponsored by