openconnect.spec 2.31 KB
Newer Older
1
%define keepstatic 1
2
%define __requires_exclude /system/bin/sh
Carsten Munk's avatar
Carsten Munk committed
3

4 5
Name:       openconnect
Summary:    Open client for Cisco AnyConnect VPN
6
Version:    8.10
7 8
Release:    1
License:    LGPLv2+
9
URL:        https://git.sailfishos.org/mer-core/openconnect/
10
Source0:    ftp://ftp.infradead.org/pub/openconnect/openconnect-%{version}.tar.gz
11
Patch0:     Make-scripts-more-compatible-with-other-shells.patch
12 13 14
Patch1:     0001-setup-default-port-443-in-openconnect_vpninfo_new.patch
Patch2:     0002-remove-port-setup-in-ssl-connect.patch
Patch3:     0003-check-that-port-is-in-valid-range.patch
15 16 17 18 19 20 21
Requires:   vpnc
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(openssl)
BuildRequires:  libproxy-devel
BuildRequires:  gettext
Carsten Munk's avatar
Carsten Munk committed
22 23 24 25 26 27

%description
This package provides a client for Cisco's "AnyConnect" VPN, which uses
HTTPS and DTLS protocols.

%package devel
28 29 30 31
Summary:    Development package for OpenConnect VPN authentication tools
Group:      Applications/Internet
Requires:   %{name} = %{version}-%{release}
Provides:   openconnect-devel-static = %{version}-%{release}
Carsten Munk's avatar
Carsten Munk committed
32 33 34 35 36 37

%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.

38 39 40
%package doc
Summary:    Documentation for %{name}
Group:      Documentation
41
Requires:   %{name} = %{version}-%{release}
42
Obsoletes:  %{name}-docs
43

44 45
%description doc
Man page for %{name}.
46

Carsten Munk's avatar
Carsten Munk committed
47
%prep
48
%setup -q -n %{name}-%{version}/upstream
Carsten Munk's avatar
Carsten Munk committed
49 50

%build
51
./autogen.sh
52 53 54
%configure --with-vpnc-script=/etc/vpnc/vpnc-script \
           --without-gnutls
make %{?_smp_mflags}
Carsten Munk's avatar
Carsten Munk committed
55 56

%install
57 58
rm -rf %{buildroot}
%make_install
59
rm -rf %{buildroot}%{_datadir}/openconnect
60
rm -rf %{buildroot}%{_datadir}/bash-completion
61
rm -f %{buildroot}%{_libexecdir}/openconnect/tncc-wrapper.py
62

63 64
mkdir -p %{buildroot}%{_docdir}/%{name}-%{version}

65 66 67 68 69
%find_lang %{name}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig
Carsten Munk's avatar
Carsten Munk committed
70

71
%files -f %{name}.lang
Carsten Munk's avatar
Carsten Munk committed
72
%defattr(-,root,root,-)
73
%license COPYING.LGPL
74 75
%{_libdir}/libopenconnect.so.*
%{_sbindir}/openconnect
76
%{_libexecdir}/openconnect/
Carsten Munk's avatar
Carsten Munk committed
77 78 79

%files devel
%defattr(-,root,root,-)
80 81
%{_libdir}/libopenconnect.so
%{_includedir}/openconnect.h
Carsten Munk's avatar
Carsten Munk committed
82
%{_libdir}/pkgconfig/openconnect.pc
83

84
%files doc
85
%defattr(-,root,root,-)
86 87
%{_mandir}/man8/%{name}.*
%{_docdir}/%{name}-%{version}