-
-
Notifications
You must be signed in to change notification settings - Fork 229
Expand file tree
/
Copy pathheadsetcontrol.spec
More file actions
48 lines (40 loc) · 1.53 KB
/
Copy pathheadsetcontrol.spec
File metadata and controls
48 lines (40 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Name: headsetcontrol
Version: 4.0.0
Release: 1%{?dist}
Summary: Control features of USB gaming headsets
License: GPL-3.0-only
URL: https://github.com/Sapd/HeadsetControl
Source0: %{url}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: gcc-c++
BuildRequires: cmake
BuildRequires: hidapi-devel
BuildRequires: pkgconfig
BuildRequires: systemd-rpm-macros
%description
HeadsetControl is a tool to control USB-connected gaming headsets: sidetone,
battery status, LEDs, inactive-time auto-shutoff, chatmix, equalizer presets
and more, for a wide range of Logitech, SteelSeries, Corsair, HyperX, Roccat
and Audeze devices. On Linux it installs udev rules so the headsets are
accessible without root privileges.
%prep
%autosetup -n HeadsetControl-%{version}
# Release tarballs have no git metadata; inject the version so the binary does
# not report 0.0.0-unknown. (From the next release, -DHEADSETCONTROL_VERSION
# handles this and this sed can be dropped.)
sed -i 's/git describe --tags --dirty=-modified/echo %{version}/' CMakeLists.txt
%build
%cmake -DHEADSETCONTROL_VERSION=%{version}
%cmake_build
%install
%cmake_install
# CLI package: drop the static library and dev headers
rm -f %{buildroot}%{_prefix}/lib/libheadsetcontrol*
rm -rf %{buildroot}%{_includedir}/headsetcontrol
%files
%license license
%doc README.md
%{_bindir}/headsetcontrol
%{_udevrulesdir}/70-headsets.rules
%changelog
* Thu Jul 23 2026 Denis Arnst <git@sapd.eu> - 4.0.0-1
- Initial COPR packaging