Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:infrastructure:monitoring
prometheus-redis_exporter
prometheus-redis_exporter.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File prometheus-redis_exporter.spec of Package prometheus-redis_exporter
# # spec file for package prometheus-redis_exporter # # 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/ # %define appname redis_exporter Name: prometheus-%{appname} Version: 1.58.0 Release: 0 Summary: Prometheus Exporter for Redis metrics License: MIT Group: System/Monitoring URL: https://github.com/oliver006/redis_exporter Source0: %{appname}-%{version}.tar.gz Source1: vendor.tar.gz Source2: %{name}.sysusers Source3: %{name}.sysconfig Source4: %{name}.service Source5: %{name}.tmpfiles Source6: %{name}.apparmor BuildRequires: apparmor-rpm-macros BuildRequires: golang(API) >= 1.20 BuildRequires: golang-packaging BuildRequires: sysuser-shadow BuildRequires: sysuser-tools Requires(post): %fillup_prereq Provides: prometheus(%{appname}) %{?systemd_ordering} %sysusers_requires %description Prometheus Exporter for Redis metrics. %prep %autosetup -a1 -n%{appname}-%{version} -p1 %build go build -mod=vendor -v -p 4 -x -buildmode=pie -ldflags='-s -w' %sysusers_generate_pre %{SOURCE2} %{name} %install install -vd %{buildroot}%{_bindir} %{buildroot}%{_fillupdir} %{buildroot}%{_sbindir} %{buildroot}%{_sysconfdir}/apparmor.d %{buildroot}%{_sysusersdir} %{buildroot}%{_tmpfilesdir} %{buildroot}%{_unitdir} install -vm 0755 %{appname} %{buildroot}%{_bindir} install -vm 0644 %{SOURCE2} %{buildroot}%{_sysusersdir}/%{name}.conf install -vm 0644 %{SOURCE3} %{buildroot}%{_fillupdir}/sysconfig.%{name} install -vm 0644 %{SOURCE4} %{buildroot}%{_unitdir}/%{name}.service ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name} install -vm 0644 %{SOURCE5} %{buildroot}%{_tmpfilesdir}/%{name}.conf install -vm 0644 %{SOURCE6} %{buildroot}%{_sysconfdir}/apparmor.d/%{name} %pre -f %{name}.pre %service_add_pre %{name}.service %post %{apparmor_reload %{_sysconfdir}/apparmor.d/%{name}} %fillup_only %tmpfiles_create %{_tmpfilesdir}/%{name}.conf %service_add_post %{name}.service %preun %service_del_preun %{name}.service %postun %service_del_postun %{name}.service %files %doc README.md %license LICENSE %{_bindir}/%{appname} %{_sbindir}/rc%{name} %dir %{_sysconfdir}/apparmor.d %config %{_sysconfdir}/apparmor.d/%{name} %{_fillupdir}/sysconfig.%{name} %{_sysusersdir}/%{name}.conf %{_tmpfilesdir}/%{name}.conf %{_unitdir}/%{name}.service %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