-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
close #2249 (cherry picked from commit 0cfb240) Co-authored-by: madomado <[email protected]>
- Loading branch information
Showing
3 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
project pkg { | ||
rpm { | ||
spec = "inputplumber.spec" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
Name: inputplumber | ||
Version: 0.36.5 | ||
Release: 1%?dist | ||
Summary: Open source input router and remapper daemon for Linux | ||
License: GPL-3.0-or-later | ||
URL: https://github.com/ShadowBlip/InputPlumber | ||
Source0: %{url}/archive/refs/tags/v%version.tar.gz | ||
BuildRequires: libevdev-devel libiio-devel git make cargo libudev-devel llvm-devel clang-devel | ||
BuildRequires: rust-packaging cargo-rpm-macros mold rpm_macro(cargo_prep_online) | ||
Requires: libevdev libiio | ||
Recommends: steam gamescope-session linuxconsoletools | ||
Packager: madonuko <[email protected]> | ||
Provides: inputplumber | ||
Conflicts: hhd | ||
|
||
%description | ||
InputPlumber is an open source input routing and control daemon for Linux. It | ||
can be used to combine any number of input devices (like gamepads, mice, and | ||
keyboards) and translate their input to a variety of virtual device formats. | ||
|
||
%prep | ||
%autosetup -n InputPlumber-%version | ||
%cargo_prep_online | ||
|
||
%build | ||
%cargo_build | ||
|
||
%install | ||
%make_install BUILD_TYPE=rpm PREFIX=%buildroot%_prefix | ||
|
||
%post | ||
%systemd_post inputplumber.service | ||
|
||
%preun | ||
%systemd_preun inputplumber.service | ||
|
||
%postun | ||
%systemd_postun_with_restart inputplumber.service | ||
|
||
%files | ||
%doc README.md | ||
%license LICENSE | ||
%_bindir/inputplumber | ||
%_unitdir/inputplumber.service | ||
%_udevhwdbdir/59-inputplumber.hwdb | ||
%_datadir/dbus-1/system.d/org.shadowblip.InputPlumber.conf | ||
%_datadir/inputplumber/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rpm.version(gh("ShadowBlip/InputPlumber")); |