2011-07-29 22:35:29 +02:00
|
|
|
#
|
|
|
|
# spec file for package nagios-rpm-macros
|
|
|
|
#
|
2014-04-15 20:09:18 +02:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-11-05 17:04:26 +01:00
|
|
|
#
|
2011-07-29 22:35:29 +02:00
|
|
|
# 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.
|
|
|
|
|
2011-11-05 17:04:26 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2011-07-29 22:35:29 +02:00
|
|
|
|
|
|
|
|
|
|
|
Name: nagios-rpm-macros
|
|
|
|
Summary: RPM Macros for Nagios based packages
|
2012-02-07 10:25:59 +01:00
|
|
|
License: BSD-3-Clause
|
2011-07-29 22:35:29 +02:00
|
|
|
Group: System/Monitoring
|
2014-12-28 14:16:13 +01:00
|
|
|
Version: 0.11
|
2012-02-07 10:25:59 +01:00
|
|
|
Release: 0
|
|
|
|
Url: http://en.opensuse.org/Nagios
|
2011-07-29 22:35:29 +02:00
|
|
|
Source0: macros.nagios
|
|
|
|
Source1: %{name}-README
|
2011-11-01 13:22:55 +01:00
|
|
|
Source2: nagios-rpm-macros-COPYING
|
2011-11-05 17:04:26 +01:00
|
|
|
Source3: macros.check_mk
|
2011-11-05 17:51:24 +01:00
|
|
|
Source4: macros.pnp4nagios
|
2011-12-07 16:43:08 +01:00
|
|
|
Source5: macros.nagiosgrapher
|
2012-02-07 10:25:59 +01:00
|
|
|
Source6: macros.icinga
|
2014-04-15 20:09:18 +02:00
|
|
|
Source7: macros.icinga2
|
2011-07-29 22:35:29 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package provides rpm macros for building packages for
|
2011-11-05 17:04:26 +01:00
|
|
|
Nagios, check_mk and/or Icinga.
|
2011-07-29 22:35:29 +02:00
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%{__cp} %{S:1} README
|
2011-11-01 13:22:55 +01:00
|
|
|
%{__cp} %{S:2} COPYING
|
2011-07-29 22:35:29 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
install -Dm644 %{S:0} %{buildroot}%{_sysconfdir}/rpm/macros.nagios
|
2011-11-05 17:04:26 +01:00
|
|
|
cat %{S:3} >> %{buildroot}%{_sysconfdir}/rpm/macros.nagios
|
2011-11-05 17:51:24 +01:00
|
|
|
cat %{S:4} >> %{buildroot}%{_sysconfdir}/rpm/macros.nagios
|
2011-12-07 16:43:08 +01:00
|
|
|
cat %{S:5} >> %{buildroot}%{_sysconfdir}/rpm/macros.nagios
|
2012-02-07 10:25:59 +01:00
|
|
|
cat %{S:6} >> %{buildroot}%{_sysconfdir}/rpm/macros.nagios
|
2014-04-15 20:09:18 +02:00
|
|
|
cat %{S:7} >> %{buildroot}%{_sysconfdir}/rpm/macros.nagios
|
2011-07-29 22:35:29 +02:00
|
|
|
|
2014-06-25 13:40:46 +02:00
|
|
|
# make sure that _rundir is working on older systems
|
|
|
|
%if ! %{defined _rundir}
|
|
|
|
sed -i 's|%%{_rundir}|%%{_localstatedir}/run|' %{buildroot}%{_sysconfdir}/rpm/macros.nagios
|
|
|
|
%endif
|
|
|
|
|
2011-07-29 22:35:29 +02:00
|
|
|
%clean
|
|
|
|
rm -rf %buildroot
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2011-11-01 13:22:55 +01:00
|
|
|
%doc COPYING README
|
2011-07-29 22:35:29 +02:00
|
|
|
%config %{_sysconfdir}/rpm/macros.nagios
|
|
|
|
|
|
|
|
%changelog
|