File nagserv.spec of Package nagserv
#
# spec file for package nagserv
#
# 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/
#
Name: nagserv
Version: 0.0.26
Release: 0
License: GPL-2.0+
Summary: Serves Nagios Status as RSS Feed
Url: http://www.vanheusden.com/nagserv/
Group: System/Monitoring
Source: http://www.vanheusden.com/nagserv/nagserv-%{version}.tgz
# PATCH-MISSING-TAG -- See http://en.opensuse.org/Packaging/Patches
Patch1: nagserv-makefile.patch
# PATCH-MISSING-TAG -- See http://en.opensuse.org/Packaging/Patches
Patch2: nagserv-fix_warnings.patch
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: glibc-devel
BuildRequires: libstdc++-devel
BuildRequires: make
BuildRequires: ncurses-devel
BuildRequires: openssl-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Nagserv serves the nagios status as an RSS-feed.
Nagserv is also an interface between the Nagios 2.0 or 3.0 status.log
file and programs like Nagwatch and older versions (< v0.71) of nsc.
%prep
%setup -q
%patch1
%patch2
%build
export SUSE_ASNEEDED=0
%__make %{?jobs:-j%{jobs}} \
DEBUG="%{optflags} -Wno-deprecated"
%install
%__make \
DESTDIR=%{buildroot} \
PREFIX="%{_prefix}" \
install
%clean
%__rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc *.txt
%{_bindir}/nagserv
%changelog