File tunctl.spec of Package tunctl

# spec file for package tunctl
# Copyright (c) 2012 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

Name:           tunctl
Version:        1.5
Release:        0
Summary:        Create and remove virtual network interfaces
License:        GPL-2.0+
Group:          System/Management
Source0:        %{name}-%{version}.tar.bz2
Patch0:         %{name}-%{version}-install-manpage-noexec.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  docbook-utils-minimal

tunctl is a tool to set up and maintain persistent TUN/TAP network
interfaces, enabling user applications access to the wire side of a
virtual nework interface. Such interfaces is useful for connecting VPN
software, virtualization, emulation and a number of other similar
applications to the network stack.

tunctl originates from the User Mode Linux project. 

%setup -q

#sed -i 's/^CFLAGS=.*/CFLAGS=%{optflags}' Makefile

%{__make} CFLAGS="%{optflags}" %{?_smp_mflags}

make DESTDIR="%{buildroot}" BIN_DIR=/sbin install
%{__install} -d -m 0755 %{buildroot}/%{_docdir}/%{name}/
%{__install} -m 0644 ChangeLog %{buildroot}/%{_docdir}/%{name}/

%{__rm} -rf %{buildroot}

%doc %{_docdir}/%{name}
%doc %{_mandir}/man8/%{name}.8*
%attr(0755,root,root) /sbin/tunctl

openSUSE Build Service is sponsored by