63028c8
%define nm_version          1:0.7.0-1
63028c8
%define dbus_version        1.1
63028c8
%define gtk2_version        2.10.0
2a928a8
%define openvpn_version     2.1
63028c8
%define shared_mime_version 0.16-3
2a928a8
63028c8
%define svn_snapshot svn11
63028c8
63028c8
Summary: NetworkManager VPN plugin for OpenVPN
2a928a8
Name: NetworkManager-openvpn
63028c8
Epoch:   1
63028c8
Version: 0.7.0
47aadd3
Release: 18.%{svn_snapshot}%{?dist}.2
63028c8
License: GPLv2+
2a928a8
URL: http://www.gnome.org/projects/NetworkManager/
2a928a8
Group: System Environment/Base
2a928a8
# How to build the source package:
63028c8
# - Check out NetworkManager from Gnome SVN, currently trunk is used
2a928a8
# - cd NetworkManager/vpn-daemons/openvpn
63028c8
# - ./autogen.sh --prefix=/usr --sysconfdir=/etc
63028c8
# - make distcheck
63028c8
# - use generated NetworkManager-openvpn-0.7.0.tar.gz
63028c8
Source: %{name}-%{version}.%{svn_snapshot}.tar.gz
63028c8
Patch0: NetworkManager-openvpn-0.7.0-keyring.patch
abadc77
Patch1: NetworkManager-openvpn-0.7.0-route.patch
abadc77
Patch2: NetworkManager-openvpn-0.7.0-cipher.patch
63028c8
2a928a8
BuildRoot: %{_tmppath}/%{name}-%{version}-root
63028c8
BuildRequires: gtk2-devel                 >= %{gtk2_version}
63028c8
BuildRequires: dbus-devel                 >= %{dbus_version}
63028c8
BuildRequires: NetworkManager-devel       >= %{nm_version}
63028c8
BuildRequires: NetworkManager-glib-devel  >= %{nm_version}
63028c8
BuildRequires: glib2-devel
2a928a8
BuildRequires: GConf2-devel
2a928a8
BuildRequires: gnome-keyring-devel
2a928a8
BuildRequires: libglade2-devel
55aad67
BuildRequires: perl-XML-Parser
63028c8
BuildRequires: libtool intltool gettext
55aad67
BuildRequires: perl
63028c8
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
63028c8
%setup -q -n %{name}-%{version}
63028c8
%patch0 -p1 -b .keyring
abadc77
%patch1 -p1 -b .route
abadc77
%patch2 -p1 -b .cipher
2a928a8
2a928a8
%build
2a928a8
if [ ! -f configure ]; then
63028c8
  ./autogen.sh
2a928a8
fi
63028c8
%configure --disable-static --disable-dependency-tracking --enable-more-warnings=yes
2a928a8
make %{?_smp_mflags}
2a928a8
2a928a8
%install
2a928a8
rm -rf %{buildroot}
63028c8
make install DESTDIR=%{buildroot} INSTALL="%{__install} -p"
63028c8
63028c8
rm -f %{buildroot}%{_libdir}/NetworkManager/lib*.la
2a928a8
63028c8
%find_lang %{name}
2a928a8
2a928a8
%clean
2a928a8
rm -rf %{buildroot}
2a928a8
2a928a8
%post
2a928a8
/sbin/ldconfig
2a928a8
/usr/bin/update-desktop-database > /dev/null
63028c8
touch --no-create %{_datadir}/icons/hicolor
2a928a8
if [ -x /usr/bin/gtk-update-icon-cache ]; then
63028c8
      /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
63028c8
touch --no-create %{_datadir}/icons/hicolor
2a928a8
if [ -x /usr/bin/gtk-update-icon-cache ]; then
63028c8
      /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
