File wavemon.spec of Package wavemon
#
# spec file for package wavemon (Version 0.4.0b)
#
# Copyright (c) 2008 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.4.0b
Release: 273
License: GPL v2 or later
Group: Productivity/Networking/Diagnostic
Url: http://www.wavemage.com/projects.html
AutoReqProv: on
Summary: ncurses-based monitoring application for wireless network devices
Source: http://www.wavemage.com/%{name}-%{version}.tar.bz2
Patch: wavemon.c.diff
Patch1: wavemon-optflags.diff
Patch2: wavemon-fixes.diff
Patch3: wavemon-include.diff
Patch4: pointer-comparison.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
%patch -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%build
%{?suse_update_config:%{suse_update_config -f}}
autoconf
export CFLAGS="$RPM_OPT_FLAGS"
./configure \
--prefix=%{_prefix} \
--mandir=%{_mandir} \
--sysconfdir=%{_sysconfdir}
%{__make}
%install
[ "${RPM_BUILD_ROOT}" != "/" ] && [ -d ${RPM_BUILD_ROOT} ] && rm -rf ${RPM_BUILD_ROOT}
mkdir -p \
${RPM_BUILD_ROOT}/%{_bindir} \
${RPM_BUILD_ROOT}/%{_datadir}/man/man{1,5}
%{__make} \
bindir=${RPM_BUILD_ROOT}/%{_bindir} \
mandir=${RPM_BUILD_ROOT}/%{_datadir}/man \
install
%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
%changelog
* Wed Oct 08 2008 lmuelle@suse.de
- Fix ordered comparison of pointer with integer zero; (bnc#433389).
* Thu Apr 05 2007 ssommer@suse.de
- added ncurses-devel to BuildRequires
- fixed includes for newer kernel headers
* Sat Nov 11 2006 aj@suse.de
- Fix permissions on man pages.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Oct 31 2005 dmueller@suse.de
- don't build as root
* Mon Feb 07 2005 meissner@suse.de
- truly use rpm_opt_flags, fixed warnings and gcc4 compile problems.
* Thu Apr 17 2003 lmuelle@suse.de
- inital SuSE RPM