File NetworkManager-openconnect.spec of Package NetworkManager-openconnect
#
# spec file for package NetworkManager-openconnect
#
# Copyright (c) 2015 SUSE LINUX 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: NetworkManager-openconnect
Version: 1.0.2
Release: 0
# FIXME: Verify, if -Wno-deprecated-declarations CFLAG is still required
Summary: NetworkManager VPN support for OpenConnect
License: GPL-2.0+ and LGPL-2.1
Group: Productivity/Networking/System
Url: http://www.gnome.org/projects/NetworkManager
Source0: http://download.gnome.org/sources/NetworkManager-openconnect/1.0/%{name}-%{version}.tar.xz
BuildRequires: intltool
BuildRequires: translation-update-upstream
BuildRequires: pkgconfig(NetworkManager) >= 0.9.10
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(gtk+-3.0) >= 3.4
BuildRequires: pkgconfig(libnm-glib) >= 0.9.10
BuildRequires: pkgconfig(libnm-glib-vpn) >= 0.9.10
BuildRequires: pkgconfig(libnm-util) >= 0.9.10
BuildRequires: pkgconfig(libsecret-unstable)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(openconnect) >= 3.02
Requires: %{name}-frontend
Requires: NetworkManager >= 0.9.10
Requires: openconnect
Requires(pre): pwdutils
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExcludeArch: s390 s390x
%description
NetworkManager-openconnect provides VPN support to NetworkManager for
OpenConnect, an implementation of the Cisco AnyConnect VPN system.
%package gnome
Summary: NetworkManager VPN support for OpenConnect
Group: Productivity/Networking/System
Requires: %{name} = %{version}
Requires: NetworkManager-gnome >= 0.5.1
Provides: %{name}-frontend
%description gnome
NetworkManager-openconnect provides VPN support to NetworkManager for
OpenConnect, an implementation of the Cisco AnyConnect VPN system.
%lang_package
%prep
%setup -q
translation-update-upstream
%build
export CFLAGS="%{optflags} -Wno-deprecated-declarations"
%configure \
--disable-static
make %{?_smp_mflags}
%install
%make_install
%find_lang %{name} %{?no_lang_C}
find %{buildroot}%{_libdir} -name '*.la' -delete -print
%clean
rm -rf %{buildroot}
%pre
getent group nm-openconnect >/dev/null || groupadd -r nm-openconnect
getent passwd nm-openconnect >/dev/null || useradd -r -g nm-openconnect \
-d %{_localstatedir}/lib/nm-openconnect \
-s /sbin/nologin \
-c "NetworkManager user for OpenConnect" \
nm-openconnect
exit 0
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS
%{_libexecdir}/nm-openconnect-service
%{_libexecdir}/nm-openconnect-service-openconnect-helper
%{_sysconfdir}/NetworkManager/VPN/nm-openconnect-service.name
%{_sysconfdir}/dbus-1/system.d/nm-openconnect-service.conf
%files gnome
%defattr(-,root,root,-)
%{_libdir}/NetworkManager/libnm-openconnect-properties.so*
%{_libexecdir}/nm-openconnect-auth-dialog
%{_datadir}/gnome-vpn-properties/
%files lang -f %{name}.lang
%changelog