%define nm_version 0.6.2
%define dbus_version 0.60
%define gtk2_version 2.6.0
%define vpnc_version 0.3.3-3
%define shared_mime_version 0.16-3
Summary: NetworkManager VPN integration for vpnc
Name: NetworkManager-vpnc
Version: 0.6.2
Release: 1%{?dist}
License: GPL
Group: System Environment/Base
Source: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: gtk2-devel >= %{gtk2_version}
BuildRequires: dbus-devel >= %{dbus_version}
BuildRequires: NetworkManager-devel >= %{nm_version}
BuildRequires: GConf2-devel
BuildRequires: libgnomeui-devel
BuildRequires: gnome-keyring-devel
BuildRequires: libglade2-devel
BuildRequires: libpng-devel
PreReq: /usr/bin/update-desktop-database
PreReq: /usr/bin/gtk-update-icon-cache
Requires: gtk2 >= %{gtk2_version}
Requires: dbus >= %{dbus_version}
Requires: NetworkManager >= %{nm_version}
Requires: vpnc >= %{vpnc_version}
Requires: shared-mime-info >= %{shared_mime_version}
Requires: GConf2
Requires: libgnomeui
Requires: gnome-keyring
Requires: libglade2
Patch1: nm-vpnc-0.6.0-rekeying.patch
%description
This package contains software for integrating the vpnc VPN software
with NetworkManager and the GNOME desktop
%prep
%setup -q
%patch1 -p1 -b .rekeying
%build
%configure
make
%install
%makeinstall
rm -f %{buildroot}%{_libdir}/lib*.la
rm -f %{buildroot}%{_libdir}/lib*.a
%find_lang %{name}
%clean
rm -rf %{buildroot}
%post
/sbin/ldconfig
/usr/bin/update-desktop-database > /dev/null
if [ -x /usr/bin/gtk-update-icon-cache ]; then
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor
fi
%postun
/sbin/ldconfig
/usr/bin/update-desktop-database > /dev/null
if [ -x /usr/bin/gtk-update-icon-cache ]; then
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor
fi
%files -f %{name}.lang
%defattr(-, root, root)
%doc AUTHORS ChangeLog NEWS README
%{_libdir}/lib*.so*
%{_libexecdir}/nm-vpnc-auth-dialog
%{_sysconfdir}/dbus-1/system.d/nm-vpnc-service.conf
%{_sysconfdir}/NetworkManager/VPN/nm-vpnc-service.name
%{_bindir}/nm-vpnc-service
%{_bindir}/nm-vpnc-service-vpnc-helper
%{_datadir}/gnome-vpn-properties/vpnc/nm-vpnc-dialog.glade
%{_datadir}/applications/nm-vpnc.desktop
%{_datadir}/icons/hicolor/48x48/apps/gnome-mime-application-x-cisco-vpn-settings.png
%changelog
* Mon May 15 2006 Dan Williams <dcbw@redhat.com> 0.6.2-1
- New release for NM 0.6.2 compat
* Fri Apr 21 2006 Dan Williams <dcbw@redhat.com> 0.6.0-3
- Add dist tag to RPM release
* Wed Apr 12 2006 Christopher Aillon <caillon@redhat.com> 0.6.0-2
- Rekey every 2 hours
* Tue Mar 14 2006 Dan Williams <dcbw@redhat.com> - 0.6.0-1
- Update to CVS snapshot of 0.6 for NM compatibility
* Fri Jan 27 2006 Dan Williams <dcbw@redhat.com> - 0.5.0-1
- CVS snapshot for compatibility new NetworkManager
* Tue Dec 6 2005 Jeremy Katz <katzj@redhat.com> - 0.3-3
- rebuild for new dbus
* Mon Oct 17 2005 Dan Williams <dcbw@redhat.com> 0.3-2
- Rebuild to test new Extras buildsystem
* Thu Aug 18 2005 David Zeuthen <davidz@redhat.com> 0.3-1
- New upstream release
- Bump some versions for deps
* Fri Jul 1 2005 David Zeuthen <davidz@redhat.com> 0.2-2
- Add missing changelog entry for last commit
- Temporarily BuildReq libpng-devel as it is not pulled in by gtk2-devel
(should be fixed in Core shortly)
- Pull in latest D-BUS (which features automatic reloading of policy files)
so users do not have to restart the messagebus after installing this package
* Thu Jun 30 2005 David Zeuthen <davidz@redhat.com> 0.2-1
- New upsteam version
- Add the new gnome-mime-application-x-cisco-vpn-settings.png icon and call
gtk-update-icon-cache as appropriate
* Fri Jun 17 2005 David Zeuthen <davidz@redhat.com> 0.1-2.cvs20050617
- Add Prereq: /usr/bin/update-desktop-database
- Nuke .la and .a files
- Use find_lang macro to handle locale files properly
- Add Requires for suitable version of shared-mime-info since our desktop
file depends on the application/x-cisco-vpn-settings MIME-type
* Fri Jun 17 2005 David Zeuthen <davidz@redhat.com> 0.1-1.cvs20050617
- Latest CVS snapshot
* Thu Jun 16 2005 David Zeuthen <davidz@redhat.com> 0.1-1
- Initial build