File NetworkManager-libreswan.spec of Package NetworkManager-libreswan

# spec file for package NetworkManager-libreswan
# Copyright (c) 2018 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

Name:           NetworkManager-libreswan
Version:        1.2.10
Release:        0
Summary:        Libreswan VPN client plugin for NetworkManager
License:        GPL-2.0-or-later
Group:          Productivity/Networking/System

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

Requires:       /usr/sbin/ipsec
Recommends:     %{name}-lang
Provides:       NetworkManager-openswan = %{version}
Obsoletes:      NetworkManager-openswan < %{version}

This package contains software for integrating the libreswan VPN
software with NetworkManager and the GNOME desktop.

%package -n NetworkManager-libreswan-gnome
Summary:        NetworkManager VPN plugin for libreswan - GNOME files
Group:          Productivity/Networking/System
Requires:       %{name} = %{version}
Provides:       NetworkManager-openswan-gnome = %{version}
Obsoletes:      NetworkManager-openswan-gnome < %{version}

%description -n NetworkManager-libreswan-gnome
This package contains software for integrating VPN capabilities
with the libreswan server with NetworkManager (GNOME files).



%configure \
	--disable-static \
	--without-libnm-glib \

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

%license COPYING
%doc AUTHORS ChangeLog NEWS
%config %{_sysconfdir}/dbus-1/system.d/nm-libreswan-service.conf
%dir %{_libexecdir}/NetworkManager
%dir %{_libexecdir}/NetworkManager/VPN

%files -n NetworkManager-libreswan-gnome
%dir %{_datadir}/appdata
%dir %{_datadir}/gnome-vpn-properties
%dir %{_datadir}/gnome-vpn-properties/libreswan

%files lang -f %{name}.lang