File pinger.spec of Package pinger
#
# spec file for package pinger
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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: pinger
Version: 0.32c
Release: 0
Summary: Multiping Utility
License: GPL-2.0+
Group: Productivity/Networking/Diagnostic
Source: http://aa.vslib.cz/silk/projekty/pinger/download/pinger-%{version}.tar.gz
Source1: %{name}.desktop
Source2: %{name}-gtk.desktop
Patch1: %{name}-memcpy-proto.diff
Patch2: %{name}-makeinstall-nosuid.diff
Patch3: %{name}-disable-gettext-version-check.diff
Url: http://aa.vslib.cz/silk/projekty/pinger/index.php
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc
BuildRequires: gtk2-devel
BuildRequires: libtool
BuildRequires: make
BuildRequires: ncurses-devel
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
%description
A cyclic multi ping utility for selected addresses using GTK/ncurses. You
simply write addresses into a configuration file and after execution of pinger,
you will see small nice window, which inform you about current status of
selected hosts and their triptimes.
WARNING: because of required privileges, %{_bindir}/pinger is SUID root
%package gtk
Summary: GTK2 Frontend for %{name}, a Multiping Utility
Group: Productivity/Networking/Diagnostic
Requires: %{name} = %{version}-%{release}
%description gtk
A cyclic multi ping utility for selected addresses using GTK/ncurses. You
simply write addresses into a configuration file and after execution of pinger,
you will see small nice window, which inform you about current status of
selected hosts and their triptimes.
This package has the GTK2 frontend.
%prep
%setup -q
%patch1
%patch2
%patch3
%build
autoreconf -fiv
%configure --enable-gtk
%__make %{?jobs:-j%{jobs}}
%install
%makeinstall
%__install -d "%{buildroot}%{_datadir}/applications"
%__install -m 0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/%{name}.desktop"
%__install -m 0644 "%{SOURCE2}" "%{buildroot}%{_datadir}/applications/%{name}-gtk.desktop"
%suse_update_desktop_file -r "%{name}" Network Monitor
%suse_update_desktop_file -r "%{name}-gtk" Network Monitor
%find_lang "%{name}"
%clean
%__rm -rf "%{buildroot}"
%files -f "%{name}.lang"
%defattr(-,root,root)
%doc AUTHORS BUGS ChangeLog COPYING NEWS README
%{_bindir}/pinger
%doc %{_mandir}/man1/pinger.1*
%{_datadir}/applications/%{name}.desktop
%files gtk
%defattr(-,root,root)
%{_bindir}/gtkpinger
%{_datadir}/applications/%{name}-gtk.desktop
%changelog