e48e96c
%define nm_version          1:0.8.998
403aa93
%define dbus_version        1.1
e48e96c
%define gtk2_version        3.0.1
2a928a8
%define openvpn_version     2.1
2bdebca
%define shared_mime_version 0.16-3
2bdebca
d1cf96d
%define snapshot %{nil}
e48e96c
%define realversion 0.8.999
2a928a8
121203e
Summary: NetworkManager VPN plugin for OpenVPN
2a928a8
Name: NetworkManager-openvpn
2bdebca
Epoch:   1
e48e96c
Version: 0.8.999
e48e96c
Release: 1%{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:
cfc26cf
# - Check out network-manager-openvpn
7cf8ba5
# - ./autogen.sh --prefix=/usr --sysconfdir=/etc
fa5d27e
# - make distcheck
cfc26cf
# - use generated NetworkManager-openvpn-0.8.tar.bz2
6d79992
Source: %{name}-%{realversion}%{snapshot}.tar.bz2
8b5809d
2a928a8
BuildRoot: %{_tmppath}/%{name}-%{version}-root
e48e96c
BuildRequires: gtk3-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: gnome-keyring-devel
0d0882e
BuildRequires: libtool intltool gettext
2a928a8
Requires(post): %{_bindir}/update-desktop-database
2a928a8
Requires(postun): %{_bindir}/update-desktop-database
2a928a8
Requires(post): /sbin/ldconfig
2a928a8
Requires(postun): /sbin/ldconfig
e48e96c
Requires: gtk3             >= %{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: 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
6d79992
%setup -q -n %{name}-%{realversion}
8b5809d
2a928a8
%build
2a928a8
if [ ! -f configure ]; then
2bdebca
  ./autogen.sh
2a928a8
fi
e48e96c
%configure --disable-static --disable-dependency-tracking --enable-more-warnings=yes --with-gtkver=3
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
e48e96c
%{_datadir}/gnome-vpn-properties/openvpn/nm-openvpn-dialog.ui
c938675
#%{_datadir}/applications/nm-openvpn.desktop
c938675
#%{_datadir}/icons/hicolor/48x48/apps/gnome-mime-application-x-openvpn-settings.png
927641c
%dir %{_datadir}/gnome-vpn-properties/openvpn
2a928a8
2a928a8
%changelog
e48e96c
* Tue May 03 2011 Dan Williams <dcbw@redhat.com> - 1:0.8.999-1
e48e96c
- Update to 0.8.999 (0.9-rc2)
e48e96c
- ui: default to user-stored secrets for new connections
e48e96c
- ui: updated translations
e48e96c
- ui: fix HTTP proxy authentication autodetection during import
e48e96c
e48e96c
* Tue Apr 05 2011 Dan Williams <dcbw@redhat.com> - 1:0.8.998-1.git20110405
e48e96c
- Update to 0.8.998 (0.9.0-rc1)
e48e96c
- Fix importing of configs with TLS Auth direction
e48e96c
- Fix handling of user-session-owned secrets
e48e96c
- Export HTTP Proxy auth file when appropriate
e48e96c
e48e96c
* Thu Mar 24 2011 Dan Williams <dcbw@redhat.com> - 1:0.8.995-1
e48e96c
- Update to 0.8.995 (0.9-beta1)
e48e96c
f5798e9
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.8.1-2
f5798e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f5798e9
d1cf96d
* Tue Jul 27 2010 Dan Williams <dcbw@redhat.com> - 1:0.8.1-1
d1cf96d
- Update to 0.8.1 release
d1cf96d
- Updated translations
d1cf96d
- Fix crash when checking whether some private keys are encrypted
d1cf96d
6d79992
* Wed Jun  9 2010 Dan Williams <dcbw@redhat.com> - 1:0.8.1-0.1.git20100609
6d79992
- Add support for PKCS#8 private keys
6d79992
- Add support for unencrypted private keys (rh #497454)
6d79992
cfc26cf
* Sun Apr 11 2010 Dan Williams <dcbw@redhat.com> - 1:0.8-2
cfc26cf
- Add support for more HMAC authentication algorithms
cfc26cf
- Fix requests for private key passwords for certificates (rh #549961)
cfc26cf
c938675
* Tue Mar 2 2010 Huzaifa Sidhpurwala <huzaifas@redhat.com> - 1:0.8-1
cfc26cf
- Fix handling of remote peer address for shared-key connections (rh #564068)
cfc26cf
- Add support for the "TLS Remote", tun-mtu, fragment, and mss-fix options
cfc26cf
- Various import/export fixes (tls-auth, port/rport)
cfc26cf
- Add support for PKCS#12 encoded certificates and private keys
c938675
- Update to 0.8
c938675
59b2aab
* Mon Dec 14 2009 Dan Williams <dcbw@redhat.com> - 1:0.7.997-1
59b2aab
- Implement export capability
59b2aab
- Fix some import bugs
59b2aab
- Correctly handle PEM certificates without an ending newline (rh #507315)
59b2aab
4c6c504
* Mon Oct  5 2009 Dan Williams <dcbw@redhat.com> - 1:0.7.996-4.git20090923
4c6c504
- Rebuild for updated NetworkManager
4c6c504
f9196e7
* Wed Sep 23 2009 Dan Williams <dcbw@redhat.com> - 1:0.7.996-3.git20090923
f9196e7
- Add GUI option for reneg-sec config option (rh #490971)
f9196e7
a95884a
* Mon Sep 21 2009 Dan Williams <dcbw@redhat.com> - 1:0.7.996-2
a95884a
- Rebuild for updated NetworkManager
a95884a
174fe47
* Fri Aug 28 2009 Dan Williams <dcbw@redhat.com> - 1:0.7.996-1
174fe47
- Rebuild for updated NetworkManager
174fe47
80b5edc
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.7.1-2.git20090714
80b5edc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
80b5edc
316bdea
* Tue Jul 14 2009 Dan Williams <dcbw@redhat.com> - 1:0.7.1-1.20090714
316bdea
- Fix a misconfiguration with 'subnet' topology
316bdea
- Fix detection of password requests by the OpenVPN management interface
316bdea
8a90f57
* Mon Jul 13 2009 Dan Williams <dcbw@redhat.com> - 1:0.7.1-1.20090713
8a90f57
- Update to 0.7.1
8a90f57
- Translation updates
8a90f57
42de4bd
* Thu Mar  5 2009 Dan Williams <dcbw@redhat.com> 1:0.7.0.99-1
42de4bd
- Update to 0.7.1rc3
42de4bd
d4ebab6
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.7.0.97-2
d4ebab6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
d4ebab6
7c1af51
* Thu Feb 19 2009 Dan Williams <dcbw@redhat.com> 1:0.7.0.97-1
7c1af51
- Update to 0.7.1rc1
7c1af51
- Handle HMAC Authentication (--auth)
7c1af51
- Handle TAP device subnet masks correctly
7c1af51
- Don't segfault if the connection type is invalid
7c1af51
927641c
* Sat Jan  3 2009 Dan Williams <dcbw@redhat.com> 1:0.7.0-18.svn11
927641c
- Rebuild for updated NetworkManager
927641c
- Fix some specfile issues (rh #477149)
927641c
927641c
* Sat Dec 20 2008 Christoph Höger <choeger@cs.tu-berlin.de> 0.7.0-17.svn4326
927641c
- removed libpng-devel from BuildRequires, added %{_datadir}/gnome-vpn-properties/openvpn/ (rh #477149)
927641c
121203e
* Fri Nov 21 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-16.svn4326
121203e
- Rebuild for updated NetworkManager
121203e
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