File batctl.spec of Package batctl

#
# spec file for package batctl
#
# Copyright (c) 2011 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/
#

# Upstream First - Policy:
# Never add any patches to this package without the upstream commit id
# in the patch. Any patches added here without a very good reason to make
# an exception will be silently removed with the next version update.

Name:           batctl
Summary:        B.A.T.M.A.N. advanced control and management tool
Version:        2011.1.0
Release:        2
License:        GPL-2.0
Group:          Productivity/Networking/Other
Url:            http://downloads.open-mesh.org/batman/stable/sources/batctl/
Source0:        %{name}-%{version}.tar.gz

%description
Why do I need batctl?  B.A.T.M.A.N. advanced operates on layer 2 and
thus all hosts participating in the virtual switch are completely
transparent for all protocols above layer 2.  Therefore the common
diagnosis tools do not work as expected.  To overcome these problems
batctl was created.  At the moment batctl contains ping, traceroute,
tcpdump and interfaces to the kernel module settings.

  Authors:      Andreas Langer <an.langer@gmx.de>, Marek Lindner <lindner_marek@yahoo.de>

%prep
%setup -n %{name}-%{version}

%build
make %{?_smp_mflags} OPTFLAGS="$RPM_OPT_FLAGS"

%install
%{__mkdir_p} $RPM_BUILD_ROOT%{_bindir}
%{__mkdir_p} $RPM_BUILD_ROOT%{_mandir}/man8
%{__install} -m 644 man/%{name}.8 $RPM_BUILD_ROOT%{_mandir}/man8
%{__install} -m 755 %{name} $RPM_BUILD_ROOT%{_bindir}

%files
%defattr(-,root,root)
%doc README
%{_bindir}/%{name}
%{_mandir}/man8/%{name}.8.gz

%changelog