1db9c11
%define nm_version          1:0.7.0-0.11.svn4229
403aa93
%define dbus_version        1.1
2bdebca
%define gtk2_version        2.10.0
2a928a8
%define openvpn_version     2.1
2bdebca
%define shared_mime_version 0.16-3
2bdebca
1db9c11
%define svn_snapshot svn4229
2a928a8
2a928a8
Summary: NetworkManager VPN integration for OpenVPN
2a928a8
Name: NetworkManager-openvpn
2bdebca
Epoch:   1
2bdebca
Version: 0.7.0
8b5809d
Release: 16.%{svn_snapshot}%{?dist}
2bdebca
License: GPLv2+
2a928a8
URL: http://www.gnome.org/projects/NetworkManager/
2a928a8
Group: System Environment/Base
2a928a8
# How to build the source package:
8e90212
# - Check out NetworkManager from Gnome SVN, currently trunk is used
2a928a8
# - cd NetworkManager/vpn-daemons/openvpn
7cf8ba5
# - ./autogen.sh --prefix=/usr --sysconfdir=/etc
fa5d27e
# - make distcheck
fa5d27e
# - use generated NetworkManager-openvpn-0.7.0.tar.gz
f8b5582
Source: %{name}-%{version}.%{svn_snapshot}.tar.gz
8b5809d
2a928a8
BuildRoot: %{_tmppath}/%{name}-%{version}-root
2bdebca
BuildRequires: gtk2-devel                 >= %{gtk2_version}
2bdebca
BuildRequires: dbus-devel                 >= %{dbus_version}
b9c7089
BuildRequires: NetworkManager-devel       >= %{nm_version}
b9c7089
BuildRequires: NetworkManager-glib-devel  >= %{nm_version}
0d0882e
BuildRequires: glib2-devel
2a928a8
BuildRequires: GConf2-devel
2a928a8
BuildRequires: libgnomeui-devel
2a928a8
BuildRequires: gnome-keyring-devel
2a928a8
BuildRequires: libglade2-devel
2a928a8
BuildRequires: libpng-devel
55aad67
BuildRequires: perl-XML-Parser
0d0882e
BuildRequires: libtool intltool gettext
55aad67
BuildRequires: perl
0d0882e
BuildRequires: gnome-common
2a928a8
Requires(post): %{_bindir}/update-desktop-database
2a928a8
Requires(postun): %{_bindir}/update-desktop-database
2a928a8
Requires(post): /sbin/ldconfig
2a928a8
Requires(postun): /sbin/ldconfig
2a928a8
Requires: gtk2             >= %{gtk2_version}
2a928a8
Requires: dbus             >= %{dbus_version}
2a928a8
Requires: NetworkManager   >= %{nm_version}
2a928a8
Requires: openvpn          >= %{openvpn_version}
2a928a8
Requires: shared-mime-info >= %{shared_mime_version}
2a928a8
Requires: GConf2
2a928a8
Requires: gnome-keyring
2a928a8
2a928a8
%description
2a928a8
This package contains software for integrating the OpenVPN VPN software
2a928a8
with NetworkManager and the GNOME desktop.
2a928a8
2a928a8
%prep
0d0882e
%setup -q -n %{name}-%{version}
2a928a8
8b5809d
2a928a8
%build
2a928a8
if [ ! -f configure ]; then
2bdebca
  ./autogen.sh
2a928a8
fi
2a928a8
%configure --disable-static --disable-dependency-tracking
2a928a8
make %{?_smp_mflags}
2a928a8
2a928a8
%install
2a928a8
rm -rf %{buildroot}
8e90212
make install DESTDIR=%{buildroot} INSTALL="%{__install} -p"
2a928a8
a09d442
rm -f %{buildroot}%{_libdir}/NetworkManager/lib*.la
2a928a8
8b5809d
%find_lang %{name}
8b5809d
2a928a8
%clean
2a928a8
rm -rf %{buildroot}
2a928a8
2a928a8
%post
2a928a8
/sbin/ldconfig
2a928a8
/usr/bin/update-desktop-database > /dev/null
eacf6c0
touch --no-create %{_datadir}/icons/hicolor
2a928a8
if [ -x /usr/bin/gtk-update-icon-cache ]; then
eacf6c0
      /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
2a928a8
fi
2a928a8
2a928a8
%postun
2a928a8
/sbin/ldconfig
2a928a8
/usr/bin/update-desktop-database > /dev/null
eacf6c0
touch --no-create %{_datadir}/icons/hicolor
2a928a8
if [ -x /usr/bin/gtk-update-icon-cache ]; then
eacf6c0
      /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
