File openconnect.spec of Package openconnect
#
# spec file for package openconnect
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: openconnect
Version: 3.99
Release: 1
License: LGPL-2.1+
Summary: Open client for Cisco AnyConnect VPN
Url: http://www.infradead.org/openconnect.html
Group: Productivity/Networking/Security
Source0: ftp://ftp.infradead.org/pub/%{name}/%{name}-%{version}.tar.gz
BuildRequires: libproxy-devel
BuildRequires: openssl-devel
BuildRequires: pkg-config
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(gconf-2.0)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: vpnc
Requires: vpnc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package provides a client for Cisco's "AnyConnect" VPN, which uses
HTTPS and DTLS protocols. AnyConnect is supported by the ASA5500 Series,
by IOS 12.4(9)T or later on Cisco SR500, 870, 880, 1800, 2800, 3800,
7200 Series and Cisco 7301 Routers, and probably others.
%package devel
Summary: Development files and headers for %{name}
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Recommends: pkg-config
%description devel
This package provides a client for Cisco's "AnyConnect" VPN, which uses
HTTPS and DTLS protocols. AnyConnect is supported by the ASA5500 Series,
by IOS 12.4(9)T or later on Cisco SR500, 870, 880, 1800, 2800, 3800,
7200 Series and Cisco 7301 Routers, and probably others.
This packages provides development files and headers needed to build
packages against openconnect
%package doc
Summary: Documentation for %{name}
Group: Development/Libraries/C and C++
Recommends: %{name} = %{version}
%description doc
This package provides a client for Cisco's "AnyConnect" VPN, which uses
HTTPS and DTLS protocols. AnyConnect is supported by the ASA5500 Series,
by IOS 12.4(9)T or later on Cisco SR500, 870, 880, 1800, 2800, 3800,
7200 Series and Cisco 7301 Routers, and probably others.
This packages provides documentation and help files for openconnect
%prep
%setup -q
%lang_package
%build
%configure --docdir=%{_docdir}/%{name}/
make
%install
%make_install
rm %{buildroot}%{_libdir}/libopenconnect.la
%find_lang %{name}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%{_libdir}/libopenconnect.so.*
%{_mandir}/man8/*
%{_sbindir}/openconnect
%files devel
%defattr(-,root,root)
%{_includedir}/openconnect.h
%{_libdir}/libopenconnect.so
%{_libdir}/pkgconfig/openconnect.pc
%files doc
%defattr(-,root,root)
%doc AUTHORS COPYING.LGPL TODO
%{_docdir}/%{name}/
%files lang -f %{name}.lang
%defattr(-,root,root)
%changelog