File openconnect.spec of Package openconnect

#
# spec file for package openconnect
#
# Copyright (c) 2011 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.11
Release:	0
Summary:	Open client for Cisco AnyConnect VPN
Group:		Productivity/Networking/Security
License:	LGPL-2.1
URL:		http://www.infradead.org/openconnect.html
Source0:	%name-%version.tar.bz2
BuildRoot:	%{_tmppath}/%{name}-%{version}-build
BuildRequires:	openssl-devel libxml2-devel gtk2-devel
BuildRequires:  gconf2-devel dbus-1-devel, pkg-config
Requires:	vpnc

%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
Group:          Development/Libraries/C and C++
Summary:	Development files and headers for openconnect
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

%prep
%setup -q

%build
%configure
%__make %{?_smp_mflags}


%install
%make_install
mkdir -p %buildroot/%_mandir/man8
install -m0644 openconnect.8 %buildroot/%{_mandir}/man8/

%post   -p /sbin/ldconfig

%postun -p /sbin/ldconfig


%clean
rm -rf %buildroot

%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING.LGPL TODO
%doc %_mandir/man8/*
%_bindir/openconnect
%{_libdir}/libopenconnect.la
%{_libdir}/libopenconnect.so.*


%files devel
%defattr(-,root,root,-)
%{_includedir}/openconnect.h
%{_libdir}/libopenconnect.so
%{_libdir}/pkgconfig/openconnect.pc

%changelog
openSUSE Build Service is sponsored by