File NetworkManager-l2tp.spec of Package NetworkManager-l2tp
#
# spec file for package NetworkManager-l2tp
#
# Copyright (c) 2014 SUSE LINUX Products 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-l2tp
%define pppd_plugin_dir %(rpm -ql ppp | grep -m1 pppd/[0-9]*)
Summary: NetworkManager VPN support for L2TP
License: GPL-2.0+
Group: Productivity/Networking/System
Version: 0.9.8.7
Release: 0
Url: https://github.com/seriyps/NetworkManager-l2tp
Source0: https://github.com/seriyps/NetworkManager-l2tp/archive/%{version}.tar.gz
Source1: NetworkManager-l2tp-rpmlintrc
BuildRequires: grep
BuildRequires: intltool
BuildRequires: gnome-common
BuildRequires: ppp-devel
BuildRequires: pkgconfig(gthread-2.0)
BuildRequires: pkgconfig(NetworkManager) >= 0.9.8
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(gnome-keyring-1)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libnm-glib) >= 0.9.8
BuildRequires: pkgconfig(libnm-glib-vpn) >= 0.9.8
BuildRequires: pkgconfig(libnm-util) >= 0.9.8
Requires: NetworkManager >= 0.9.8
Requires: pptp
Requires: xl2tpd
Requires: strongswan-ipsec
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
NetworkManager-l2tp provides VPN support to NetworkManager for L2TP.
===============================
This version has IPSEC support and can connect to a Sonicwall
Uses xl2tpd and (optional) openswan.
%package gnome
Summary: NetworkManager VPN support for L2TP
Group: Productivity/Networking/System
Requires: %{name} = %{version}-%{release}
Requires: NetworkManager-gnome
%description gnome
NetworkManager-l2tp provides VPN support to NetworkManager for L2TP.
===============================
This version has IPSEC support and can connect to a Sonicwall
Uses xl2tpd and (optional) openswan.
%lang_package
%prep
%setup -q
%build
./autogen.sh
%configure\
--disable-static \
--with-pppd-plugin-dir=%{pppd_plugin_dir} \
--disable-more-warnings
%__make %{?_smp_mflags}
%install
%makeinstall
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/
install -D gnome-mime-application-x-l2tp-settings.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/
%find_lang %{name} %{?no_lang_C}
find %{buildroot}%{_libdir} -name '*.la' -delete -print
%post gnome
%icon_theme_cache_post
%postun gnome
%icon_theme_cache_postun
%files
%defattr(-,root,root,-)
%doc README
%{_libexecdir}/nm-l2tp-service
%config %{_sysconfdir}/NetworkManager/VPN/nm-l2tp-service.name
%config %{_sysconfdir}/dbus-1/system.d/nm-l2tp-service.conf
%{pppd_plugin_dir}/nm-l2tp-pppd-plugin.*
%files gnome
%defattr(-,root,root,-)
%{_libdir}/NetworkManager/libnm-l2tp-properties.so*
%{_libexecdir}/nm-l2tp-auth-dialog
%{_datadir}/gnome-vpn-properties/
%{_datadir}/icons/hicolor/*/*/*.png
%files lang -f %{name}.lang
%changelog