1
0

Accepting request 899466 from home:dimstar:Factory

- Move macros.nagios from /etc/rpm to %{_rpmmacrodir}
  (boo#1185657).

OBS-URL: https://build.opensuse.org/request/show/899466
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/nagios-rpm-macros?expand=0&rev=48
This commit is contained in:
Lars Vogdt
2021-06-15 13:08:09 +00:00
committed by Git OBS Bridge
parent 89e1755ceb
commit abea61154c
2 changed files with 25 additions and 25 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Jun 11 12:02:11 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org>
- Move macros.nagios from /etc/rpm to %{_rpmmacrodir}
(boo#1185657).
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Nov 25 11:03:37 UTC 2017 - ecsos@opensuse.org Sat Nov 25 11:03:37 UTC 2017 - ecsos@opensuse.org

View File

@@ -1,8 +1,7 @@
# #
# spec file for package nagios-rpm-macros # spec file for package nagios-rpm-macros
# #
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2021 SUSE LLC
# Copyright (c) 2014-2015 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -13,17 +12,17 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
Name: nagios-rpm-macros Name: nagios-rpm-macros
Version: 0.14
Release: 0
Summary: RPM Macros for Nagios based packages Summary: RPM Macros for Nagios based packages
License: BSD-3-Clause License: BSD-3-Clause
Group: System/Monitoring Group: System/Monitoring
Version: 0.14 URL: http://en.opensuse.org/Nagios
Release: 0
Url: http://en.opensuse.org/Nagios
Source0: macros.nagios Source0: macros.nagios
Source1: %{name}-README Source1: %{name}-README
Source2: nagios-rpm-macros-COPYING Source2: nagios-rpm-macros-COPYING
@@ -33,38 +32,33 @@ Source5: macros.nagiosgrapher
Source6: macros.icinga Source6: macros.icinga
Source7: macros.icinga2 Source7: macros.icinga2
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
This package provides rpm macros for building packages for This package provides rpm macros for building packages for
Nagios, check_mk and/or Icinga. Nagios, check_mk and/or Icinga.
%prep %prep
%{__cp} %{S:1} README cp %{SOURCE1} README
%{__cp} %{S:2} COPYING cp %{SOURCE2} COPYING
%build %build
%install %install
install -Dm644 %{S:0} %{buildroot}%{_sysconfdir}/rpm/macros.nagios install -Dm644 %{SOURCE0} %{buildroot}%{_rpmmacrodir}/macros.nagios
cat %{S:3} >> %{buildroot}%{_sysconfdir}/rpm/macros.nagios cat %{SOURCE3} >> %{buildroot}%{_rpmmacrodir}/macros.nagios
cat %{S:4} >> %{buildroot}%{_sysconfdir}/rpm/macros.nagios cat %{SOURCE4} >> %{buildroot}%{_rpmmacrodir}/macros.nagios
cat %{S:5} >> %{buildroot}%{_sysconfdir}/rpm/macros.nagios cat %{SOURCE5} >> %{buildroot}%{_rpmmacrodir}/macros.nagios
cat %{S:6} >> %{buildroot}%{_sysconfdir}/rpm/macros.nagios cat %{SOURCE6} >> %{buildroot}%{_rpmmacrodir}/macros.nagios
cat %{S:7} >> %{buildroot}%{_sysconfdir}/rpm/macros.nagios cat %{SOURCE7} >> %{buildroot}%{_rpmmacrodir}/macros.nagios
# make sure that _rundir is working on older systems # make sure that _rundir is working on older systems
%if ! %{defined _rundir} %if ! %{defined _rundir}
sed -i 's|%%{_rundir}|%%{_localstatedir}/run|' %{buildroot}%{_sysconfdir}/rpm/macros.nagios sed -i 's|%%{_rundir}|%%{_localstatedir}/run|' %{buildroot}%{_rpmmacrodir}/macros.nagios
%endif %endif
%clean %files
rm -rf %buildroot %license COPYING
%doc README
%files %{_rpmmacrodir}/macros.nagios
%defattr(-,root,root)
%doc COPYING README
%config %{_sysconfdir}/rpm/macros.nagios
%changelog %changelog