]>
Commit | Line | Data |
---|---|---|
eeff1512 JB |
1 | # |
2 | # Conditional build: | |
b22b36f2 JB |
3 | %bcond_without java # JNI bindings |
4 | %bcond_without kerberos5 # GSSAPI support | |
059c89fa JB |
5 | %bcond_with openssl # OpenSSL instead of GnuTLS (incompatible with some versions) |
6 | %bcond_without oath # OATH-based one-time password authentication | |
b22b36f2 | 7 | %bcond_without pcsc # Yutoken support via PCSC Lite |
059c89fa | 8 | %bcond_without stoken # Software Token authentication |
eeff1512 JB |
9 | %bcond_without static_libs # static library |
10 | # | |
68b16813 AO |
11 | Summary: Client for Cisco's AnyConnect SSL VPN and Pulse Connect Secure |
12 | Summary(pl.UTF-8): Klient Cisco AnyConnect SSL VPN i Pulse Connect Secure | |
8faeaf3f | 13 | Name: openconnect |
27ce34aa | 14 | Version: 8.02 |
cb956be0 | 15 | Release: 1 |
eeff1512 JB |
16 | License: LGPL v2.1 |
17 | Group: Applications/Networking | |
8faeaf3f | 18 | Source0: ftp://ftp.infradead.org/pub/openconnect/%{name}-%{version}.tar.gz |
27ce34aa | 19 | # Source0-md5: e723c92b0d435df2a521549edbe1fe3e |
d0d38427 | 20 | Patch0: %{name}-am.patch |
8faeaf3f | 21 | URL: http://www.infradead.org/openconnect.html |
63d08877 BZ |
22 | BuildRequires: autoconf >= 2.63 |
23 | BuildRequires: automake >= 1:1.10 | |
059c89fa | 24 | %{!?with_openssl:BuildRequires: gnutls-devel >= 2.12.16} |
b22b36f2 JB |
25 | BuildRequires: groff |
26 | %{?with_kerberos5:BuildRequires: heimdal-devel} | |
27 | %{?with_java:BuildRequires: jdk} | |
14fb1dbd | 28 | BuildRequires: libproxy-devel |
eeff1512 | 29 | BuildRequires: libxml2-devel >= 2.0 |
b16cfe45 | 30 | BuildRequires: lz4-devel >= 1:1.7 |
b22b36f2 | 31 | %{?with_oath:BuildRequires: oath-toolkit-devel >= 2.2.0} |
059c89fa JB |
32 | %{?with_openssl:BuildRequires: openssl-devel} |
33 | %{!?with_openssl:BuildRequires: p11-kit-devel} | |
b22b36f2 | 34 | %{?with_pcsc:BuildRequires: pcsc-lite-devel} |
059c89fa | 35 | BuildRequires: pkgconfig >= 1:0.27 |
b22b36f2 | 36 | BuildRequires: python >= 2 |
059c89fa | 37 | %{?with_stoken:BuildRequires: stoken-devel} |
aa47a45d | 38 | %{!?with_openssl:BuildRequires: trousers-devel} |
eeff1512 | 39 | BuildRequires: zlib-devel |
b22b36f2 | 40 | %{?with_oath:Requires: oath-toolkit >= 2.2.0} |
a550ede0 | 41 | Suggests: vpnc-script |
8faeaf3f MB |
42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
43 | ||
44 | %description | |
6c2d6645 JB |
45 | OpenConnect is a client for Cisco's AnyConnect SSL VPN and Pulse |
46 | Connect Secure. | |
8faeaf3f | 47 | |
14fb1dbd | 48 | %description -l pl.UTF-8 |
6c2d6645 JB |
49 | OpenConnect jest klientem Cisco AnyConnect SSL VPN i Pulse Connect |
50 | Secure. | |
14fb1dbd MB |
51 | |
52 | %package devel | |
eeff1512 JB |
53 | Summary: Development files for OpenConnect library |
54 | Summary(pl.UTF-8): Pliki programistyczne biblioteki OpenConnect | |
14fb1dbd | 55 | Group: Development/Libraries |
63d08877 | 56 | Requires: %{name} = %{version}-%{release} |
059c89fa | 57 | %{?with_openssl:Requires: gnutls-devel >= 2.12.16} |
14fb1dbd | 58 | Requires: libproxy-devel |
eeff1512 | 59 | Requires: libxml2-devel >= 2.0 |
b22b36f2 | 60 | %{?with_oath:Requires: oath-toolkit-devel >= 2.2.0} |
059c89fa JB |
61 | %{?with_openssl:Requires: openssl-devel} |
62 | %{!?with_openssl:Requires: p11-kit-devel} | |
aa47a45d | 63 | %{?with_stoken:Requires: stoken-devel} |
14fb1dbd MB |
64 | Requires: zlib-devel |
65 | ||
66 | %description devel | |
eeff1512 | 67 | Development files for OpenConnect library. |
14fb1dbd MB |
68 | |
69 | %description devel -l pl.UTF-8 | |
eeff1512 JB |
70 | Pliki programistyczne biblioteki OpenConnect. |
71 | ||
72 | %package static | |
73 | Summary: Static OpenConnect library | |
74 | Summary(pl.UTF-8): Statyczna biblioteka OpenConnect | |
75 | Group: Development/Libraries | |
76 | Requires: %{name}-devel = %{version}-%{release} | |
77 | ||
78 | %description static | |
79 | Static OpenConnect library. | |
80 | ||
81 | %description static -l pl.UTF-8 | |
82 | Statyczna biblioteka OpenConnect. | |
14fb1dbd | 83 | |
b22b36f2 JB |
84 | %package -n java-openconnect |
85 | Summary: JNI wrapper for OpenConnect library | |
86 | Summary(pl.UTF-8): Interfejs JNI do biblioteki OpenConnect | |
87 | Group: Libraries/Java | |
88 | Requires: %{name} = %{version}-%{release} | |
89 | ||
90 | %description -n java-openconnect | |
91 | JNI wrapper for OpenConnect library. | |
92 | ||
93 | %description -n java-openconnect -l pl.UTF-8 | |
94 | Interfejs JNI do biblioteki OpenConnect. | |
95 | ||
8faeaf3f MB |
96 | %prep |
97 | %setup -q | |
d0d38427 | 98 | %patch0 -p1 |
8faeaf3f MB |
99 | |
100 | %build | |
63d08877 | 101 | %{__libtoolize} |
b42ab3fb | 102 | %{__aclocal} -I m4 |
63d08877 | 103 | %{__autoconf} |
b42ab3fb | 104 | %{__autoheader} |
63d08877 | 105 | %{__automake} |
eeff1512 | 106 | %configure \ |
d0d38427 | 107 | --disable-silent-rules \ |
a550ede0 | 108 | %{?with_static_libs:--enable-static} \ |
b22b36f2 JB |
109 | %{!?with_kerberos5:--without-gssapi} \ |
110 | %{?with_java:--with-java} \ | |
059c89fa | 111 | %{!?with_oath:--without-liboath} \ |
b22b36f2 | 112 | %{!?with_pcsc:--without-libpcsclite} \ |
059c89fa | 113 | %{!?with_stoken:--without-stoken} \ |
665494d7 | 114 | --with-system-cafile=/etc/certs/ca-certificates.crt \ |
059c89fa JB |
115 | --with-vpnc-script=/usr/bin/vpnc-script \ |
116 | %{?with_openssl:--without-gnutls} | |
eeff1512 | 117 | %{__make} |
8faeaf3f MB |
118 | |
119 | %install | |
120 | rm -rf $RPM_BUILD_ROOT | |
8faeaf3f | 121 | |
63d08877 | 122 | %{__make} install \ |
8faeaf3f MB |
123 | DESTDIR=$RPM_BUILD_ROOT |
124 | ||
eeff1512 JB |
125 | # obsoleted by pkg-config |
126 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libopenconnect.la | |
b22b36f2 JB |
127 | # JNI module |
128 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libopenconnect-wrapper.{la,a} | |
eeff1512 | 129 | |
0e0edc27 JB |
130 | %find_lang %{name} |
131 | ||
8faeaf3f MB |
132 | %clean |
133 | rm -rf $RPM_BUILD_ROOT | |
134 | ||
63d08877 BZ |
135 | %post -p /sbin/ldconfig |
136 | %postun -p /sbin/ldconfig | |
137 | ||
b22b36f2 JB |
138 | %post -n java-openconnect -p /sbin/ldconfig |
139 | %postun -n java-openconnect -p /sbin/ldconfig | |
140 | ||
0e0edc27 | 141 | %files -f %{name}.lang |
8faeaf3f | 142 | %defattr(644,root,root,755) |
63d08877 | 143 | %doc AUTHORS TODO |
70761f3a | 144 | %attr(755,root,root) %{_sbindir}/openconnect |
63d08877 | 145 | %attr(755,root,root) %{_libdir}/libopenconnect.so.*.*.* |
b22b36f2 | 146 | %attr(755,root,root) %ghost %{_libdir}/libopenconnect.so.5 |
8faeaf3f | 147 | %{_mandir}/man8/openconnect.8* |
14fb1dbd MB |
148 | |
149 | %files devel | |
150 | %defattr(644,root,root,755) | |
63d08877 | 151 | %attr(755,root,root) %{_libdir}/libopenconnect.so |
14fb1dbd MB |
152 | %{_includedir}/openconnect.h |
153 | %{_pkgconfigdir}/openconnect.pc | |
059c89fa | 154 | %{_docdir}/openconnect |
eeff1512 JB |
155 | |
156 | %if %{with static_libs} | |
157 | %files static | |
158 | %defattr(644,root,root,755) | |
159 | %{_libdir}/libopenconnect.a | |
160 | %endif | |
b22b36f2 JB |
161 | |
162 | %files -n java-openconnect | |
163 | %defattr(644,root,root,755) | |
164 | %attr(755,root,root) %{_libdir}/libopenconnect-wrapper.so.*.*.* | |
165 | %attr(755,root,root) %ghost %{_libdir}/libopenconnect-wrapper.so.0 | |
166 | %attr(755,root,root) %{_libdir}/libopenconnect-wrapper.so |