File tuxedo-touchpad-switch.spec of Package tuxedo-touchpad-switch

#
# spec file for package tuxedo-touchpad-switch
#
# 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:           tuxedo-touchpad-switch
Version:        1.1.0
Release:        0
Summary:        Linux userspace driver to enable/disable the touchpads using a HID command
License:        GPL-3.0
URL:            https://github.com/tuxedocomputers/tuxedo-touchpad-switch
Source:         %{name}-%{version}.tar.bz2
BuildRequires:  c++_compiler
BuildRequires:  pkgconfig
BuildRequires:  cmake >= 3.6
BuildRequires:  pkgconfig(libudev)
BuildRequires:  pkgconfig(gio-2.0)

%description
Toggles the touchpad and the attached disabled-LED on Uniwill/Tongfang laptops.
Provides a userspace driver that listens to config changes of the touchpad
enabled/disabled state in the xsession and sends appropriate commands to
/dev/hidraw* to appropiratly synchronize the hardware state. The LED on
Uniwill/Tongfang laptops touchpads is hardwired to that HID state, so this
package toggles this LED correctly.

%prep
%autosetup -p1

%build
%cmake
%cmake_build

%install
%cmake_install

%check
%ctest

%files
%license LICENSE.txt
%doc ReadMe.md
%{_bindir}/%{name}
/usr/lib/udev/rules.d/99-%{name}.rules
%config %{_sysconfdir}/%{name}-lockfile
%config %{_sysconfdir}/xdg/autostart/%{name}.desktop
%dir %{_datadir}/gdm/
%dir %{_datadir}/gdm/greeter/
%dir %{_datadir}/gdm/greeter/autostart
%{_datadir}/gdm/greeter/autostart/%{name}.desktop

%changelog

openSUSE Build Service is sponsored by