File tunctl.spec of Package tunctl
#
# spec file for package tunctl (Version 20070815)
#
# Copyright (c) 2008 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://bugs.opensuse.org/
#
# norootforbuild
Name: tunctl
Url: http://user-mode-linux.sourceforge.net/
License: GPL v2 or later
Group: System/Management
AutoReqProv: on
Version: 20070815
Release: 10
Summary: User Mode Linux tunctl utility
Source0: uml_utilities_%{version}.tar.bz2
Patch1: uml-utilities-tunctl-dont-strip.diff
Patch2: uml-utilities-tunctl-tun-support.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
User mode Linux tunctl utility, extended to support point-to-point tun
interfaces.
Authors:
--------
Jeff Dike <jdike@users.sourceforge.net>
%prep
%setup -q -n tools-%{version}
%patch1
%patch2
%build
make -C tunctl \
BIN_DIR="/bin" \
LIB_DIR="%{_libdir}/uml" \
CFLAGS="$RPM_OPT_FLAGS -fPIE -pie" \
all
%install
make -C tunctl \
BIN_DIR="/bin" \
LIB_DIR="%{_libdir}/uml" \
DESTDIR="%{buildroot}" \
install
%files
%defattr(755,root,root)
/bin/tunctl
%clean
test "%{buildroot}" != "" -a "%{buildroot}" != "/" &&\
rm -rf "%{buildroot}"
%changelog
* Thu May 29 2008 mt@suse.de
- Fixed swapped -n and -p options in tunctl-tun-support.diff
* Mon Apr 14 2008 skh@suse.de
- update to uml_utilities_20070815
- adjusted uml-utilities-tunctl-tun-support.diff accordingly
* Wed Mar 12 2008 mt@suse.de
- Moved tunctl from uml-utilities into a separate package,
adopted spec file and existing patches.
- Implemented support of point-to-point tun interface type