LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File NetworkManager-novellvpn.spec of Package NetworkManager-novellvpn (Project home:pchenthill:NetworkManager-novellpvn)

#
# 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 http://bugs.opensuse.org/
#

# 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
Url:            http://www.gnome.org/projects/NetworkManager
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 dimstar@opensuse.org -- Fix build against NM 0.8
Patch1:         NetworkManager-novellvpn-nm08.patch
# PATCH-FIX-UPSTREAM NetworkManager-novellvpn-dhgroup-pfsgroup-default.patch bili@novell.com -- 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

%description
NetworkManager-novellvpn provides VPN support to NetworkManager for
Turnpike.

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.



Authors:
--------
    T Sureshkumar <tsureshkumar@novell.com>
    Preggna S <spreggna@novell.com>

%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.

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

%build
autoreconf -f -i
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
%configure --disable-static --with-pic \
	    --datadir=%{_datadir}/%{name}
make

%install
make install DESTDIR=$RPM_BUILD_ROOT
%find_lang %{name}
rm $RPM_BUILD_ROOT%{_libdir}/NetworkManager/libnm-novellvpn-properties.la
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

%clean
rm -rf $RPM_BUILD_ROOT

%post gnome -p /sbin/ldconfig

%postun gnome -p /sbin/ldconfig

%files -f %{name}.lang
%defattr(-,root,root,-)
%doc README
%dir %{_sysconfdir}/NetworkManager
#%dir %{sysconfdir}/NetworkManager/dispatcher.d
%dir %{_sysconfdir}/NetworkManager/VPN
%config %{_sysconfdir}/NetworkManager/VPN/nm-novellvpn-service.name
#%{sysconfdir}/NetworkManager/dispatcher.d/racoon
%config %{_sysconfdir}/dbus-1/system.d/nm-novellvpn-service.conf
%{_libexecdir}/nm-novellvpn-service
%{_libexecdir}/nm-novellvpn-service-novellvpn-helper
%{_libexecdir}/nm_novellvpn_racoon_launcher.sh

%files gnome
%defattr(-,root,root,-)
%{_libdir}/NetworkManager/libnm-novellvpn-properties.so*
%{_libexecdir}/nm-novellvpn-auth-dialog
%dir %{_datadir}/%{name}/
%dir %{_datadir}/%{name}/applications
%{_datadir}/%{name}/applications/nm-novellvpn.desktop
%dir %{_datadir}/%{name}/gnome-vpn-properties
%dir %{_datadir}/%{name}/gnome-vpn-properties/novellvpn
%{_datadir}/%{name}/gnome-vpn-properties/novellvpn/nm-novellvpn-dialog.glade
%{_datadir}/icons/hicolor/48x48/apps/gnome-mime-application-x-novellvpn-settings.png

%changelog