File openconnect.spec of Package openconnect

#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#

# norootforbuild

Name:		openconnect
Version:	2.26
Release:	0
Summary:	Open client for Cisco AnyConnect VPN
Group:		Productivity/Networking/Security
License:	LGPLv2+
URL:		http://git.infradead.org/users/dwmw2/openconnect.git
Source0:	%name-%version.tar.bz2
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:	openssl-devel libxml2-devel gtk2-devel
BuildRequires:  gconf2-devel dbus-1-devel
Requires:	vpnc

%description
This package provides a client for Cisco's "AnyConnect" VPN, which uses
HTTPS and DTLS protocols.

%prep
%setup -q

%build
%__make %{?_smp_mflags}


%install
%makeinstall
mkdir -p %buildroot/%_mandir/man8
mkdir -p %buildroot/%_libexecdir
# on suse and other distros libexecdir is /usr/lib not /usr/libexec
mv %buildroot/%_prefix/libexec/nm-openconnect-auth-dialog %buildroot/%_libexecdir/nm-openconnect-auth-dialog
install -m0644 openconnect.8 %buildroot/%{_mandir}/man8/


%clean
rm -rf %buildroot

%files
%defattr(-,root,root,-)
%_bindir/openconnect
%_libexecdir/nm-openconnect-auth-dialog
%_mandir/man8/*
%doc TODO COPYING.LGPL

%changelog
openSUSE Build Service is sponsored by