/
openconnect.spec
82 lines (66 loc) · 2.01 KB
1
%define keepstatic 1
2
3
4
Name: openconnect
Summary: Open client for Cisco AnyConnect VPN
5
Version: 8.02
6
7
8
9
10
11
12
13
14
15
16
17
Release: 1
Group: Applications/Internet
License: LGPLv2+
URL: http://www.infradead.org/openconnect.html
Source0: ftp://ftp.infradead.org/pub/openconnect/openconnect-%{version}.tar.gz
Requires: vpnc
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(openssl)
BuildRequires: libproxy-devel
BuildRequires: gettext
18
19
20
21
22
23
%description
This package provides a client for Cisco's "AnyConnect" VPN, which uses
HTTPS and DTLS protocols.
%package devel
24
25
26
27
Summary: Development package for OpenConnect VPN authentication tools
Group: Applications/Internet
Requires: %{name} = %{version}-%{release}
Provides: openconnect-devel-static = %{version}-%{release}
28
29
30
31
32
33
%description devel
This package provides the core HTTP and authentication support from
the OpenConnect VPN client, to be used by GUI authentication dialogs
for NetworkManager etc.
34
35
36
%package doc
Summary: Documentation for %{name}
Group: Documentation
37
Requires: %{name} = %{version}-%{release}
38
Obsoletes: %{name}-docs
39
40
41
%description doc
Man page for %{name}.
42
43
%prep
44
%setup -q -n %{name}-%{version}/upstream
45
46
%build
47
./autogen.sh
48
49
50
%configure --with-vpnc-script=/etc/vpnc/vpnc-script \
--without-gnutls
make %{?_smp_mflags}
51
52
%install
53
54
rm -rf %{buildroot}
%make_install
55
rm -rf %{buildroot}%{_datadir}/openconnect
56
rm -f %{buildroot}%{_libexecdir}/openconnect/tncc-wrapper.py
57
58
59
mkdir -p %{buildroot}%{_docdir}/%{name}-%{version}
60
61
62
63
64
%find_lang %{name}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
65
66
%files -f %{name}.lang
67
%defattr(-,root,root,-)
68
%license COPYING.LGPL
69
70
%{_libdir}/libopenconnect.so.*
%{_sbindir}/openconnect
71
%{_libexecdir}/openconnect/
72
73
74
%files devel
%defattr(-,root,root,-)
75
76
%{_libdir}/libopenconnect.so
%{_includedir}/openconnect.h
77
%{_libdir}/pkgconfig/openconnect.pc
78
79
%files doc
80
%defattr(-,root,root,-)
81
82
%{_mandir}/man8/%{name}.*
%{_docdir}/%{name}-%{version}