Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package fail2ban for openSUSE:Factory 
checked in at 2023-06-06 19:56:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/fail2ban (Old)
 and      /work/SRC/openSUSE:Factory/.fail2ban.new.15902 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "fail2ban"

Tue Jun  6 19:56:16 2023 rev:67 rq:1091046 version:1.0.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/fail2ban/fail2ban.changes        2022-12-05 
18:02:29.697004305 +0100
+++ /work/SRC/openSUSE:Factory/.fail2ban.new.15902/fail2ban.changes     
2023-06-06 19:57:07.434780836 +0200
@@ -1,0 +2,8 @@
+Mon Jun  5 16:36:47 UTC 2023 - Lars Vogdt <[email protected]>
+
+- use nagios-rpm-macros to define the libexecdir for SUSE distributions
+  correctly (defaut here is /usr/lib/nagios/plugins)
+- move conditional for %%pre scripts, to avoid any dependency or other 
+  stuff getting in the way on old distributions
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ fail2ban.spec ++++++
--- /var/tmp/diff_new_pack.ZrDBkW/_old  2023-06-06 19:57:08.234785579 +0200
+++ /var/tmp/diff_new_pack.ZrDBkW/_new  2023-06-06 19:57:08.242785626 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package fail2ban
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -103,9 +103,13 @@
 %endif
 
 %package -n monitoring-plugins-%{name}
-%define         nagios_plugindir %{_libexecdir}/nagios/plugins
 Summary:        Check fail2ban server and how many IPs are currently banned
 Group:          System/Monitoring
+%if 0%{?suse_version}
+BuildRequires:  nagios-rpm-macros
+%else
+%define         nagios_plugindir %{_libexecdir}/nagios/plugins
+%endif
 Provides:       nagios-plugins-%{name} = %{version}
 Obsoletes:      nagios-plugins-%{name} < %{version}
 
@@ -231,8 +235,8 @@
 ./fail2ban-testcases-all --no-network || true
 %endif
 
-%pre
 %if 0%{?suse_version} >= 1230
+%pre
 %service_add_pre %{name}.service
 %endif
 
@@ -333,7 +337,11 @@
 %files -n monitoring-plugins-%{name}
 %license COPYING
 %doc files/nagios/README
+%if 0%{?suse_version}
+%dir %{nagios_libdir}
+%else
 %dir %{_libexecdir}/nagios
+%endif
 %dir %{nagios_plugindir}
 %{nagios_plugindir}/check_%{name}
 

Reply via email to