File tunctl.spec of Package tunctl (Revision deb50e05e78090e5f263e0e004ca5d71)
Currently displaying revision deb50e05e78090e5f263e0e004ca5d71 , Show latest
90
1
#
2
# spec file for package tunctl
3
#
4
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
5
#
6
# All modifications and additions to the file contributed by third parties
7
# remain the property of their copyright owners, unless otherwise agreed
8
# upon. The license for this file, and modifications and additions to the
9
# file, is the same license as for the pristine package itself (unless the
10
# license for the pristine package is not an Open Source License, in which
11
# case the license is the MIT License). An "Open Source License" is a
12
# license that conforms to the Open Source Definition (Version 1.9)
13
# published by the Open Source Initiative.
14
15
# Please submit bugfixes or comments via http://bugs.opensuse.org/
16
#
17
18
19
Name: tunctl
20
Version: 1.5
21
Release: 1.26
22
Summary: Create and remove virtual network interfaces
23
License: GPL-2.0+
24
Group: System/Management
25
Url: http://tunctl.sourceforge.net/
26
Source0: http://sourceforge.net/projects/tunctl/files/tunctl/%{version}/%{name}-%{version}.tar.gz
27
Patch0: %{name}-%{version}-install-manpage-noexec.patch
28
BuildRequires: docbook-utils-minimal
29
BuildRoot: %{_tmppath}/%{name}-%{version}-build
30
31
%description
32
tunctl is a tool to set up and maintain persistent TUN/TAP network
33
interfaces, enabling user applications access to the wire side of a
34
virtual nework interface. Such interfaces is useful for connecting VPN
35
software, virtualization, emulation and a number of other similar
36
applications to the network stack.
37
38
tunctl originates from the User Mode Linux project.
39
40
%prep
41
%setup -q
42
%patch0
43
44
%build
45
make CFLAGS="%{optflags}" %{?_smp_mflags}
46
47
%install
48
make DESTDIR=%{buildroot} BIN_DIR=/sbin install
49
install -d -m 0755 %{buildroot}/%{_docdir}/%{name}/
50
install -m 0644 ChangeLog %{buildroot}/%{_docdir}/%{name}/
51
52
%files
53
%defattr(-,root,root)
54
%doc %{_docdir}/%{name}
55
%doc %{_mandir}/man8/%{name}.8*
56
%attr(0755,root,root) /sbin/tunctl
57
58
%changelog
59
* Mon May 12 2014 tchvatal@suse.com
60
- Remove pointless commented lines.
61
* Fri Apr 5 2013 idonmez@suse.com
62
- Cleanup spec file
63
- Add Source URL, see https://en.opensuse.org/SourceUrls
64
* Wed Apr 18 2012 coolo@suse.com
65
- only buildrequire the minimal set of docbook-utils, we only need
66
docbook2man
67
* Mon Mar 21 2011 coolo@novell.com
68
- licenses package is about to die
69
* Wed Feb 16 2011 pcerny@novell.com
70
- patch Makefile to install the manpage as not-executable
71
* Tue Nov 16 2010 mvyskocil@suse.cz
72
- use DESTDIR=%%%%buildroot on darix's advice
73
* Thu Nov 11 2010 mvyskocil@suse.cz
74
- fixes bnc#650468 - network tunnel scripts reference tunctl by wrong path
75
* move tunctl binary to /sbin as is needed for boot
76
* Mon Aug 2 2010 mvyskocil@suse.cz
77
- fixes bnc#626582: tunctl has no manpage
78
- used the tunctl 1.5 sources from tunctl.sf.net:
79
* man page from Debian
80
* contains SUSE patches (so obsolete them here)
81
* Thu May 29 2008 mt@suse.de
82
- Fixed swapped -n and -p options in tunctl-tun-support.diff
83
* Mon Apr 14 2008 skh@suse.de
84
- update to uml_utilities_20070815
85
- adjusted uml-utilities-tunctl-tun-support.diff accordingly
86
* Wed Mar 12 2008 mt@suse.de
87
- Moved tunctl from uml-utilities into a separate package,
88
adopted spec file and existing patches.
89
- Implemented support of point-to-point tun interface type
90