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.15
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:  openssl-devel
BuildRequires:  pkg-config
BuildRequires:  pkgconfig(dbus-1)
BuildRequires:  pkgconfig(gconf-2.0)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(libxml-2.0)
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 openconnect
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}
Recommends:     pkg-config
Provides:       %{name}-devel-static

%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
%lang_package

%build
%configure
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)
%doc AUTHORS COPYING.LGPL TODO
%{_sbindir}/openconnect
%{_mandir}/man8/*
%{_libdir}/libopenconnect.so.*
%{_datadir}/openconnect/

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

%files lang -f %{name}.lang
%defattr(-,root,root)

%changelog
openSUSE Build Service is sponsored by