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