File NetworkManager-openswan.spec of Package NetworkManager-openswan

#
# spec file for package NetworkManager-openswan
#
# 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 http://bugs.opensuse.org/
#


Name:           NetworkManager-openswan
Version:        1.0.8
Release:        0
Summary:        NetworkManager VPN support for OpenSWAN IPsec
License:        GPL-2.0-or-later AND LGPL-2.1-only
Group:          Productivity/Networking/System
Url:            http://www.gnome.org/projects/NetworkManager
Source0:        http://download.gnome.org/sources/NetworkManager-openswan/1.0/%{name}-%{version}.tar.xz
BuildRequires:  pkgconfig
BuildRequires:  translation-update-upstream
BuildRequires:  pkgconfig(NetworkManager)
BuildRequires:  pkgconfig(dbus-glib-1) >= 0.74
BuildRequires:  pkgconfig(glib-2.0) >= 2.32
BuildRequires:  pkgconfig(gnome-keyring-1)
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.4
BuildRequires:  pkgconfig(libnl-3.0) >= 3.2.8
BuildRequires:  pkgconfig(libnm-glib)
BuildRequires:  pkgconfig(libnm-glib-vpn)
BuildRequires:  pkgconfig(libnm-gtk) >= 0.9.10
BuildRequires:  pkgconfig(libnm-util)
BuildRequires:  pkgconfig(libsecret-unstable)
Requires:       %{name}-frontend
Recommends:     %{name}-lang
ExcludeArch:    s390 s390x

%description
NetworkManager-openconnect provides VPN support to NetworkManager for
OpenSWAN, an implementation of IPsec.

%package gnome
Summary:        NetworkManager VPN support for OpenSWAN IPsec
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
OpenSWAN, an implementation of IPsec.

%lang_package

%prep
%setup -q
translation-update-upstream

%build
%configure \
        --disable-static \
        --disable-more-warnings
make %{?_smp_mflags}

%install
%make_install
# Fix install link of nm-libreswan-service-helper
A=$(readlink %{buildroot}%{_libexecdir}/nm-libreswan-service-helper)
ln -sf ${A#%{buildroot}} %{buildroot}%{_libexecdir}/nm-libreswan-service-helper
%find_lang %{name} %{?no_lang_C}
find %{buildroot} -type f -name "*.la" -delete -print

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

%files gnome
%{_libdir}/NetworkManager/libnm-openswan-properties.so*
%{_libexecdir}/nm-openswan-auth-dialog
%{_datadir}/gnome-vpn-properties/
%{_datadir}/applications/nm-openswan-auth-dialog.desktop

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by