%global commit 84275f3725f2d4821d409243ca30b72b9e6c43a2 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: mattermost-session-cookie-firefox Version: 0 Release: 1.20200421git84275f3%{?dist} Summary: Obtain session cookie from mattermost webclient License: MIT URL: https://github.com/ftilde/mattermost-session-cookie-firefox Source0: https://github.com/ftilde/mattermost-session-cookie-firefox/archive/%{commit}/%{name}-%{shortcommit}.tar.gz Requires: firefox, curl, sqlite BuildArch: noarch %description mattermost-session-cookie-firefox is a script to obtain the session cookie from a mattermost webclient. It is designed to be used with the tokencmd configuration option of matterhorn for mattermost instances that do not allow username/password or personal access token login. %prep %autosetup -n %{name}-%{commit} %build # Nothing to build! %install mkdir -p %{buildroot}%{_bindir} cp -p mattermost-session-cookie-firefox %{buildroot}%{_bindir}/ %files %license LICENSE %doc README.md %{_bindir}/mattermost-session-cookie-firefox %changelog * Wed Apr 22 2020 Ben Rosser - 0-1.20200421git84275f3 - Initial commit.