%global commit0 627468b537befb16c0d04e426450b2fe7eb85c9f %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) %global date0 20170903 Name: openconnect-gateway Version: 0 Release: 0.2.%{date0}git%{shortcommit0}%{?dist} Summary: Connect to a VPN without routing everything through the VPN License: MIT URL: https://github.com/millermatt/%{name} Source0: %{url}/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz BuildArch: noarch Requires: ca-certificates openconnect wget %description %{summary}. Some sample scripts to run in shell. See readme.md for proper usage. %prep %autosetup -n%{name}-%{commit0} %build # no %install mkdir -p %{buildroot}/%{_bindir} cp -av connect.sh %{buildroot}/%{_bindir}/%{name} %files %license LICENSE %doc readme.md %doc Vagrantfile %doc *.sh %{_bindir}/%{name} %changelog * Wed Jun 15 2022 Raphael Groner - 0-0.2.20170903git627468b - minor fixes for review * Thu Mar 04 2021 Raphael Groner - 0-0.1.20170903git627468b - initial