File wmnetload.spec of Package wmnetload

# $Revision: 1.3 $, $Date: 2002/11/17 01:30:24 $
Summary:	An app for monitorin network load
Name:		wmnetload
Version:	1.3
Release:	1
License:	GPL
Vendor:		Peter Mamishian <meem@gnu.org>
Group:		Applications/Networking
Source0:	%{name}-%{version}.tar.gz
Patch0:		%{name}-%{version}.patch

%if 0%{?mandriva_version}
%ifarch x86_64
BuildRequires:  lib64xorg-x11-devel lib64xext6-devel lib64xpm-devel
%endif
%ifarch %{ix86}
BuildRequires:  libxorg-x11-devel libxext6-devel libxpm-devel
%endif
%define docdir %{_docdir}/%{name}
%endif
%if 0%{?rhel_version} || 0%{?centos_version} || 0%{?fedora_version}
BuildRequires:  libX11-devel libXpm-devel libXext-devel
%define docdir %{_docdir}/%{name}-%{version}
%endif
%if 0%{?suse_version}
BuildRequires:  xorg-x11-devel xorg-x11-libXpm-devel
%define docdir %{_docdir}/%{name}
%endif
BuildRequires:  libdockapp2-devel

BuildRoot:	%{_tmppath}/%{name}-buildroot

%description
A network interface monitor dockapp for Window Maker. It is designed to fit
well with dockapps like wmcpuload and wmmemmon. It tracks whether the
interface is functioning and displays current network interface throughput,
along with an auto-scaling graph of recent network activity (the graph
separates upstream and downstream traffic load cleanly without resorting to
colors).

%prep
%setup -qn %{name}-%{version}
%patch0 -p1

%build
OPTFLAGS="%{rpmcflags}" CC="%{__cc}" ./configure --prefix=%{_prefix}
%{__make}

%install
%{__install} -d  -m 0755 %{buildroot}%{_bindir}
%{__install} -d  -m 0755 %{buildroot}%{docdir}
%{__install} -s -m 0755 ./src/wmnetload %{buildroot}%{_bindir}
%{__install} -m 0644 README %{buildroot}%{docdir}

export NO_BRP_CHECK_RPATH=true

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr (-,root,root)
%doc README
%{_bindir}/*

%changelog

* Mon Mar 21 2011 Agnelo de la Crotche <agnelo@unixversal.com> 1.3-1
- package for openSUSE 11.3/11.4

openSUSE Build Service is sponsored by