rkvm icon indicating copy to clipboard operation
rkvm copied to clipboard

cargo.toml tweaks for rpm build

Open NeoTheFox opened this issue 3 years ago • 3 comments

Minimal tweaks to the toml files to enable easy build on RPM distros with cargo-rpm Tested on Fedora 35.

NeoTheFox avatar Feb 04 '22 10:02 NeoTheFox

There is also a rename for cert in this commit that is necessary as well: https://github.com/htrefil/rkvm/pull/9/commits/7a4eabafac73f610c93ace029e284f509f24c06d

wendall911 avatar Feb 04 '22 16:02 wendall911

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 ?

wendall911 avatar Feb 04 '22 16:02 wendall911

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}/*

NeoTheFox avatar Feb 07 '22 08:02 NeoTheFox