File ifmetric.spec of Package ifmetric

#
# spec file for package ifmetric (Version 0.3)
#
# Copyright (c) 2005 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://www.suse.de/feedback/
#

# norootforbuild

Name:         ifmetric
BuildRequires: lynx
URL:          http://0pointer.de/lennart/projects/ifmetric/index.html
License:      GPL
Group:        System/Base
Autoreqprov:  on
Version:      0.3
Release:      5
Summary:      A tool to change the metric of an interface.
Source:       %{name}-%{version}.tar.gz
BuildRoot:    %{_tmppath}/%{name}-%{version}-build

%description
Ifmetric is a tool to change the metrics of existing routes. This can
be used to redirect traffic on a machine with multiple network
interfaces onto one of these interfaces.



Authors:
--------
    Lennart Poettering <mzvszrgevp (at) 0pointer (dot) de>

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

%build
./configure --prefix=%{_prefix} --mandir=%{_mandir} --sbindir=/sbin
make CFLAGS="$RPM_OPT_FLAGS"

%install
make DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT/%{_docdir}/ifmetric
cp -av README LICENSE $RPM_BUILD_ROOT/%{_docdir}/ifmetric/

%files
%defattr(-,root,root)
/sbin/ifmetric
%{_mandir}/man8/ifmetric.8.gz
%{_docdir}/ifmetric

%changelog -n ifmetric
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Oct 05 2005 - dmueller@suse.de
- add norootforbuild
* Sun Sep 05 2004 - seife@suse.de
- initial package submission.
openSUSE Build Service is sponsored by