File wavemon.spec of Package wavemon

#
# spec file for package wavemon (Version 0.6.10)
#
# Copyright (c) 2010 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/
#

# norootforbuild


Name:           wavemon
BuildRequires:  ncurses-devel
Version:        0.6.10
Release:        2
License:        GPLv2+
Group:          Productivity/Networking/Diagnostic
Url:            http://eden-feed.erg.abdn.ac.uk/wavemon/
AutoReqProv:    on
Summary:        An ncurses monitoring application for wireless network devices
Source:         %{name}-%{version}.tar.bz2
Patch0:         wavemon-optflags.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
wavemon is a wireless device monitoring application that allows you to
watch signal and noise levels, packet statistics, device configuration
and network parameters of your wireless network hardware. It has
currently only been tested with the Lucent Orinoco series of cards,
although it *should* work (though with varying features) with all
devices supported by the wireless kernel extensions by Jean Tourrilhes.



Authors:
--------
    Jan Morgenstern <jan at jm-music.de>

%prep
%setup
%patch0 -p1

%build
# This package failed when testing with -Wl,-as-needed being default.
# So we disable it here, if you want to retest, just delete this comment and the line below.
export SUSE_ASNEEDED=0
%{?suse_update_config:%{suse_update_config -f}}
autoconf
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS=$CFLAGS
%configure \
	--prefix=%{_prefix} \
	--mandir=%{_mandir} \
	--sysconfdir=%{_sysconfdir} \
	--docdir=%{_docdir}/%{name} \
	--libdir=%{_libdir}
make %{?jobs:-j%jobs}

%install
%makeinstall
mkdir -p ${RPM_BUILD_ROOT}%{_docdir}
mv ${RPM_BUILD_ROOT}%{_datadir}/%{name} ${RPM_BUILD_ROOT}%{_docdir}/

%clean
[ "${RPM_BUILD_ROOT}" != "/" ] && [ -d ${RPM_BUILD_ROOT} ] && rm -rf ${RPM_BUILD_ROOT}

%files
%defattr(-,root,root,-)
%{_bindir}/wavemon
%{_datadir}/man/man1/wavemon.1.gz
%{_datadir}/man/man5/wavemonrc.5.gz
%dir %{_docdir}/%{name}
%{_docdir}/%{name}/*

%changelog