Files
lan-mouse/lan-mouse.spec

53 lines
1.7 KiB
RPMSpec

Summary: Software KVM switch for keyboard and mouse sharing over LAN
Name: lan-mouse
Version: 0.10.0
Release: 1mamba
License: GPL-3.0-only
Group: Graphical Desktop/Applications/Networking
Vendor: openmamba
Distribution: openmamba
Packager: Claude <claude@openmamba.org>
URL: https://github.com/feschber/lan-mouse
Source: https://github.com/feschber/lan-mouse.git/v0.10.0/lan-mouse-0.10.0.tar.bz2
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRequires: cargo
BuildRequires: desktop-file-utils
BuildRequires: libadwaita-devel
BuildRequires: libei-devel
BuildRequires: libX11-devel
BuildRequires: libXtst-devel
# Rust release profile already strips symbols (strip = true, lto = "fat")
%define debug_package %{nil}
%description
lan-mouse is a software KVM switch that allows sharing keyboard and mouse between multiple computers over a Local Area Network. It supports Wayland (via wlr-layer-shell protocol and libei/RemoteDesktop portal) and X11.
%prep
%autosetup -n %{name}-%{version}
%build
export CARGO_HOME=$PWD/.cargo
cargo build --release --all-features
%install
install -Dm0755 target/release/%{name} %{buildroot}%{_bindir}/%{name}
desktop-file-install -m 644 --dir %{buildroot}%{_datadir}/applications/ \
de.feschber.LanMouse.desktop
install -Dm0644 lan-mouse-gtk/resources/de.feschber.LanMouse.svg \
%{buildroot}%{_datadir}/icons/hicolor/scalable/apps/de.feschber.LanMouse.svg
%files
%defattr(-,root,root)
%{_bindir}/%{name}
%{_datadir}/applications/de.feschber.LanMouse.desktop
%{_datadir}/icons/hicolor/scalable/apps/de.feschber.LanMouse.svg
%doc LICENSE
%changelog
* Sun Mar 08 2026 Claude <claude@openmamba.org> 0.10.0-1mamba
- initial package for openmamba