Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:crameleon:misc
karma
karma.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File karma.spec of Package karma
# # spec file for package karma # # Copyright (c) 2024 SUSE LLC # Copyright (c) 2024 Georg Pfuetzenreuter <mail+rpm@georg-pfuetzenreuter.net> # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: karma Version: 0.118 Release: 0 Summary: Alert dashboard for Prometheus Alertmanager License: Apache-2.0 Group: System/Monitoring URL: https://github.com/prymitive/karma Source0: %{name}-%{version}.tar.gz Source1: vendor.tar.gz Source2: ui_dist.tar.gz Source3: %{name}.sysuser Source4: %{name}.service Patch0: example_config.patch BuildRequires: go >= 1.20 BuildRequires: golang-packaging BuildRequires: pkgconfig BuildRequires: sysuser-tools BuildRequires: pkgconfig(systemd) %systemd_ordering %description Alertmanager UI is useful for browsing alerts and managing silences, but it's lacking as a dashboard tool - karma aims to fill this gap. %prep %autosetup -a1 -p1 tar -C ui -xzf %{SOURCE2} %build go build -mod=vendor -v -p 4 -x -buildmode=pie -ldflags='-X main.version=%{version} -s -w' ./cmd/karma %sysusers_generate_pre %{SOURCE3} %{name} %install install -vd %{buildroot}%{_bindir} %{buildroot}%{_sbindir} %{buildroot}%{_sysconfdir}/%{name} %{buildroot}%{_sysusersdir} %{buildroot}%{_unitdir} install -v %{name} %{buildroot}%{_bindir}/%{name} install -v %{SOURCE3} %{buildroot}%{_sysusersdir}/%{name}.conf sed s?__KARMA_CONFIGDIR__?%{_sysconfdir}/%{name}? %{SOURCE4} > %{buildroot}%{_unitdir}/%{name}.service ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name} install -v docs/example.yaml %{buildroot}%{_sysconfdir}/%{name}/config.yaml %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 LICENSE %doc README.md docs/ACLs.md docs/CONFIGURATION.md %{_bindir}/%{name} %{_sbindir}/rc%{name} %defattr(0644,root,root) %{_sysusersdir}/%{name}.conf %{_unitdir}/%{name}.service %attr(0750,-,%{name}) %dir %{_sysconfdir}/%{name} %attr(0640,-,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/config.yaml %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