File dualsensectl.spec of Package dualsensectl

#
# spec file for package dualsensectl
#
# 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/
#

Name:           dualsensectl
Version:        0.5
Release:        3%{?dist}
Summary:        Tool for controlling PlayStation 5 DualSense controllers on Linux
License:        GPL-2.0
URL:            https://github.com/nowrep/dualsensectl
Source:         https://github.com/nowrep/dualsensectl/archive/refs/tags/v%{version}.tar.gz
BuildRequires:  gcc
BuildRequires:  make
BuildRequires:  pkgconfig(systemd)
BuildRequires:  pkgconfig(dbus-1)
BuildRequires:  pkgconfig(hidapi-hidraw)
BuildRequires:  pkgconfig(hidapi-libusb)
BuildRequires:  pkgconfig(udev)

%description
DualSense Control [DualSenseCTL] is a tool for controlling Sony PlayStation 5 DualSense controllers on Linux.

%prep
%autosetup -p1 -n "%{name}-%{version}"

%build
%make_build

%install
%make_install

%files
"%{_bindir}/%{name}"
"%{_datadir}/bash-completion/completions/%{name}"
%dir "%{_datadir}/zsh/"
%dir "%{_datadir}/zsh/site-functions/"
"%{_datadir}/zsh/site-functions/_%{name}"
%license "LICENSE"
%doc "README.md"

%changelog
openSUSE Build Service is sponsored by