File dual-function-keys.spec of Package dual-function-keys

#
# spec file for package dual-function-keys
#
# Copyright (c) 2024 soupglasses <sofi+git@mailbox.org>.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/


Name:           dual-function-keys
Version:        1.5.0
Release:        0
License:        MIT
Summary:        Interception plugin for dual-function keys: Tap for one key, hold for another
Url:            https://gitlab.com/interception/linux/plugins/dual-function-keys
Source:         https://gitlab.com/interception/linux/plugins/%{name}/-/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  yaml-cpp-devel
BuildRequires:  libevdev-devel
Requires:       interception-tools

%description
Interception plugin for dual-function keys: Tap for one key, hold for another

%prep
%setup -q -n %{name}-%{version}

%build
export CFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
export CXXFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
%make_build

%install
%make_install PREFIX="/usr"

%files
%doc README.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1%{?ext_man}

%changelog
openSUSE Build Service is sponsored by