File NetworkManager-novellvpn.spec of Package NetworkManager-novellvpn

# spec file for package NetworkManager-novellvpn (Version 0.7.2.r1138)
# Copyright (c) 2010 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

# norootforbuild 

Name:           NetworkManager-novellvpn
BuildRequires:  NetworkManager-devel NetworkManager-gnome intltool libglade2-devel libgnomeui-devel libnl-devel perl-XML-Parser update-desktop-files
Summary:        VPN support for Turnpike
Version:        0.7.2.r1138
Release:        7.<RELEASE1>
License:        GPLv2+
Group:          Productivity/Networking/System
Source0:        %{name}-%{version}.tar.bz2
Source1:        gnome-mime-application-x-novellvpn-settings.png
Source2:        %{name}-po.tar.gz 
Patch0:         %{name}-dbus-policy.patch
# PATCH-FIX-UPSTREAM NetworkManager-novellvpn-nm08.patch -- Fix build against NM 0.8
Patch1:         NetworkManager-novellvpn-nm08.patch
# PATCH-FIX-UPSTREAM NetworkManager-novellvpn-dhgroup-pfsgroup-default.patch -- Fix default value for dhgroup&pfsgroup.
Patch2:         NetworkManager-novellvpn-dhgroup-pfsgroup-default.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       NetworkManager >= 0.7.0.r4274
Requires:       %{name}-frontend
Requires:       novell-ipsec-tools >= 0.7
Requires:       novell-nortelplugins >= 0.1.4
Requires:       turnpike >= 0.1.2

NetworkManager-novellvpn provides VPN support to NetworkManager for

With NetworkManager-novellvpn, NetworkManager could configure and
connect the IPSec based VPN Server, such as Nortel's VPN Server(also
need novell-nortelplugins package).

The NetworkManager will make use of the 'nvpn' tool(turnpike) to
communicate with 'racoon'(novell-ipsec-tools) for connecting to IPSec
based VPN Server.

    T Sureshkumar <>
    Preggna S <>

%package gnome
License:        GPLv2+
Summary:        VPN support for Turnpike
Group:          Productivity/Networking/System
Provides:       %{name}-frontend
Requires:       %{name} = %{version}-%{release}
Requires:       NetworkManager-gnome >= 0.7.0

%description gnome
NetworkManager-novellvpn-gnome is GNOME-based front-end of
NetworkManager-novellvpn. It provides interface for configuring Novell
related VPN in NetworkManager.

%setup -n %{name}-0.7.2 -q -a2
%patch0 -p1
%patch1 -p1
%patch2 -p1

autoreconf -f -i
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
%configure --disable-static --with-pic \

%find_lang %{name}
rm $RPM_BUILD_ROOT%{_libdir}/NetworkManager/
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
#mkdir -p $RPM_BUILD_ROOT/%{sysconfdir}/NetworkManager/dispatcher.d
rm $RPM_BUILD_ROOT%{_datadir}/%{name}/icons/hicolor/48x48/apps/gnome-mime-application-x-novellvpn-settings.png
cp %{S:1} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/
#install -m 755 %{S:3} $RPM_BUILD_ROOT/%{sysconfdir}/NetworkManager/dispatcher.d/racoon
%suse_update_desktop_file nm-novellvpn GNOME Network Monitor Applet


%post gnome -p /sbin/ldconfig

%postun gnome -p /sbin/ldconfig

%files -f %{name}.lang
%dir %{_sysconfdir}/NetworkManager
#%dir %{sysconfdir}/NetworkManager/dispatcher.d
%dir %{_sysconfdir}/NetworkManager/VPN
%config %{_sysconfdir}/NetworkManager/VPN/
%config %{_sysconfdir}/dbus-1/system.d/nm-novellvpn-service.conf

%files gnome
%dir %{_datadir}/%{name}/
%dir %{_datadir}/%{name}/applications
%dir %{_datadir}/%{name}/gnome-vpn-properties
%dir %{_datadir}/%{name}/gnome-vpn-properties/novellvpn