File NetworkManager-pptp.spec of Package NetworkManager-pptp
#
# spec file for package NetworkManager-pptp
#
# Copyright (c) 2016 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-pptp
%define pppd_plugin_dir %(rpm -ql ppp | grep -m1 pppd/[0-9]*)
Summary: NetworkManager VPN support for PPTP
License: GPL-2.0+
Group: Productivity/Networking/System
Version: 1.2.4
Release: 0
Url: http://www.gnome.org/projects/NetworkManager
Source0: http://download.gnome.org/sources/NetworkManager-pptp/1.2/%{name}-%{version}.tar.xz
BuildRequires: grep
BuildRequires: intltool
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: pptp
%requires_eq ppp
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
NetworkManager-pptp provides VPN support to NetworkManager for PPTP.
%package gnome
Summary: NetworkManager VPN support for PPTP
Group: Productivity/Networking/System
Provides: %{name}-frontend = %{version}
Requires: %{name} = %{version}-%{release}
Requires: NetworkManager-gnome
%description gnome
NetworkManager-pptp provides VPN support to NetworkManager for PPTP.
%lang_package
%prep
%setup -q
%build
%configure\
--disable-static \
--with-pppd-plugin-dir=%{pppd_plugin_dir}
%__make %{?_smp_mflags}
%install
%makeinstall
%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
%{_libdir}/NetworkManager/libnm-vpn-plugin-pptp.so
%{_libexecdir}/nm-pptp-service
%dir %{_libexecdir}/NetworkManager
%dir %{_libexecdir}/NetworkManager/VPN
%{_libexecdir}/NetworkManager/VPN/nm-pptp-service.name
%{_sysconfdir}/dbus-1/system.d/nm-pptp-service.conf
%{pppd_plugin_dir}/nm-pptp-pppd-plugin.so
%files gnome
%defattr(-,root,root,-)
%{_datadir}/appdata/network-manager-pptp.metainfo.xml
%{_datadir}/gnome-vpn-properties/
%{_libdir}/NetworkManager/libnm-pptp-properties.so*
%{_libdir}/NetworkManager/libnm-vpn-plugin-pptp-editor.so
%{_libexecdir}/nm-pptp-auth-dialog
%{_sysconfdir}/NetworkManager/VPN/nm-pptp-service.name
%files lang -f %{name}.lang
%changelog