LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File NetworkManager-novellvpn.spec of Package NetworkManager-novellvpn (Project network:vpn)

#
# spec file for package NetworkManager-novellvpn
#
# Copyright (c) 2012 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-novellvpn
Summary:        NetworkManager VPN support for Turnpike
License:        GPL-2.0+
Group:          Productivity/Networking/System
Version:        0.9.0.r29
Release:        0
Url:            http://www.gnome.org/projects/NetworkManager
Source0:        %{name}-%{version}.tar.bz2
Source1:        gnome-mime-application-x-novellvpn-settings.png
Patch0:         nm-novellvpn-desktop.patch
Patch1:         nm-novellvpn-toplevel.patch
Patch2:         nm-novellvpn-glib2_31.patch
BuildRequires:  intltool
BuildRequires:  translation-update-upstream
BuildRequires:  pkgconfig(NetworkManager)
BuildRequires:  pkgconfig(dbus-glib-1)
BuildRequires:  pkgconfig(gnome-keyring-1)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(libnl-1)
BuildRequires:  pkgconfig(libnm-glib)
BuildRequires:  pkgconfig(libnm-util)
BuildRequires:  pkgconfig(libxml-2.0)
Requires:       %{name}-frontend
Requires:       NetworkManager > 0.8.2
Requires:       novell-ipsec-tools >= 0.7
Requires:       novell-nortelplugins >= 0.1.4
Requires:       turnpike >= 0.1.2
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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

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

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

%lang_package
%prep
#'
%setup -n %{name}-0.9.0 -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
cp -a %{S:1} nm-novellvpn-settings.png
# Call translation-update-upstream after patching - LCN should include strings in patches.
translation-update-upstream

%build
%configure --disable-static

%__make %{?_smp_flags}

%install
%makeinstall
%find_lang %{name}
find %{buildroot}%{_libdir} -name '*.la' -delete -print
install -D nm-novellvpn-settings.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/nm-novellvpn-settings.png

%post gnome
%icon_theme_cache_post

%postun gnome
%icon_theme_cache_postun

%files
%defattr(-,root,root,-)
%doc README
%dir %{_sysconfdir}/NetworkManager
%dir %{_sysconfdir}/NetworkManager/VPN
%config %{_sysconfdir}/NetworkManager/VPN/nm-novellvpn-service.name
%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 lang -f %{name}.lang

%files gnome
%defattr(-,root,root,-)
%{_libdir}/NetworkManager/libnm-novellvpn-properties.so*
%{_libexecdir}/nm-novellvpn-auth-dialog
%{_datadir}/applications/nm-novellvpn.desktop
%dir %{_datadir}/gnome-vpn-properties
%dir %{_datadir}/gnome-vpn-properties/novellvpn
%{_datadir}/gnome-vpn-properties/novellvpn/nm-novellvpn-dialog.ui
%{_datadir}/icons/hicolor/*/*/*.png

%changelog