Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:infrastructure:monitoring
promact
_service:extract_file:promact.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:extract_file:promact.spec of Package promact
# RPM spec file for Promact # Copyright (C) 2024 Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <https://www.gnu.org/licenses/>. Name: promact Version: 1.1 Release: 0 Summary: Act on Alertmanager alerts License: GPL-3.0-or-later Group: System/Monitoring URL: https://gitlab.infra.opensuse.org/crameleon/promact Source: %{name}-%{version}.tar.xz BuildRequires: sysuser-tools Requires: python3 Requires: python3-Flask Requires: python3-PyYAML Requires: python3-waitress BuildArch: noarch %sysusers_requires %description Run shell commands upon Alertmanager webhooks. %prep %autosetup -n %{name} rm pyproject.toml %build #pyproject_wheel %sysusers_generate_pre dist/%{name}.sysusers ../%{name} %install #pyproject_install install -d %{buildroot}/opt/%{name}/{bin,src} %{buildroot}%{_sysconfdir}/opt/%{name} %{buildroot}%{_sysusersdir} %{buildroot}%{_unitdir} %{buildroot}%{_sbindir} mv dist/%{name}.service %{buildroot}%{_unitdir} mv dist/%{name}.sysusers %{buildroot}%{_sysusersdir}/%{name}.conf rm dist/%{name}.spec rmdir dist mv %{name}* %{buildroot}/opt/%{name}/src ln -s /opt/%{name}/src/promact.py %{buildroot}/opt/%{name}/bin ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name} %pre -f ../%{name}.pre %service_add_pre %{name}.service %post %service_add_post %{name}.service %preun %service_del_preun %{name}.service %postun %service_del_postun %{name}.service %files %license COPYING %doc config.example.yaml README.md /opt/%{name} %{_sysconfdir}/opt/%{name} %{_unitdir}/%{name}.service %{_sysusersdir}/%{name}.conf %{_sbindir}/rc%{name} %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor