Package zabbix-in-telegram: Specfile
%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 * Tue Jul 06 2021 Vitaly Lipatov <lav@altlinux.ru> 20200425-alt2 - real pack new sources * Sat Jul 03 2021 Vitaly Lipatov <lav@altlinux.ru> 20200425-alt1 - update to 4ca3585b4b568060370f17a864a8cbceb14438ca - add requires * Fri Nov 15 2019 Andrey Bychkov <mrdrew@altlinux.org> 20160607-alt3 - python2 -> python3 * Tue Jun 7 2016 Terechkov Evgenii <evg@altlinux.org> 20160607-alt2 - c23673b * Tue Jun 7 2016 Terechkov Evgenii <evg@altlinux.org> 20160607-alt1 - Initial build for ALT Linux Sisyphus (77e163b) |