Search
j0ke.net Open Build Service
>
Projects
>
home:netmax
:
tools
>
nagstamon
> nagstamon.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File nagstamon.spec of Package nagstamon
# # spec file for package nagstamon # # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2011 Lars Vogdt # # 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/ # %define pkgname Nagstamon Name: nagstamon Version: 0.9.11 Release: 21.1 Summary: Nagios status monitor for the desktop License: GPL-2.0 Group: System/Monitoring Url: http://nagstamon.ifw-dresden.de/ Source: %{pkgname}-%{version}.tar.bz2 Source1: %{name}.desktop BuildRequires: python-devel # openSUSE dependencies %if 0%{?suse_version} BuildRequires: python-gtk >= 2.20 BuildRequires: update-desktop-files Requires: python-gtk >= 2.20 %if 0%{?suse_version} > 1100 Requires: python-distribute #Requires: python-egg Requires: python-gnome-extras %else Requires: python-gnome-extras %endif Recommends: gnome-terminal Recommends: rdesktop Recommends: sox Recommends: tightvnc %if 0%{?suse_version} > 1130 BuildArch: noarch %endif %py_requires %endif # Fedora dependencies %if 0%{?fedora_version} BuildRequires: desktop-file-utils BuildRequires: pygtk2 Requires: pygtk2 Requires: python-setuptools %endif # Mandriva dependencies %if 0%{?mandriva_version} BuildRequires: desktop-file-utils Requires(post): desktop-file-utils Requires(postun): desktop-file-utils %endif BuildRoot: %{_tmppath}/%{name}-%{version}-build %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} %description Nagstamon is a Nagios status monitor which takes place in systray or on desktop (GNOME, KDE, Windows) as floating statusbar to inform you in realtime about the status of your Nagios and derivatives monitored network. It allows to connect to multiple Nagios, Icinga, Opsview, Op5, Check_MK/Multisite and Centreon servers. %prep %setup -q -n %{pkgname}-%{version} # currently we use our own desktop file test -f Nagstamon/resources/nagstamon.desktop && rm Nagstamon/resources/nagstamon.desktop %build python setup.py build %install python setup.py install \ --root=%{buildroot} \ --install-lib=%{python_sitelib} \ --prefix=%{_prefix} chmod +x %{buildroot}/%{python_sitelib}/Nagstamon/Server/Multisite.py mv %{buildroot}/%{_bindir}/nagstamon.py %{buildroot}/%{_bindir}/nagstamon # desktop stuff mkdir -p %{buildroot}%{_datadir}/{applications,pixmaps} cp Nagstamon/resources/nagstamon.svg %{buildroot}%{_datadir}/pixmaps/nagstamon.svg chmod -x %{buildroot}%{_datadir}/pixmaps/nagstamon.svg install -Dm644 %{SOURCE1} %{buildroot}/%{_datadir}/applications/nagstamon.desktop # openSUSE %if 0%{?suse_version} %suse_update_desktop_file -i %{buildroot}/%{_datadir}/applications/nagstamon.desktop %endif # Fedora %if 0%{?fedora_version} desktop-file-install --dir %{buildroot}/%{_datadir}/applications \ --vendor OBS \ --delete-original \ %{buildroot}/%{_datadir}/applications/nagstamon.desktop %endif # Mandriva %if 0%{?mandriva_version} desktop-file-install --vendor="OBS" \ --dir=%{buildroot}%{_datadir}/applications \ %{buildroot}/%{_datadir}/applications/nagstamon.desktop %post %{update_menus} %postun %{clean_menus} %endif %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc ChangeLog COPYRIGHT LICENSE %{_datadir}/pixmaps/nagstamon* %{_datadir}/applications/*nagstamon.desktop %{python_sitelib}/Nagstamon/ %{_bindir}/nagstamon %{_mandir}/man1/nagstamon.1* %if 0%{?suse_version} > 01020 || 0%{?fedora_version} || 0%{?mandriva_version} || 0%{?rhel_version} > 505 || 0%{?centos_version} > 505 || 0%{?centos_version} == 6 %{python_sitelib}/%{name}*.egg-info %endif %changelog * Wed Apr 17 2013 lars@linux-schulserver.de - fix build on CentOS > 5 * Fri Apr 13 2012 lars@linux-schulserver.de - update to 0.9.9 (final): + fixed popwin misplacement + many fixes for the Windows port * Tue Mar 13 2012 lars@linux-schulserver.de - update to 0.9.9 Release Candidate 17 (0.9.9.17): + added custom actions in context menu (see documentation) + added reauthentication in case of authenticaton problems + added filter for flapping hosts and services + added history button for monitors + added shortcut to filter settings in popup window + improved keyboard usage in acknowledge/downtime/submit dialogs + changed configuration file to configuration directory (default: ~/.nagstamon) + fixed bug in Icinga acknowledgement + fixed bug in Check_MK Multisite sorting + fixed some Check_MK Multisite UTF trouble * Sun Oct 30 2011 lars@linux-schulserver.de - cleanup specfile as suggested in rq 89595 * Fri Oct 28 2011 cfarrell@suse.com - license update: GPL-2.0 SPDX format (http://www.spdx.org/licenses) * Thu Oct 27 2011 lars@linux-schulserver.de - update to 0.9.8: + added customizable acknowledge/downtime/submit-result defaults + added regexp filter for status information column + added option to connect to hosts via its monitor hostname without HTTP overhead + added ability to keep status detail popup open despite hovering away + added option to change offset between popup window and systray icon to avoid partly hidden popup + fixed some popup artefacts + fixed various bugs with acknowledgement flags (persistent/sticky/notification), now they are actually working - build as noarch package on openSUSE > 11.2 - recommend gnome-terminal, rdesktop, tightvnc on openSUSE (the default binaries used by nagstamon) - require python-egg on openSUSE (needed for module egg.trayicon) and python-setuptools * Wed Jul 6 2011 lars@linux-schulserver.de - require python-setuptools on Fedora and fix the desktop file * Sat Jun 11 2011 lars@linux-schulserver.de - update to 0.9.7.1: + fixed sf.net bug 3309166 which broke Centreon support * Mon May 30 2011 lars@linux-schulserver.de - update to 0.9.7: + on some servers now context menu allows submitting check results for hosts and services + added filter for services on acknowledged hosts + added icons for "passiveonly" and "flapping" hosts and services + fix for uneditable text entry fields in settings dialog - sf.net bug 3300873 + fix for not working filter "services on hosts in maintenance" - sf.net bug 3299790 + fix for soft state detection in Centreon - sf.net bug 3303861 + fix for not filtered services which should have been filtered - sf.net bug 3308008 - specfile cleanup using spec-cleaner - use svg image for desktop icon * Tue May 24 2011 lars@linux-schulserver.de - enable build for Fedora and Mandriva - fix desktop icon * Mon May 23 2011 lars@linux-schulserver.de - initial version 0.9.6.1