]> git.pld-linux.org Git - packages/openconnect.git/blobdiff - openconnect.spec
- updated to 5.02
[packages/openconnect.git] / openconnect.spec
index 9f63dc134671fcafccea59b7e53eefe41b280e00..aa4fde1c3eb3226dcdfeb31012faafd0eb367f46 100644 (file)
@@ -1,24 +1,32 @@
 #
 # Conditional build:
+%bcond_with    openssl         # OpenSSL instead of GnuTLS (incompatible with some versions)
+%bcond_without oath            # OATH-based one-time password authentication
+%bcond_without stoken          # Software Token authentication
 %bcond_without static_libs     # static library
 #
 Summary:       Client for Cisco's AnyConnect SSL VPN
 Summary(pl.UTF-8):     Klient Cisco AnyConnect SSL VPN
 Name:          openconnect
-Version:       4.04
+Version:       5.02
 Release:       1
 License:       LGPL v2.1
 Group:         Applications/Networking
 Source0:       ftp://ftp.infradead.org/pub/openconnect/%{name}-%{version}.tar.gz
-# Source0-md5: aa245be3874e9c99b88fb56f7562ced2
+# Source0-md5: 8af1306ac4af7b85b6c08a1a4d216014
 Patch0:                %{name}-am.patch
+Patch1:                %{name}-link.patch
 URL:           http://www.infradead.org/openconnect.html
 BuildRequires: autoconf >= 2.63
 BuildRequires: automake >= 1:1.10
+%{!?with_openssl:BuildRequires:        gnutls-devel >= 2.12.16}
 BuildRequires: libproxy-devel
 BuildRequires: libxml2-devel >= 2.0
-BuildRequires: openssl-devel
-BuildRequires: pkgconfig
+%{?with_oath:BuildRequires:    oath-toolkit-devel}
+%{?with_openssl:BuildRequires: openssl-devel}
+%{!?with_openssl:BuildRequires:        p11-kit-devel}
+BuildRequires: pkgconfig >= 1:0.27
+%{?with_stoken:BuildRequires:  stoken-devel}
 BuildRequires: zlib-devel
 Suggests:      vpnc-script
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -34,9 +42,11 @@ Summary:     Development files for OpenConnect library
 Summary(pl.UTF-8):     Pliki programistyczne biblioteki OpenConnect
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
+%{?with_openssl:Requires:      gnutls-devel >= 2.12.16}
 Requires:      libproxy-devel
 Requires:      libxml2-devel >= 2.0
-Requires:      openssl-devel
+%{?with_openssl:Requires:      openssl-devel}
+%{!?with_openssl:Requires:     p11-kit-devel}
 Requires:      zlib-devel
 
 %description devel
@@ -60,6 +70,7 @@ Statyczna biblioteka OpenConnect.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__libtoolize}
@@ -69,7 +80,11 @@ Statyczna biblioteka OpenConnect.
 %configure \
        --disable-silent-rules \
        %{?with_static_libs:--enable-static} \
-       --with-vpnc-script=/usr/bin/vpnc-script
+       %{!?with_oath:--without-liboath} \
+       %{!?with_stoken:--without-stoken} \
+       --with-system-cafile=/etc/certs/ca-certificates.crt \
+       --with-vpnc-script=/usr/bin/vpnc-script \
+       %{?with_openssl:--without-gnutls}
 %{__make}
 
 %install
@@ -102,6 +117,7 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_libdir}/libopenconnect.so
 %{_includedir}/openconnect.h
 %{_pkgconfigdir}/openconnect.pc
+%{_docdir}/openconnect
 
 %if %{with static_libs}
 %files static
This page took 0.047276 seconds and 4 git commands to generate.