## START: Set by rpmautospec ## (rpmautospec version 0.6.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by go2rpm 1.14.0 %bcond_without vendor %if %{without vendor} %bcond_without check %endif # needed for vendored deps %global gomodulesmode GO111MODULE=on # https://github.com/42wim/matterbridge %global goipath github.com/42wim/matterbridge Version: 1.26.0 %if 0%{?rhel} %gometa %else %gometa -f %endif %global common_description %{expand: Bridge between mattermost, IRC, gitter, xmpp, slack, discord, telegram, rocketchat, twitch, ssh-chat, zulip, whatsapp, keybase, matrix, microsoft teams, nextcloud, mumble, vk and more with REST API (mattermost not required!).} %global golicenses LICENSE %global godocs README.md changelog.md matterclient/README.md Name: matterbridge Release: %autorelease Summary: Bridge between mattermost, IRC, gitter, xmpp, slack, discord, telegram, rocketchat, twitch, ssh-chat, zulip, whatsapp, keybase, matrix, microsoft teams, nextcloud, mumble, vk and more with REST API (mattermost not required!) License: Apache-2.0 URL: %{gourl} # see create-vendor-tarball.sh in this distgit repo Source0: %{name}-%{version}-vendored.tar.xz Source1: create-vendor-tarball.sh BuildRequires: git-core %description %{common_description} %if %{without vendor} %gopkg %endif %prep %if %{without vendor} rm -rf vendor/ %endif %goprep %{?with_vendor:-k} %autopatch -p1 %build %gobuild -o %{name} ./matterbridge.go %install %if %{without vendor} %gopkginstall %else install -D -t %{buildroot}%{_bindir} matterbridge %endif %if %{with check} %check %gocheck %endif %files %license LICENSE %doc README.md changelog.md %{_bindir}/matterbridge %if %{without vendor} %gopkgfiles %endif %changelog ## START: Generated by rpmautospec * Sun Aug 11 2024 John Doe - 1.26.0-1 - Uncommitted changes ## END: Generated by rpmautospec