2a928a8
fi
2a928a8
8b5809d
%files -f %{name}.lang
2a928a8
%defattr(-, root, root)
2a928a8
2bdebca
%doc AUTHORS ChangeLog README
a09d442
%{_libdir}/NetworkManager/lib*.so*
2a928a8
%{_libexecdir}/nm-openvpn-auth-dialog
f8b5582
%{_sysconfdir}/dbus-1/system.d/nm-openvpn-service.conf
f8b5582
%{_sysconfdir}/NetworkManager/VPN/nm-openvpn-service.name
a09d442
%{_libexecdir}/nm-openvpn-service
a09d442
%{_libexecdir}/nm-openvpn-service-openvpn-helper
2a928a8
%{_datadir}/gnome-vpn-properties/openvpn/nm-openvpn-dialog.glade
2a928a8
%{_datadir}/applications/nm-openvpn.desktop
2a928a8
%{_datadir}/icons/hicolor/48x48/apps/gnome-mime-application-x-openvpn-settings.png
2a928a8
2a928a8
%changelog
1db9c11
* Mon Oct 27 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-16.svn4229
1db9c11
- Rebuild for updated NetworkManager
1db9c11
f224d6d
* Sun Oct 12 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-16.svn4175
f224d6d
- Rebuild for updated NetworkManager
f224d6d
- Allow changing passwords from the connection editor
f224d6d
- Honor OpenVPN's 'route-vpn-gateway' option
f224d6d
8b5809d
* Tue Sep 30 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-16.svn4027
8b5809d
- Fix order of Password TLS certificate choosers (rh #464765)
8b5809d
- Use %find_lang for locale-specific files (rh #448551)
8b5809d
- Fix --script-security issues with OpenVPN 2.1-rc9 and later (rh #460754)
8b5809d
f8b5582
* Fri Aug 29 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-15.svn4027
f8b5582
- Rebuild for updated NetworkManager
f8b5582
a09d442
* Mon Aug 11 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-15.svn3930
a09d442
- Rebuild for updated NetworkManager
a09d442
843a574
* Thu Jul 24 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-15.svn3846
843a574
- Rebuild to sync with F9 release number
843a574
47de001
* Thu Jul 24 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-11.svn3846
47de001
- Fix TLS Authentication direction combo
47de001
- Only update settings if the advanced dialog's OK button is pressed
47de001
64713b0
* Fri Jul 18 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-11.svn3832
64713b0
- Update for NM netmask -> prefix changes
64713b0
fa5d27e
* Wed Jul 02 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-11.svn3801
fa5d27e
- Update for moving VPN editing into connection manager
fa5d27e
- Import OpenVPN configuration files rather than old custom format
fa5d27e
a671069
* Mon May 05 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-10.svn3632
a671069
- Fix issue with location of the VPN plugin
a671069
b9c7089
* Thu May 01 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-10.svn3627
b9c7089
- Update for compat with new NM bits
b9c7089
8c2b990
* Wed Apr 23 2008 Christoph Höger <choeger@cs.tu-berlin.de> 1:0.7.0-10.svn3549
8c2b990
- (Hopefully) Fix generation of nm-openvpn-service.name (#443389)
8c2b990
 
403aa93
* Wed Apr 09 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-9.svn3549
403aa93
- Update for compat with new NM bits
403aa93
eacf6c0
* Mon Mar 03 2008 Tim Niemueller <tim@niemueller.de> 1:0.7.0-9.svn3302
eacf6c0
- Mute %post and %postun scripts
eacf6c0
8e90212
* Fri Feb 08 2008 Tim Niemueller <tim@niemueller.de> 1:0.7.0-8.svn3302
8e90212
- Update to latest SVN snapshot
8e90212
- Fixes rhbz#429816 (port was not saved correctly)
8e90212
- Respects DNS search string from OpenVPN server
8e90212
8e90212
* Fri Jan 18 2008 Tim Niemueller <tim@niemueller.de> 1:0.7.0-7.svn3169
8e90212
- Use install -p during "make install" to fix #342701
e0de6f7
8e90212
* Thu Dec 13 2007 Tim Niemueller <tim@niemueller.de> 1:0.7.0-6.svn3169
0d0882e
- Update to latest SVN snapshot
0d0882e
0d0882e
* Thu Dec  6 2007 Dan Williams <dcbw@redhat.com> 1:0.7.0-5.svn3140
0d0882e
- Update to latest SVN snapshot to get stuff working
0d0882e
0d0882e
* Fri Nov 23 2007 Tim Niemueller <tim@niemueller.de> 1:0.7.0-4.svn3047
0d0882e
- BuildRequire libtool and glib2-devel since we call autogen.sh now
0d0882e
0d0882e
* Fri Nov 23 2007 Tim Niemueller <tim@niemueller.de> 1:0.7.0-3.svn3047
0d0882e
- Fixed #320941
0d0882e
- Call autogen, therefore BuildRequire gnome-common
0d0882e
- Use plain 3047 from repo and use a patch, we cannot use trunk at the
0d0882e
  moment since it is in flux and incompatible with NM available for F8
0d0882e
0d0882e
* Wed Oct 31 2007 Tim Niemueller <tim@niemueller.de> 1:0.7.0-2.svn3047.fc8
e0de6f7
- BuildRequire gettext
e0de6f7
2bdebca
* Tue Oct 30 2007 Tim Niemueller <tim@niemueller.de> 1:0.7.0-1.svn3047.fc8
2bdebca
- Upgrade to trunk, needed to be compatible with NM 0.7.0, rebuild for F-8
2bdebca
aa50450
* Fri Sep 15 2006 Tim Niemueller <tim@niemueller.de> 0.3.2-7
1588a60
- Rebuild for FC6
1588a60
55aad67
* Sat Aug 19 2006 Tim Niemueller <tim@niemueller.de> 0.3.2-5
55aad67
- Added perl-XML-Parser as a build requirement, needed for intltool
55aad67
2a928a8
* Tue Aug 15 2006 Tim Niemueller <tim@niemueller.de> 0.3.2-4
2a928a8
- Added instructions how to build the source package
2a928a8
- removed a rm line
2a928a8
2a928a8
* Wed Aug 09 2006 Tim Niemueller <tim@niemueller.de> 0.3.2-3
2a928a8
- Added URL
2a928a8
2a928a8
* Fri Aug 04 2006 Tim Niemueller <tim@niemueller.de> 0.3.2-2
2a928a8
- Upgrade to current upstream version (0.3.2 on 0.6 branch)
2a928a8
2a928a8
* Mon Jul 10 2006 Tim Niemueller <tim@niemueller.de> 0.3.2-1
2a928a8
- Upgraded to 0.3.2 for 0.6 branch
2a928a8
2a928a8
* Tue Dec 06 2005 Tim Niemueller <tim@niemueller.de> 0.3-1
2a928a8
- Initial revision based on NetworkManager-vpnc spec
2a928a8