Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPM Spec file #679

Open
Thulium-Drake opened this issue Jan 29, 2024 · 0 comments
Open

RPM Spec file #679

Thulium-Drake opened this issue Jan 29, 2024 · 0 comments

Comments

@Thulium-Drake
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant