Репозиторий Sisyphus
Последнее обновление: 17 января 2021 | Пакетов: 17781 | Посещений: 20066283
en ru br
Репозитории ALT

Группа :: Сети/Мгновенные сообщения
Пакет: matterbridge

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%global import_path github.com/42wim/matterbridge

Name: matterbridge
Version: 1.19.0
Release: alt1

Summary: A simple chat bridge

License: Apache-2.0
Group: Networking/Instant messaging
Url: https://github.com/42wim/matterbridge

ExclusiveArch: %go_arches
BuildRequires(pre): rpm-build-golang

# repacked https://github.com/42wim/matterbridge/archive/v%version.tar.gz

Source: %name-%version.tar
Source1: %name.watch

%description
Bridges between a growing number of protocols.

Features:

* Support bridging between any protocols
* Support multiple gateways(bridges) for your protocols
* Message edits and deletes
* Preserves threading when possible
* Attachment / files handling
* Username and avatar spoofing
* Private groups
* API

Natively supported:

* Discord
* Gitter
* IRC
* Keybase
* Matrix
* Mattermost
* Microsoft Teams
* Mumble
* Nextcloud Talk
* Rocket.chat
* Slack
* Ssh-chat
* Steam
* Telegram
* Twitch
* WhatsApp
* XMPP
* Zulip

3rd party via matterbridge API:

* Discourse
* Facebook messenger
* Minecraft
* Reddit
* Counter-Strike, half-life and more
* MatterAMXX

%prep
%setup

%build
export BUILDDIR="$PWD/.gopath"
export IMPORT_PATH="%import_path"
export GOPATH="$BUILDDIR:%go_path"
%golang_prepare

pushd .gopath/src/%import_path
export VERSION=%version
export BRANCH=altlinux
export CODENAME=montdor
export DATE="$(date '+%%Y-%%m-%%d' ${SOURCE_DATE_EPOCH:+-d$SOURCE_DATE_EPOCH})"
export GOFLAGS="-mod=vendor"
go generate
%gobuild
popd

%install
pushd .gopath/src/%import_path
install -pD matterbridge %buildroot%_bindir/matterbridge
install -pD contrib/matterbridge.service %buildroot%_unitdir/matterbridge.service
install -pm600 -D matterbridge.toml.simple %buildroot%_sysconfdir/matterbridge/bridge.toml
popd

%post
%_sbindir/groupadd -r -f matterbridge ||:
%_sbindir/useradd -r -g matterbridge -d /var/empty -s /dev/null -c 'A simple chat bridge' matterbridge ||:

%files
%doc changelog.md LICENSE README.md
%doc matterbridge.toml.sample
%doc matterbridge.toml.simple
%dir %_sysconfdir/matterbridge
%config(noreplace) %_sysconfdir/matterbridge/bridge.toml
%_bindir/matterbridge
%_unitdir/matterbridge.service

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin