Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package
golang-github-lusitaniae-apache_exporter for openSUSE:Factory checked in at
2023-08-18 19:27:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/golang-github-lusitaniae-apache_exporter
(Old)
and
/work/SRC/openSUSE:Factory/.golang-github-lusitaniae-apache_exporter.new.1766
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "golang-github-lusitaniae-apache_exporter"
Fri Aug 18 19:27:55 2023 rev:11 rq:1104386 version:1.0.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/golang-github-lusitaniae-apache_exporter/golang-github-lusitaniae-apache_exporter.changes
2023-08-08 15:54:35.168862524 +0200
+++
/work/SRC/openSUSE:Factory/.golang-github-lusitaniae-apache_exporter.new.1766/golang-github-lusitaniae-apache_exporter.changes
2023-08-18 19:28:05.887287815 +0200
@@ -1,0 +2,5 @@
+Fri Aug 11 12:55:45 UTC 2023 - Witek Bedyk <[email protected]>
+
+- Do not build with apparmor profile for SLE 12
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ golang-github-lusitaniae-apache_exporter.spec ++++++
--- /var/tmp/diff_new_pack.naaNYU/_old 2023-08-18 19:28:06.639289164 +0200
+++ /var/tmp/diff_new_pack.naaNYU/_new 2023-08-18 19:28:06.643289171 +0200
@@ -25,7 +25,11 @@
%undefine _missing_build_ids_terminate_build
%endif
+%if 0%{?suse_version} >= 1500
%bcond_without apparmor
+%else
+%bcond_with apparmor
+%endif
# Templating vars to simplify and standardize Prometheus exporters spec files
%define githubrepo github.com/lusitaniae/apache_exporter
@@ -43,9 +47,7 @@
Source: %{upstreamname}-%{version}.tar.gz
Source1: vendor.tar.gz
Source2: %{targetname}.service
-%if 0%{?suse_version} && %{with apparmor}
Source3: apparmor-usr.bin.%{targetname}
-%endif
BuildRequires: fdupes
BuildRequires: golang-github-prometheus-promu
BuildRequires: golang-packaging
@@ -80,7 +82,7 @@
install -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}
install -d -m 0755 %{buildroot}%{_sbindir}
ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rc%{targetname}
-%if 0%{?suse_version} && %{with apparmor}
+%if %{with apparmor}
# AppArmor profile
mkdir -p %{buildroot}%{_sysconfdir}/apparmor.d
install -m 0644 %{SOURCE3}
%{buildroot}%{_sysconfdir}/apparmor.d/usr.bin.%{targetname}
@@ -130,7 +132,7 @@
%{_bindir}/%{targetname}
%{_unitdir}/%{targetname}.service
%{_sbindir}/rc%{targetname}
-%if 0%{?suse_version} && %{with apparmor}
+%if %{with apparmor}
%dir %{_sysconfdir}/apparmor.d
%config %{_sysconfdir}/apparmor.d/usr.bin.%{targetname}
%endif