Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37563525
en ru br
ALT Linux repos
S:20200425-alt2

Group :: Monitoring
RPM: zabbix-in-telegram

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define z_dir %_sysconfdir/zabbix/alertscripts

Name: zabbix-in-telegram
Version: 20200425
Release: alt2

Summary: Zabbix Notifications with graphs in Telegram

License: MIT
Group: Monitoring
URL: https://github.com/ableev/Zabbix-in-Telegram

BuildArch: noarch

# Source-git: https://github.com/ableev/Zabbix-in-Telegram.git

Source: %name-%version.tar

BuildRequires(pre): rpm-build-python3
BuildRequires(pre): rpm-build-intro

Requires: zabbix-server-common > 3.0.0

%add_python3_req_skip zbxtg_settings

# generated by 'epm restore --dry-run' from zabbix-in-telegram/requirements.txt

%py3_use socks >= 1.6.8
%py3_use requests >= 2.20.0
%py3_use requests-oauthlib >= 0.6.2

%description
Zabbix Notifications with graphs in Telegram.

%prep
%setup
sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python3|' \
   $(find ./ -name '*.py')

%build

%install
mkdir -p %buildroot%z_dir
install -p -m 755 zbxtg.py %buildroot%z_dir/zbxtg.py
install -p -m 644 zbxtg_settings.example.py %buildroot%z_dir/zbxtg_settings.py

%files
%z_dir/zbxtg.py
%config(noreplace) %z_dir/zbxtg_settings.py
%doc README.md LICENSE.txt


%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin