File wmping.spec of Package wmping
# $Revision: 1.5 $, $Date: 2004/07/18 08:49:20 $
Summary: Network hosts status monitor
Name: wmping
Version: 0.2.1
Release: 1
License: GPL
Group: Productivity/Networking/DNS/Utilities
Source0: %{name}-%{version}.tar.gz
URL: http://freshmeat.net/projects/wmping/
%if 0%{?mandriva_version}
%ifarch x86_64
BuildRequires: lib64xorg-x11-devel lib64xext6-devel lib64xt-devel
%endif
%ifarch %{ix86}
BuildRequires: libxorg-x11-devel libxext6-devel libxt-devel
%endif
BuildRequires: libxpm-devel
%endif
%if 0%{?rhel_version} || 0%{?centos_version} || 0%{?fedora_version}
BuildRequires: libX11-devel libXpm-devel libXext-devel libXt-devel
%endif
%if 0%{?suse_version}
BuildRequires: xorg-x11-devel xorg-x11-libXpm-devel xorg-x11-libXt-devel xorg-x11-libXext-devel
%endif
Requires: iputils
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Wmping is a dockapp which checks the status of hosts in a network. It
show "up" status for a host that is available and "down" status for a
host that cannot be pinged.
%prep
%setup -q
%build
./configure --prefix=%{_prefix}
%{__make}
%install
%{__install} -d -m 0755 %{buildroot}%{_bindir}
%{__install} -d -m 0755 %{buildroot}%{_mandir}/man1
%{__install} -s -m 0755 %{name} %{buildroot}%{_bindir}
%{__install} %{name}.1 %{buildroot}%{_mandir}/man1
%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc AUTHORS NEWS README TODO
%{_bindir}/*
%{_mandir}/*
%changelog
* Mon Mar 21 2011 Agnelo de la Crotche <agnelo@unixversal.com> 0.2.1
- package for openSUSE 11.3/11.4