File NetworkManager-vpnc.spec of Package NetworkManager-vpnc

#
# spec file for package NetworkManager-vpnc (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-vpnc
BuildRequires:  NetworkManager-devel NetworkManager-gnome gconf2-devel gnome-keyring-devel intltool libglade2-devel libgnomeui-devel perl-XML-Parser update-desktop-files
# expansion error: have choice for esound-daemon >= 0.2.38 needed by libesd0: esound-daemon pulseaudio-esound-compat
BuildRequires:  pulseaudio-esound-compat
ExcludeArch:    s390 s390x
Summary:        NetworkManager VPN Support for vpnc
Version:        0.7.0.r4274
Release:        1
License:        GPL v2 or later
Group:          Productivity/Networking/System
Url:            http://people.redhat.com/dcbw/NetworkManager/
Source0:        %{name}-%{version}.tar.bz2
Source1:        NetworkManager-vpnc-nm-vpnc.png
Patch0:         nm-vpnc-desktop.patch
Patch1:         nm-vpnc-properties.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       vpnc %{name}-frontend
Requires:       NetworkManager >= 0.7.0.r4274
Requires:       gnome-keyring

%description
NetworkManager-vpnc provides VPN support to NetworkManager for vpnc.



Authors:
--------
    Dan Williams <dcbw@redhat.com>
    David Zeuthen <davidz@redhat.com>

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

%description gnome
NetworkManager-vpnc provides VPN support to NetworkManager for vpnc.



Authors:
--------
    Dan Williams <dcbw@redhat.com>
    David Zeuthen <davidz@redhat.com>

%prep
%setup -q -n %{name}-0.7.0
%patch0
%patch1 -p1
cp -a %{S:1} nm-vpnc-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 %{_datadir}/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-cisco-vpn-settings.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/mimetypes/
cp nm-vpnc-settings.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/
%suse_update_desktop_file nm-vpnc 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,0755)
%doc README
# FIXME: Owned also by NetworkManager-openvpn. Probably move to NetworkManager:
%dir %{_sysconfdir}/NetworkManager/VPN
%config %{_sysconfdir}/NetworkManager/VPN/nm-vpnc-service.name
%config %{_sysconfdir}/dbus-1/system.d/nm-vpnc-service.conf
%{_libexecdir}/nm-vpnc-service
%{_libexecdir}/nm-vpnc-service-vpnc-helper

%files gnome
%defattr(-,root,root,0755)
%{_datadir}/applications/nm-vpnc.desktop
# FIXME: Owned also by NetworkManager-openvpn. Probably move to NetworkManager-gnome:
%{_datadir}/gnome-vpn-properties
%{_datadir}/icons/hicolor/*/*/*.png
%{_libdir}/NetworkManager/libnm-vpnc-properties.so*
%{_libexecdir}/nm-vpnc-auth-dialog

%changelog
* Mon Nov 03 2008 tambet@suse.de
- Use the accessors provided by NM instead of poking the private
  structures directly for settings. (a.k.a make it built with the
  latest NetworkManager again.)
* Tue Oct 28 2008 bili@suse.de
- Fixing couldn't find auth-dialog cause wrong path(#429667).
* Sat Oct 25 2008 bili@suse.de
- Bring up to date with SVN.
* Fri Sep 12 2008 tambet@suse.de
- Bring up to date with SVN.
- Require more specifc version of NetworkManager.
- Update patches so that they apply again.
* Fri Aug 08 2008 bili@suse.de
- Upgrade to 0.7.0.r3783 for fixing building error.
* Sat Aug 02 2008 tambet@suse.de
- Bring up to date with SVN again.
* Fri May 16 2008 bili@suse.de
- Upgrade to 0.7.0.r3647(bnc#372141).
* Fri Jan 18 2008 tambet@suse.de
- Upgrade to 0.7.0.
* 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.
- Fixed libexecdir.
* 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-vpnc-gnome package to avoid
  gnome dependencies when using knetworkmanager instead of
  nm-applet (Novell #198529).
* Thu Nov 02 2006 tambet@suse.de
- Fetch updates from CVS:
	- Add rekeying improvements.
	- Build fixes.
	- Unable to import pcf profile (Cisco VPN) (Novell #213699).
	- Crash when trying to login to Cisco VPN (Novell #214950).
* 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 existing translations (#179731)
* Mon Jun 05 2006 rml@suse.de
- Update translations (Novell bug #169096)
- Break translations out of nm-vpnc-0.6-branch.patch, place in
  separate nm-vpnc-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 10 2006 rml@suse.de
- Report error if configuration export fails (Novell bug #164980)
* Wed Mar 29 2006 rml@suse.de
- Send MSS parameter to NetworkManager (see 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.5.0cvs20060202
- Several cosmetic fixes
- Update 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.5.0cvs20051212
- Add Tango icon
* Wed Dec 07 2005 rml@suse.de
- Update to 0.5.0cvs20051207
* Fri Dec 02 2005 rml@suse.de
- Update to 0.5.0cvs20051201.
* Mon Nov 14 2005 rml@suse.de
- Update to CVS snapshot 20051114
* Fri Nov 04 2005 rml@suse.de
- Update to CVS snapshot 20051104 (fixes bug #121884)
* Wed Nov 02 2005 rml@suse.de
- Update to CVS snapshot 20051102
* Wed Oct 19 2005 rml@suse.de
- Version 0.5.0
- Update to CVS snapshot 20051019
* Thu Oct 06 2005 rml@suse.de
- Update to CVS snapshot 20051004.
* Tue Sep 06 2005 rml@suse.de
- Fix crasher bug #114803
* Tue Jul 26 2005 gekker@suse.de
- Initial import into autobuild version 0.2cvs20050722
openSUSE Build Service is sponsored by