File NetworkManager-openvpn.spec of Package NetworkManager-openvpn

#
# spec file for package NetworkManager-openvpn (Version 0.7.999_20100209)
#
# Copyright (c) 2009 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-openvpn
BuildRequires:  NetworkManager-devel NetworkManager-gnome intltool libglade2-devel libgnomeui-devel libgudev-1_0-devel perl-XML-Parser update-desktop-files
ExcludeArch:    s390 s390x
%define prefix		%{_prefix}
%define sysconfdir	%{_sysconfdir}
Summary:        NetworkManager VPN support for OpenVPN
Version:        0.7.999_20100209
Release:        1
License:        GPL v2 or later
Group:          Productivity/Networking/System
Url:            http://www.gnome.org/projects/NetworkManager
Source0:        %{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       openvpn %{name}-frontend
Requires:       NetworkManager >= 0.7.999

%description
NetworkManager-openvpn provides VPN support to NetworkManager for
OpenVPN.



Authors:
--------
    Tim Niemueller <tim@niemueller.de>

%package gnome
License:        GPL v2 or later
Summary:        NetworkManager VPN support for OpenVPN
Group:          Productivity/Networking/System
Provides:       %{name}-frontend
Requires:       %{name} = %{version}-%{release}
Requires:       NetworkManager-gnome >= 0.7.999

%description gnome
NetworkManager-openvpn provides VPN support to NetworkManager for
OpenVPN.



Authors:
--------
    Tim Niemueller <tim@niemueller.de>

%prep
%setup -n %{name}-0.7.999

%build
%configure\
	--disable-static
make %{?jobs:-j%jobs}

%install
%makeinstall
%find_lang %{name}
# No headers, no development files:
rm $RPM_BUILD_ROOT%{_libdir}/NetworkManager/*.la
# FIXME: There is no MIME type definition for application/x-openvpn-settings in /usr/share/mime/packages.
# Without it, MIME icon has no effect.

%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
%{_libexecdir}/nm-openvpn-service
%{_libexecdir}/nm-openvpn-service-openvpn-helper
%dir %{sysconfdir}/NetworkManager/VPN
%{sysconfdir}/NetworkManager/VPN/nm-openvpn-service.name
%{sysconfdir}/dbus-1/system.d/nm-openvpn-service.conf

%files gnome
%defattr(-,root,root,-)
%{_libdir}/NetworkManager/libnm-openvpn-properties.so*
%{_libexecdir}/nm-openvpn-auth-dialog
%{_datadir}/gnome-vpn-properties

%changelog
openSUSE Build Service is sponsored by