File NetworkManager-fortisslvpn.spec of Package NetworkManager-fortisslvpn

# spec file for package NetworkManager-fortisslvpn
# Copyright (c) 2020 SUSE LLC
# 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

%define base_ver 1.2
%define pppd_plugin_dir %(rpm -ql ppp | grep -m1 pppd/[0-9]*)

Name:           NetworkManager-fortisslvpn
Version:        1.2.10
Release:        0
Summary:        NetworkManager VPN plugin for Fortinet compatible SSLVPN
License:        GPL-2.0-or-later
Group:          Productivity/Networking/System
# PATCH-FIX-UPSTREAM NetworkManager-fortisslvpn-fix-incompat-openfortivpn.patch -- Fix incompatibility with openfortivpn >= 1.11.0
Patch0:         NetworkManager-fortisslvpn-fix-incompat-openfortivpn.patch

BuildRequires:  intltool >= 0.35
BuildRequires:  ppp-devel
BuildRequires:  pkgconfig(gio-unix-2.0) >= 2.32
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.4
BuildRequires:  pkgconfig(libnm) >= 1.2.0
BuildRequires:  pkgconfig(libnma) >= 1.2.0
BuildRequires:  pkgconfig(libsecret-1) >= 0.18

Requires:       openfortivpn >= 1.11.0
# the pppd plugin are strict on the version, see boo#1175106
# ppe is transient already required by NM directly, but we need
# the versioned dep here to ensure a rebuild in case of ppp
# version changes
%requires_eq    ppp

This package contains software for integrating Fortinet compatible
SSLVPN server VPN capabilities with with NetworkManager.

%package -n NetworkManager-fortisslvpn-gnome
Summary:        GNOME files for the NetworkManager SSLVPN plugin
Group:          Productivity/Networking/System
Requires:       %{name} = %{version}

%description -n NetworkManager-fortisslvpn-gnome
This package contains the GNOME files for integrating
Fortinet-compatible SSLVPN server VPN capabilities with


%autosetup -p1

%configure \
	--disable-static \
	--without-libnm-glib \
	--with-pppd-plugin-dir=%{pppd_plugin_dir} \

%find_lang %{name} %{?no_lang_C}
find %{buildroot} -type f -name "*.la" -delete -print

%license COPYING
%config %{_sysconfdir}/dbus-1/system.d/nm-fortisslvpn-service.conf

%files -n NetworkManager-fortisslvpn-gnome

%files lang -f %{name}.lang

openSUSE Build Service is sponsored by