RPM Spec file
Thulium-Drake opened this issue · 0 comments
Thulium-Drake commented
Hi there!
I created a SPEC file that will re-use the compiled artifacts from Github and package it for use on RPM-based distro's. Feel free to use it :-)
Do you want a PR with the SPEC file?
Name: assh
Version: %{version}
Release: 1%{?dist}
Summary: A transparent wrapper that adds extra features to SSH
BuildArch: x86_64
License: MIT
%undefine _disable_source_fetch
Source0: https://github.com/moul/assh/releases/download/v%{version}/assh_%{version}_linux_amd64.tar.gz
%description
A transparent wrapper that adds support for regex, aliases, gateways, dynamic hostnames, graphviz, json output, yaml configuration, and more to SSH.
lib-ssh wraps assh as a ProxyCommand; it means that it works seamlessly with:
* ssh
* scp
* rsync
* git
* Desktop applications depending on lib-ssh or ssh (i.e., Tower, Atom.io, SSH Tunnel Manager)
%prep
rm -rf %{name}-%{version}
mkdir %{name}-%{version}
cd %{name}-%{version}
/usr/lib/rpm/rpmuncompress -vx %{_sourcedir}/%{name}_%{version}_linux_amd64.tar.gz .
%install
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
cp %{_builddir}/%{name}-%{version}/%{name} $RPM_BUILD_ROOT/%{_bindir}/%{name}
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/%{name}
cp %{_builddir}/%{name}-%{version}/LICENSE $RPM_BUILD_ROOT/usr/share/doc/%{name}
cp %{_builddir}/%{name}-%{version}/README.md $RPM_BUILD_ROOT/usr/share/doc/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%{_bindir}/%{name}
/usr/share/doc/%{name}/LICENSE
/usr/share/doc/%{name}/README.md
%changelog
* Mon Jan 29 2024 Jeffrey van Pelt <jeff@vanpelt.one> - 0.0.1
- Initial RPM package
You can build it with rpmbuild -bb -D 'version 2.16.0' SPECS/assh.spec