openconnect.spec 2.01 KB
Newer Older
1
%define keepstatic 1
Carsten Munk's avatar
Carsten Munk committed
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
Carsten Munk's avatar
Carsten Munk committed
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}
Carsten Munk's avatar
Carsten Munk committed
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

Carsten Munk's avatar
Carsten Munk committed
43
%prep
44
%setup -q -n %{name}-%{version}/upstream
Carsten Munk's avatar
Carsten Munk committed
45 46

%build
47
./autogen.sh
48 49 50
%configure --with-vpnc-script=/etc/vpnc/vpnc-script \
           --without-gnutls
make %{?_smp_mflags}
Carsten Munk's avatar
Carsten Munk committed
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
Carsten Munk's avatar
Carsten Munk committed
65

66
%files -f %{name}.lang
Carsten Munk's avatar
Carsten Munk committed
67
%defattr(-,root,root,-)
68
%license COPYING.LGPL
69 70
%{_libdir}/libopenconnect.so.*
%{_sbindir}/openconnect
71
%{_libexecdir}/openconnect/
Carsten Munk's avatar
Carsten Munk committed
72 73 74

%files devel
%defattr(-,root,root,-)
75 76
%{_libdir}/libopenconnect.so
%{_includedir}/openconnect.h
Carsten Munk's avatar
Carsten Munk committed
77
%{_libdir}/pkgconfig/openconnect.pc
78

79
%files doc
80
%defattr(-,root,root,-)
81 82
%{_mandir}/man8/%{name}.*
%{_docdir}/%{name}-%{version}