Hello community,
here is the log from the commit of package
golang-github-lusitaniae-apache_exporter for openSUSE:Factory checked in at
2019-07-22 12:19:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/golang-github-lusitaniae-apache_exporter
(Old)
and
/work/SRC/openSUSE:Factory/.golang-github-lusitaniae-apache_exporter.new.4126
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "golang-github-lusitaniae-apache_exporter"
Mon Jul 22 12:19:21 2019 rev:1 rq:708772 version:0.5.0
Changes:
--------
New Changes file:
--- /dev/null 2019-07-18 00:53:00.979475821 +0200
+++
/work/SRC/openSUSE:Factory/.golang-github-lusitaniae-apache_exporter.new.4126/golang-github-lusitaniae-apache_exporter.changes
2019-07-22 12:19:22.747680289 +0200
@@ -0,0 +1,14 @@
+-------------------------------------------------------------------
+Thu Jun 6 09:26:16 UTC 2019 - jmc <[email protected]>
+
+- Add %license macro for LICENSE file
+
+-------------------------------------------------------------------
+Thu Apr 18 09:04:18 UTC 2019 - [email protected]
+
+- Fix license information in spec file (MIT)
+
+-------------------------------------------------------------------
+Wed Apr 17 17:08:16 UTC 2019 - [email protected]
+
+- Initial commit (v0.5.0)
New:
----
apache_exporter-0.5.0.tar.gz
golang-github-lusitaniae-apache_exporter.changes
golang-github-lusitaniae-apache_exporter.spec
prometheus-apache_exporter.service
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ golang-github-lusitaniae-apache_exporter.spec ++++++
#
# spec file for package golang-github-lusitaniae-apache_exporter
#
# Copyright (c) 2019 João Cavalheiro <[email protected]>
#
# 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 http://bugs.opensuse.org/
#
# Templating vars to simplify and standardize Prometheus exporters spec files
%define githubrepo github.com/lusitaniae/apache_exporter
%define upstreamname apache_exporter
%define targetname prometheus-apache_exporter
%define serviceuser prometheus
Name: golang-github-lusitaniae-apache_exporter
Version: 0.5.0
Release: 0
License: MIT
Summary: Apache Exporter for Prometheus
Url: http://%{githubrepo}
Group: System/Management
Source: %{upstreamname}-%{version}.tar.gz
Source1: %{targetname}.service
BuildRequires: fdupes
BuildRequires: golang-packaging
BuildRequires: xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{?systemd_requires}
Requires(pre): shadow
%description
Exports apache mod_status statistics via HTTP for Prometheus consumption.
%prep
%setup -q -n %{upstreamname}-%{version}
%build
%goprep %{githubrepo}
%gobuild
%install
install -D -m0755 %{_builddir}/go/bin/%{upstreamname}
%{buildroot}/%{_bindir}/%{targetname}
install -d -m 0755 %{buildroot}%{_unitdir}
install -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}
install -d -m 0755 %{buildroot}%{_sbindir}
ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rc%{targetname}
%pre
%service_add_pre %{targetname}.service
getent group %{serviceuser} >/dev/null || %{_sbindir}/groupadd -r %{serviceuser}
getent passwd %{serviceuser} >/dev/null || %{_sbindir}/useradd -r -g
%{serviceuser} -d %{_localstatedir}/lib/%{serviceuser} -M -s /sbin/nologin
%{serviceuser}
%post
%service_add_post %{targetname}.service
%preun
%service_del_preun %{targetname}.service
%postun
%service_del_postun %{targetname}.service
%files
%defattr(-,root,root,-)
%doc README.md
%license LICENSE
%{_bindir}/%{targetname}
%{_unitdir}/%{targetname}.service
%{_sbindir}/rc%{targetname}
%changelog
++++++ prometheus-apache_exporter.service ++++++
[Unit]
Description=Prometheus exporter for Apache metrics
Documentation=https://github.com/lusitaniae/apache_exporter
[Service]
Restart=always
User=prometheus
EnvironmentFile=-/etc/sysconfig/prometheus-apache_exporter
ExecStart=/usr/bin/prometheus-apache_exporter $ARGS
ExecReload=/bin/kill -HUP $MAINPID
TimeoutStopSec=20s
SendSIGKILL=no
[Install]
WantedBy=multi-user.target