File NetworkManager-l2tp.spec of Package NetworkManager-l2tp
#
# spec file for package NetworkManager-l2tp
#
# 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/
#
%define pppd_plugin_dir %(rpm -ql ppp | grep -m1 pppd/[0-9]*)
Name: NetworkManager-l2tp
Version: 1.2.8
Release: 0
Summary: NetworkManager VPN support for L2TP and L2TP/IPsec
License: GPL-2.0-or-later
Group: Productivity/Networking/System
URL: https://github.com/nm-l2tp/network-manager-l2tp
Source0: https://github.com/nm-l2tp/network-manager-l2tp/archive/%{version}/network-manager-l2tp-%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gettext
BuildRequires: grep
BuildRequires: intltool
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: ppp-devel
BuildRequires: pkgconfig(NetworkManager) >= 1.2.0
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libnm) >= 1.2.0
BuildRequires: pkgconfig(libnm-glib) >= 1.2.0
BuildRequires: pkgconfig(libnm-glib-vpn) >= 1.2.0
BuildRequires: pkgconfig(libnm-gtk) >= 1.2.0
BuildRequires: pkgconfig(libnm-util) >= 1.2.0
BuildRequires: pkgconfig(libnma) >= 1.2.0
BuildRequires: pkgconfig(libsecret-1)
Requires: NetworkManager >= 1.2.0
Requires: xl2tpd
%requires_eq ppp
Recommends: %{name}-lang
Recommends: strongswan
%description
This package contains software for integrating L2TP and L2TP/IPsec
(L2TP over IPsec) VPN support with NetworkManager.
%package gnome
Summary: NetworkManager VPN support for L2TP and L2TP/IPsec
Group: Productivity/Networking/System
Requires: %{name} = %{version}-%{release}
Requires: NetworkManager-applet
%description gnome
This package contains software for integrating L2TP and L2TP/IPsec
(L2TP over IPsec) VPN support with NetworkManager.
%lang_package
%prep
%setup -q -n network-manager-l2tp-%{version}
%build
autoreconf -fi
intltoolize
%configure\
--disable-static \
--with-pppd-plugin-dir=%{pppd_plugin_dir} \
--with-dist-version=%{version}-%{release}
make %{?_smp_mflags}
%check
make %{?_smp_mflags} check
%install
%make_install
%find_lang %{name} %{?no_lang_C}
find %{buildroot} -type f -name "*.la" -delete -print
%files
%doc README.md NEWS
%{_libdir}/NetworkManager/libnm-vpn-plugin-l2tp.so
%{_libexecdir}/nm-l2tp-service
%dir %{_libexecdir}/NetworkManager
%dir %{_libexecdir}/NetworkManager/VPN
%{_libexecdir}/NetworkManager/VPN/nm-l2tp-service.name
%{_sysconfdir}/dbus-1/system.d/nm-l2tp-service.conf
%{pppd_plugin_dir}/nm-l2tp-pppd-plugin.so
%files gnome
%{_datadir}/appdata/network-manager-l2tp.metainfo.xml
%{_datadir}/gnome-vpn-properties/
%{_libdir}/NetworkManager/libnm-l2tp-properties.so*
%{_libdir}/NetworkManager/libnm-vpn-plugin-l2tp-editor.so
%{_libexecdir}/nm-l2tp-auth-dialog
%{_sysconfdir}/NetworkManager/VPN/nm-l2tp-service.name
%files lang -f %{name}.lang
%changelog