-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathnova-chatmix.spec
More file actions
51 lines (38 loc) · 1.38 KB
/
Copy pathnova-chatmix.spec
File metadata and controls
51 lines (38 loc) · 1.38 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
49
50
51
Name: nova-chatmix
Version: 0.1.0
Release: 1%{?dist}
Summary: ChatMix Implementation for the SteelSeries Arctis Nova Pro Wireless headset
License: 0BSD
URL: https://git.dymstro.nl/Dymstro/nova-chatmix-linux
Source0: %{name}-%{version}.tar.gz
BuildRequires: systemd-rpm-macros
Requires: python3,python3-hidapi,pipewire,pulseaudio-utils
BuildArch: noarch
%description
ChatMix Implementation for the SteelSeries Arctis Nova Pro Wireless headset
%prep
%setup -qc
# Change service to point to system bin directory
sed -i 's#%h/\.local/bin#%{_bindir}#g' nova-chatmix.service
%install
install -Dm 0755 nova-chatmix.py %{buildroot}/%{_bindir}/nova-chatmix
install -Dm 0644 50-nova-pro-wireless.rules %{buildroot}/%{_libdir}/udev/rules.d/50-nova-pro-wireless.rules
install -Dm 0644 nova-chatmix.service %{buildroot}/%{_libdir}/systemd/user/nova-chatmix.service
%post
udevadm control --reload-rules
udevadm trigger
%systemd_user_post nova-chatmix.service
%preun
%systemd_user_preun nova-chatmix.service
%postun
%systemd_user_postun_with_restart nova-chatmix.service
%systemd_user_postun nova-chatmix.service
%files
%license LICENSE
%doc README.md
%{_bindir}/nova-chatmix
%{_libdir}/udev/rules.d/50-nova-pro-wireless.rules
%{_libdir}/systemd/user/nova-chatmix.service
%changelog
* Sat Aug 16 2025 Ricardo <ricardo@dymstro.nl>
- Release 0.1.0