-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathadjustor.spec
45 lines (37 loc) · 1.6 KB
/
adjustor.spec
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
Name: adjustor
Version: REPLACE_VERSION
Release: 1%{?dist}
Summary: Adjustor, a userspace program for managing the TDP of handheld devices.
License: GPL-3.0-or-later
URL: https://github.com/hhd-dev/adjustor
Source: https://pypi.python.org/packages/source/a/%{name}/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: systemd-rpm-macros
BuildRequires: python3-devel
BuildRequires: python3-build
BuildRequires: python3-installer
BuildRequires: python3-setuptools
BuildRequires: python3-wheel
Requires: python3
Requires: python3-rich
Requires: python3-yaml
Requires: python3-pyroute2
Requires: python3-gobject
Requires: python-fuse
%description
Handheld Daemon is a project that aims to provide utilities for managing handheld devices. With features ranging from TDP controls, to controller remappings, and gamescope session management. This will be done through a plugin system and an HTTP(/d-bus?) daemon, which will expose the settings of the plugins in a UI agnostic way.
%prep
%autosetup -n %{name}-%{version}
%build
%{python3} -m build --wheel --no-isolation
%install
%{python3} -m installer --destdir="%{buildroot}" dist/*.whl
# mkdir -p %{buildroot}%{_datarootdir}/dbus-1/system.d
# install -m644 usr/share/dbus-1/system.d/hhd-net.hadess.PowerProfiles.conf %{buildroot}%{_datarootdir}/dbus-1/system.d/%{name}-net.hadess.PowerProfiles.conf
%files
%doc readme.md
%license LICENSE
%{_bindir}/adj
%{_bindir}/%{name}*
%{python3_sitelib}/%{name}*
# %{_datarootdir}/dbus-1/system.d/%{name}-net.hadess.PowerProfiles.conf