rkvm
rkvm copied to clipboard
cargo.toml tweaks for rpm build
Minimal tweaks to the toml files to enable easy build on RPM distros with cargo-rpm Tested on Fedora 35.
There is also a rename for cert in this commit that is necessary as well: https://github.com/htrefil/rkvm/pull/9/commits/7a4eabafac73f610c93ace029e284f509f24c06d
I'm hoping the author can merge these, as most of the PRs are really good. I plan to merge them all in a fork and do an RPM ... do you have a spec that you can share @NeoTheFox ?
I'm hoping the author can merge these, as most of the PRs are really good. I plan to merge them all in a fork and do an RPM ... do you have a spec that you can share @NeoTheFox ?
The RPMs are generated by cargo-rpm using the Cargo.toml files. You should go to the client or the server folders and run cargo rpm init
in there. The spec files are going to be in .rpm/client.spec
Here is the one generated for client on my machine:
%define __spec_install_post %{nil}
%define __os_install_post %{_dbpath}/brp-compress
%define debug_package %{nil}
Name: client
Summary: A tool for sharing keyboard and mouse across multiple Linux and Windows machines, the client
Version: @@VERSION@@
Release: @@RELEASE@@%{?dist}
License: MIT
Group: Applications/System
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
%description
%{summary}
%prep
%setup -q
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}
cp -a * %{buildroot}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_bindir}/*