2a928a8
fi
2a928a8
63028c8
%files -f %{name}.lang
2a928a8
%defattr(-, root, root)
2a928a8
63028c8
%doc AUTHORS ChangeLog README
63028c8
%{_libdir}/NetworkManager/lib*.so*
2a928a8
%{_libexecdir}/nm-openvpn-auth-dialog
63028c8
%{_sysconfdir}/dbus-1/system.d/nm-openvpn-service.conf
63028c8
%{_sysconfdir}/NetworkManager/VPN/nm-openvpn-service.name
63028c8
%{_libexecdir}/nm-openvpn-service
63028c8
%{_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
63028c8
%dir %{_datadir}/gnome-vpn-properties/openvpn
2a928a8
2a928a8
%changelog
abadc77
* Mon Oct 12 2009 Huzaifa Sidhpurwala <huzaifas@redhat.com> 1:0.7.0-18.svn11.2
abadc77
- Fix Routing issues with EL-5 build (rh #525646)
abadc77
- Fix issue where cipher type is not stored in gconf
abadc77
63028c8
* Sat Feb  7 2009 Lubomir Rintel <lkundrak@v3.sk> 1:0.7.0-18.svn11.1
63028c8
- Adjust for RHEL 5.3, older and less capable keyring manager
63028c8
63028c8
* Sat Jan  3 2009 Dan Williams <dcbw@redhat.com> 1:0.7.0-18.svn11
63028c8
- Rebuild for updated NetworkManager
63028c8
- Fix some specfile issues (rh #477149)
63028c8
63028c8
* Sat Dec 20 2008 Christoph Höger <choeger@cs.tu-berlin.de> 0.7.0-17.svn4326
63028c8
- removed libpng-devel from BuildRequires, added %{_datadir}/gnome-vpn-properties/openvpn/ (rh #477149)
63028c8
63028c8
* Fri Nov 21 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-16.svn4326
63028c8
- Rebuild for updated NetworkManager
63028c8
63028c8
* Mon Oct 27 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-16.svn4229
63028c8
- Rebuild for updated NetworkManager
63028c8
63028c8
* Sun Oct 12 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-16.svn4175
63028c8
- Rebuild for updated NetworkManager
63028c8
- Allow changing passwords from the connection editor
63028c8
- Honor OpenVPN's 'route-vpn-gateway' option
63028c8
63028c8
* Tue Sep 30 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-16.svn4027
63028c8
- Fix order of Password TLS certificate choosers (rh #464765)
63028c8
- Use %find_lang for locale-specific files (rh #448551)
63028c8
- Fix --script-security issues with OpenVPN 2.1-rc9 and later (rh #460754)
63028c8
63028c8
* Fri Aug 29 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-15.svn4027
63028c8
- Rebuild for updated NetworkManager
63028c8
63028c8
* Mon Aug 11 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-15.svn3930
63028c8
- Rebuild for updated NetworkManager
63028c8
63028c8
* Thu Jul 24 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-15.svn3846
63028c8
- Rebuild to sync with F9 release number
63028c8
63028c8
* Thu Jul 24 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-11.svn3846
63028c8
- Fix TLS Authentication direction combo
63028c8
- Only update settings if the advanced dialog's OK button is pressed
63028c8
63028c8
* Fri Jul 18 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-11.svn3832
63028c8
- Update for NM netmask -> prefix changes
63028c8
63028c8
* Wed Jul 02 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-11.svn3801
63028c8
- Update for moving VPN editing into connection manager
63028c8
- Import OpenVPN configuration files rather than old custom format
63028c8
63028c8
* Mon May 05 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-10.svn3632
63028c8
- Fix issue with location of the VPN plugin
63028c8
63028c8
* Thu May 01 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-10.svn3627
63028c8
- Update for compat with new NM bits
63028c8
63028c8
* Wed Apr 23 2008 Christoph Höger <choeger@cs.tu-berlin.de> 1:0.7.0-10.svn3549
63028c8
- (Hopefully) Fix generation of nm-openvpn-service.name (#443389)
63028c8
 
63028c8
* Wed Apr 09 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-9.svn3549
63028c8
- Update for compat with new NM bits
63028c8
63028c8
* Mon Mar 03 2008 Tim Niemueller <tim@niemueller.de> 1:0.7.0-9.svn3302
63028c8
- Mute %post and %postun scripts
63028c8
63028c8
* Fri Feb 08 2008 Tim Niemueller <tim@niemueller.de> 1:0.7.0-8.svn3302
63028c8
- Update to latest SVN snapshot
63028c8
- Fixes rhbz#429816 (port was not saved correctly)
63028c8
- Respects DNS search string from OpenVPN server
63028c8
63028c8
* Fri Jan 18 2008 Tim Niemueller <tim@niemueller.de> 1:0.7.0-7.svn3169
63028c8
- Use install -p during "make install" to fix #342701
63028c8
63028c8
* Thu Dec 13 2007 Tim Niemueller <tim@niemueller.de> 1:0.7.0-6.svn3169
63028c8
- Update to latest SVN snapshot
63028c8
63028c8
* Thu Dec  6 2007 Dan Williams <dcbw@redhat.com> 1:0.7.0-5.svn3140
63028c8
- Update to latest SVN snapshot to get stuff working
63028c8
63028c8
* Fri Nov 23 2007 Tim Niemueller <tim@niemueller.de> 1:0.7.0-4.svn3047
63028c8
- BuildRequire libtool and glib2-devel since we call autogen.sh now
63028c8
63028c8
* Fri Nov 23 2007 Tim Niemueller <tim@niemueller.de> 1:0.7.0-3.svn3047
63028c8
- Fixed #320941
63028c8
- Call autogen, therefore BuildRequire gnome-common
63028c8
- Use plain 3047 from repo and use a patch, we cannot use trunk at the
63028c8
  moment since it is in flux and incompatible with NM available for F8
63028c8
63028c8
* Wed Oct 31 2007 Tim Niemueller <tim@niemueller.de> 1:0.7.0-2.svn3047.fc8
63028c8
- BuildRequire gettext
63028c8
63028c8
* Tue Oct 30 2007 Tim Niemueller <tim@niemueller.de> 1:0.7.0-1.svn3047.fc8
63028c8
- Upgrade to trunk, needed to be compatible with NM 0.7.0, rebuild for F-8
13e1c60
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