File goodnight-mouse.spec of Package goodnigt-mouse

#
# spec file for package goodnight-mouse
#
# Copyright (c) 2024 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/
#


%if 0%{?suse_version} < 1550
%global gcc_version 13
%global gcc_suffix -13
%endif
Name:           goodnight-mouse
Version:        2.0.0+git9.b3aa05a
Release:        0
Summary:        Use keyboard to select UI elements
License:        GPL-3.0-or-later
Group:          System/X11/Utilities
URL:            https://github.com/rpbritton/goodnight-mouse
Source:         %{name}-%{version}.tar.gz
Patch0:         config-Correctly-resolve-in-default-config-path.patch
BuildRequires:  at-spi2-core-devel
BuildRequires:  meson
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(gsl)
BuildRequires:  pkgconfig(gtk+-3.0)
%if 0%{?gcc_version}
BuildRequires:  gcc%{gcc_version}
%endif

%description
Quickly label all button and links with a short key sequence as an alternative to using the mouse.

%prep
%autosetup -p1

%build
export CC="gcc%{?gcc_suffix} -fPIC -pie"
%meson
%meson_build

%install
%meson_install
install -m 755 -D -t %{buildroot}%{_bindir} %{_vpath_builddir}/goodnight_mouse

%files
%license LICENSE
%doc README.md examples
%{_bindir}/goodnight_mouse

%changelog
openSUSE Build Service is sponsored by