From 8248008ef0c313b6f77e3acc31d442cb740aa8d0 Mon Sep 17 00:00:00 2001 From: Nikita Klimov Date: Apr 15 2013 21:05:07 +0000 Subject: Initial import BZ #928061 --- diff --git a/.gitignore b/.gitignore index e69de29..ea24f73 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/nagstamon_0.9.9.tar.gz diff --git a/nagstamon.spec b/nagstamon.spec new file mode 100644 index 0000000..60ce3d1 --- /dev/null +++ b/nagstamon.spec @@ -0,0 +1,91 @@ +Name: nagstamon +Version: 0.9.9 +Release: 7%{?dist} +Summary: Nagios status monitor for desktop + +License: GPLv2+ +URL: http://nagstamon.ifw-dresden.de/ +Source0: http://sourceforge.net/projects/nagstamon/files/nagstamon/nagstamon%200.9.9/nagstamon_0.9.9.tar.gz + +BuildArch: noarch +BuildRequires: pygtk2 +BuildRequires: python2-devel +BuildRequires: desktop-file-utils +Requires: pygtk2 +Requires: python-setuptools +Requires: python-BeautifulSoup + +%description +Nagstamon is a Nagios status monitor which takes place in system tray +or on desktop (GNOME, KDE, Windows) as floating status bar to inform +you in real-time 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 Nagstamon + +#Remove embedded BeautifulSoup http://sourceforge.net/p/nagstamon/bugs/44/ +rm -rf Nagstamon/BeautifulSoup.py + +%build +%{__python} setup.py build + +%install +%{__python} setup.py install --skip-build --root %{buildroot} + +#Fix 'non-executable-script' error +chmod +x %{buildroot}%{python_sitelib}/Nagstamon/Server/Multisite.py + +#Provide directory to install icon for desktop file +mkdir -p %{buildroot}%{_datadir}/pixmaps + +#Copy icon to pixmaps directory +cp Nagstamon/resources/%{name}.svg %{buildroot}%{_datadir}/pixmaps/%{name}.svg + +#Remove execute bit from icon +chmod -x %{buildroot}%{_datadir}/pixmaps/%{name}.svg + +#Remove the file extension for convenience +mv %{buildroot}%{_bindir}/%{name}.py %{buildroot}%{_bindir}/%{name} + +desktop-file-install --dir %{buildroot}/%{_datadir}/applications\ + --delete-original\ + --set-icon=%{name}.svg\ + %{buildroot}%{python_sitelib}/Nagstamon/resources/%{name}.desktop + +%files +%doc ChangeLog COPYRIGHT LICENSE +%{_datadir}/pixmaps/%{name}.svg +%{_datadir}/applications/%{name}.desktop +%{python_sitelib}/Nagstamon/ +%{_bindir}/%{name} +%{_mandir}/man1/%{name}.1* +%{python_sitelib}/%{name}*.egg-info + +%changelog +* Fri Apr 05 2013 Nikita Klimov 0.9.9-7 +- Removed patch to fix FSF address, wait while upstream fix it yourself + +* Fri Apr 05 2013 Nikita Klimov 0.9.9-6 +- Added patch to fix FSF address in setup.py + +* Tue Apr 02 2013 Nikita Klimov 0.9.9-5 +- Fix icon file mode bits + +* Mon Apr 01 2013 Nikita Klimov 0.9.9-4 +- Replace python-devel to python2-devel in BuldRequires +- Copy desktop icon to pixmaps directory + +* Mon Apr 01 2013 Nikita Klimov 0.9.9-3 +- Remove embedded BeautifulSoup +- Add python-BeautifulSoup as Requires +- Fix typo in files section + +* Sun Mar 31 2013 Nikita Klimov 0.9.9-2 +- Change license from GPLv2 to GPLv2+ +- Added comments to install section +- Hard-coded paths replaced to macros + +* Tue Mar 26 2013 Nikita Klimov 0.9.9-1 +- Initial version of the package diff --git a/sources b/sources index e69de29..ee19f81 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +042b7ebe99d04cdfa694816b477e0866 nagstamon_0.9.9.tar.gz