Skip to content

Commit 95632e2

Browse files
committed
add git package
1 parent afd6975 commit 95632e2

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

hhd-git.spec

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
Name: hhd
2+
Version: {{{ git_dir_version }}}
3+
Release: 2%{?dist}
4+
Summary: Handheld Daemon, a tool for configuring handheld devices.
5+
6+
License: LGPL-2.1-or-later
7+
URL: https://github.com/hhd-dev/hhd
8+
VCS: {{{ git_dir_vcs }}}
9+
Source: {{{ git_dir_pack }}}
10+
11+
BuildArch: noarch
12+
BuildRequires: systemd-rpm-macros
13+
BuildRequires: python3-devel
14+
BuildRequires: python3-build
15+
BuildRequires: python3-installer
16+
BuildRequires: python3-setuptools
17+
BuildRequires: python3-wheel
18+
BuildRequires: python3-babel
19+
20+
Requires: python3
21+
Requires: python3-evdev
22+
Requires: python3-rich
23+
Requires: python3-yaml
24+
Requires: python3-setuptools
25+
Requires: python3-xlib
26+
Requires: python3-pyserial
27+
Requires: python3-pyroute2
28+
Requires: python3-gobject
29+
Requires: python-fuse
30+
Requires: libusb1
31+
Requires: hidapi
32+
33+
Obsoletes: adjustor
34+
35+
%description
36+
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.
37+
38+
%prep
39+
{{{ git_dir_setup_macro }}}
40+
41+
%build
42+
%{python3} -m babel.messages.frontend compile -D hhd -d ./i18n
43+
%{python3} -m babel.messages.frontend compile -D adjustor -d ./i18n || true
44+
cp -rf ./i18n/* ./src/hhd/i18n
45+
%{python3} -m build --wheel --no-isolation
46+
47+
%install
48+
%{python3} -m installer --destdir="%{buildroot}" dist/*.whl
49+
mkdir -p %{buildroot}%{_udevrulesdir}
50+
install -m644 usr/lib/udev/rules.d/83-%{name}.rules %{buildroot}%{_udevrulesdir}/83-%{name}.rules
51+
mkdir -p %{buildroot}%{_sysconfdir}/udev/hwdb.d
52+
install -m644 usr/lib/udev/hwdb.d/83-%{name}.hwdb %{buildroot}%{_sysconfdir}/udev/hwdb.d/83-%{name}.hwdb
53+
mkdir -p %{buildroot}%{_unitdir}
54+
install -m644 usr/lib/systemd/system/%{name}@.service %{buildroot}%{_unitdir}/%{name}@.service
55+
install -m644 usr/lib/systemd/system/%{name}.service %{buildroot}%{_unitdir}/%{name}.service
56+
57+
%files
58+
%doc readme.md
59+
%license LICENSE
60+
%{_bindir}/%{name}*
61+
%{python3_sitelib}/%{name}*
62+
%{_udevrulesdir}/83-%{name}.rules
63+
%{_sysconfdir}/udev/hwdb.d/83-%{name}.hwdb
64+
%{_unitdir}/%{name}@.service
65+
%{_unitdir}/%{name}.service
66+
67+
%{python3_sitelib}/adjustor*
68+
# %{_datarootdir}/dbus-1/system.d/%{name}-net.hadess.PowerProfiles.conf

0 commit comments

Comments
 (0)