File NetworkManager-openvpn.spec of Package NetworkManager-openvpn

#
# spec file for package NetworkManager-openvpn (Version 0.7.0.r4274)
#
# Copyright (c) 2008 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 perl-XML-Parser update-desktop-files
ExcludeArch:    s390 s390x
%define prefix		%{_prefix}
%define sysconfdir	%{_sysconfdir}
Summary:        NetworkManager VPN support for OpenVPN
Version:        0.7.0.r4274
Release:        1
License:        GPL v2 or later
Group:          Productivity/Networking/System
Url:            http://www.gnome.org/projects/NetworkManager
Source0:        %{name}-%{version}.tar.bz2
Source1:        NetworkManager-openvpn-openvpn-settings.png
Patch0:         nm-openvpn-desktop.patch
Patch1:         nm-openvpn-properties.patch
Patch2:         nm-openvpn-remove-script-security.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       openvpn %{name}-frontend
Requires:       NetworkManager >= 0.7.0.r4274

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

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



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

%prep
%setup -q -n %{name}-0.7.0
%patch0 -p1
%patch1 -p1
%patch2 -p1
cp -a %{S:1} nm-openvpn-settings.png

%build
intltoolize --copy --force
autoreconf -f -i
%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.
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/mimetypes
mv $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/gnome-mime-application-x-openvpn-settings.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/mimetypes/
cp nm-openvpn-settings.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/
%suse_update_desktop_file nm-openvpn 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
%{_libdir}/nm-openvpn-service
%{_libdir}/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*
%{_libdir}/nm-openvpn-auth-dialog
%{_datadir}/applications/nm-openvpn.desktop
%{_datadir}/gnome-vpn-properties
%{_datadir}/icons/hicolor/*/*/*.png

%changelog
* Fri Nov 07 2008 bili@suse.de
- Search for certificates from the directory where the
  configuration file is from (bnc #437963).
* Fri Oct 24 2008 tambet@suse.de
- The "Certificates (TLS)" tab should also be present for
  NM_OPENVPN_CONTYPE_PASSWORD.
- Accept ".cer" extension for certificates.
- Handle route_vpn_gateway (bgo #549196).
* Fri Oct 10 2008 tambet@suse.de
- Fix the User and CA certificate entries in Password TLS mode,
  they were swapped with their labels (rh #464765).
* Fri Sep 26 2008 tambet@suse.de
- Fix crashes when creating and deleting connections.
- Add password widgets (bnc #395564).
* Fri Sep 19 2008 tambet@suse.de
- Fix openvpn activations. Upstream uses newer openvpn and
  generates command line not suitable for our openvpn.
* Fri Sep 12 2008 tambet@suse.de
- Bring up to date with SVN.
- Require more specifc version of NetworkManager.
* Sat Aug 02 2008 tambet@suse.de
- Bring up to date with SVN again.
* Wed Jul 16 2008 bili@suse.de
- Upgrade to 0.7.0.r3820 from upstream for build failed.
* Fri May 16 2008 bili@suse.de
- Upgrade to 0.7.0.r3647(bnc#389155).
* Thu Jan 17 2008 tambet@suse.de
- Upgrade to 0.7.0.
* Tue Dec 04 2007 bili@suse.de
- Add the scroll window in properties dialog (Novell #183004).
* Wed Aug 08 2007 tambet@suse.de
- Package the .so file again (Novell #298430).
* Tue Jun 05 2007 sbrabec@suse.cz
- Removed bogus definition of datadir.
- Fixed invalid desktop file patch.
- Fixed mixing of MIME and application icons.
- Call ldconfig.
* Tue May 15 2007 pgajdos@suse.cz
- removed gnome-icon-theme from BuildRequires [#247450]
* Mon Mar 19 2007 hschaa@suse.de
- Replace all occurrences of "/opt/gnome" with "%%{prefix}"
* Mon Feb 12 2007 hschaa@suse.de
- Branch off the NetworkManager-openvpn-gnome package to avoid
  gnome dependencies when using knetworkmanager instead of
  nm-applet (Novell #198529).
* Tue Sep 05 2006 aj@suse.de
- Cleanup BuildRequires.
* Wed Aug 02 2006 danw@suse.de
- intltoolize before autoreconf'ing to avoid version skew between
  configure macros and po/Makefile.in.in
* Fri Jun 16 2006 rml@suse.de
- Update translations (Novell bug #169096)
* Thu Jun 15 2006 gekker@suse.de
- Update package to install all available translations (#179731)
* Mon Jun 05 2006 rml@suse.de
- Update translations (Novell bug #169096)
- Break translations out of nm-openvpn-0.6-branch.patch, place in
  separate nm-openvpn-po-update.patch
- Properties dialog: Glade file update (GNOME bug #336913)
* Thu May 18 2006 rml@suse.de
- Update translations (Novell bug #158997)
* Mon Apr 17 2006 rml@suse.de
- Property dialog: Mark the entries as non-editable, since they are
  in fact not user-editable (Novell bug #164989)
* Mon Apr 10 2006 rml@suse.de
- Report error if configuration exportation fails (Novell #164980)
* Wed Mar 29 2006 rml@suse.de
- Send per-route MSS information to NetworkManager (bug #157988)
* Mon Mar 20 2006 rml@suse.de
- Require NetworkManager-gnome (Novell bug #158691)
* Thu Feb 02 2006 rml@suse.de
- Update to 0.3.2cvs20060202
- Update NM API
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Jan 19 2006 rml@suse.de
- Update to 20060119
* Thu Jan 12 2006 rml@suse.de
- Update to 20060112
* Wed Jan 04 2006 rml@suse.de
- Update to 20060104
* Mon Dec 12 2005 rml@suse.de
- Update to 0.3.2cvs20051212
- Add Tango icons
* Wed Dec 07 2005 rml@suse.de
- Update to 0.3.1cvs20051207
* Thu Dec 01 2005 rml@suse.de
- Update to 0.2.0cvs20051201
* Mon Nov 14 2005 rml@suse.de
- Initial checkin, version 0.1.0cvs20051114
openSUSE Build Service is sponsored by