NetworkManager-openvpn-vl.spec 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. %define nm_version 0.8-1
  2. %define dbus_version 1.1
  3. %define gtk2_version 2.14.0
  4. %define openvpn_version 2.1
  5. %define shared_mime_version 0.16-3
  6. %define svn_snapshot %{nil}
  7. Summary: NetworkManager VPN plugin for OpenVPN
  8. Summary(ja): OpenVPN を使った NetworkManager 用 VPN プラグイン
  9. Name: NetworkManager-openvpn
  10. Version: 0.8
  11. Release: 1%{?svn_snapshot}%{?_dist_release}
  12. License: GPLv2+
  13. URL: http://www.gnome.org/projects/NetworkManager/
  14. Group: System Environment/Base
  15. # How to build the source package:
  16. # - Check out NetworkManager from Gnome SVN, currently trunk is used
  17. # - cd NetworkManager/vpn-daemons/openvpn
  18. # - ./autogen.sh --prefix=/usr --sysconfdir=/etc
  19. # - make distcheck
  20. # - use generated NetworkManager-openvpn-0.7.0.tar.gz
  21. Source: %{name}-%{version}%{?svn_snapshot}.tar.bz2
  22. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  23. BuildRequires: gtk2-devel >= %{gtk2_version}
  24. BuildRequires: dbus-devel >= %{dbus_version}
  25. BuildRequires: NetworkManager-devel >= %{nm_version}
  26. BuildRequires: NetworkManager-glib-devel >= %{nm_version}
  27. BuildRequires: glib2-devel
  28. BuildRequires: GConf2-devel
  29. BuildRequires: libgnomeui-devel
  30. BuildRequires: gnome-keyring-devel
  31. BuildRequires: libglade2-devel
  32. BuildRequires: libpng-devel
  33. BuildRequires: perl-XML-Parser
  34. BuildRequires: libtool intltool gettext
  35. BuildRequires: perl
  36. BuildRequires: gnome-common
  37. Requires(post): %{_bindir}/update-desktop-database
  38. Requires(postun): %{_bindir}/update-desktop-database
  39. Requires(post): /sbin/ldconfig
  40. Requires(postun): /sbin/ldconfig
  41. Requires: gtk2 >= %{gtk2_version}
  42. Requires: dbus >= %{dbus_version}
  43. Requires: NetworkManager >= %{nm_version}
  44. Requires: openvpn >= %{openvpn_version}
  45. Requires: shared-mime-info >= %{shared_mime_version}
  46. Requires: GConf2
  47. Requires: gnome-keyring
  48. %description
  49. This package contains software for integrating the OpenVPN VPN software
  50. with NetworkManager and the GNOME desktop.
  51. %description -l ja
  52. 本パッケージに収録されているソフトウェアにより、OpenVPN を
  53. NetworkManager と GNOME デスクトップに統合させることができます。
  54. %prep
  55. %setup -q -n %{name}-%{version}
  56. %build
  57. if [ ! -f configure ]; then
  58. ./autogen.sh
  59. fi
  60. %configure --disable-static --disable-dependency-tracking \
  61. --enable-more-warnings=yes
  62. make %{?_smp_mflags}
  63. %install
  64. rm -rf %{buildroot}
  65. make install DESTDIR=%{buildroot} INSTALL="%{__install} -p"
  66. rm -f %{buildroot}%{_libdir}/NetworkManager/lib*.la
  67. %find_lang %{name}
  68. %clean
  69. rm -rf %{buildroot}
  70. %post
  71. /sbin/ldconfig
  72. /usr/bin/update-desktop-database > /dev/null
  73. touch --no-create %{_datadir}/icons/hicolor
  74. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  75. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  76. fi
  77. %postun
  78. /sbin/ldconfig
  79. /usr/bin/update-desktop-database > /dev/null
  80. touch --no-create %{_datadir}/icons/hicolor
  81. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  82. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  83. fi
  84. %files -f %{name}.lang
  85. %defattr(-, root, root)
  86. %doc AUTHORS ChangeLog README
  87. %{_libdir}/NetworkManager/lib*.so*
  88. %{_libexecdir}/nm-openvpn-auth-dialog
  89. %{_sysconfdir}/dbus-1/system.d/nm-openvpn-service.conf
  90. %{_sysconfdir}/NetworkManager/VPN/nm-openvpn-service.name
  91. %{_libexecdir}/nm-openvpn-service
  92. %{_libexecdir}/nm-openvpn-service-openvpn-helper
  93. %{_datadir}/gnome-vpn-properties/openvpn/nm-openvpn-dialog.glade
  94. #%{_datadir}/applications/nm-openvpn.desktop
  95. #%{_datadir}/icons/hicolor/48x48/apps/gnome-mime-application-x-openvpn-settings.png
  96. %dir %{_datadir}/gnome-vpn-properties/openvpn
  97. %changelog
  98. * Tue May 11 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.8-1
  99. - new upstream release
  100. * Tue May 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.1-1
  101. - new upstream release
  102. * Sat Mar 28 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.7.0.99-1
  103. - new upstream release in sync with NetworkManager-0.7.0.99
  104. * Wed Jan 28 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.7.0-1.svn14
  105. - updated to new upstream tree, svn snapshot r14
  106. (svn://svn.gnome.org/svn/network-manager-openvpn)
  107. - rebuilt with updated NetworkManager (0.7.0-1.git20090102)
  108. - add Japanese summary and description
  109. * Sat Sep 27 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.0-0.2.svn4027
  110. - update to new svn snapshot (r4027)
  111. * Mon Aug 11 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.0-0.1.svn3918
  112. - initial build for Vine Linux
  113. * Thu Jul 24 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-15.svn3846
  114. - Rebuild to sync with F9 release number
  115. * Thu Jul 24 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-11.svn3846
  116. - Fix TLS Authentication direction combo
  117. - Only update settings if the advanced dialog's OK button is pressed
  118. * Fri Jul 18 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-11.svn3832
  119. - Update for NM netmask -> prefix changes
  120. * Wed Jul 02 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-11.svn3801
  121. - Update for moving VPN editing into connection manager
  122. - Import OpenVPN configuration files rather than old custom format
  123. * Mon May 05 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-10.svn3632
  124. - Fix issue with location of the VPN plugin
  125. * Thu May 01 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-10.svn3627
  126. - Update for compat with new NM bits
  127. * Wed Apr 23 2008 Christoph Höger <choeger@cs.tu-berlin.de> 1:0.7.0-10.svn3549
  128. - (Hopefully) Fix generation of nm-openvpn-service.name (#443389)
  129. * Wed Apr 09 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-9.svn3549
  130. - Update for compat with new NM bits
  131. * Mon Mar 03 2008 Tim Niemueller <tim@niemueller.de> 1:0.7.0-9.svn3302
  132. - Mute %post and %postun scripts
  133. * Fri Feb 08 2008 Tim Niemueller <tim@niemueller.de> 1:0.7.0-8.svn3302
  134. - Update to latest SVN snapshot
  135. - Fixes rhbz#429816 (port was not saved correctly)
  136. - Respects DNS search string from OpenVPN server
  137. * Fri Jan 18 2008 Tim Niemueller <tim@niemueller.de> 1:0.7.0-7.svn3169
  138. - Use install -p during "make install" to fix #342701
  139. * Thu Dec 13 2007 Tim Niemueller <tim@niemueller.de> 1:0.7.0-6.svn3169
  140. - Update to latest SVN snapshot
  141. * Thu Dec 6 2007 Dan Williams <dcbw@redhat.com> 1:0.7.0-5.svn3140
  142. - Update to latest SVN snapshot to get stuff working
  143. * Fri Nov 23 2007 Tim Niemueller <tim@niemueller.de> 1:0.7.0-4.svn3047
  144. - BuildRequire libtool and glib2-devel since we call autogen.sh now
  145. * Fri Nov 23 2007 Tim Niemueller <tim@niemueller.de> 1:0.7.0-3.svn3047
  146. - Fixed #320941
  147. - Call autogen, therefore BuildRequire gnome-common
  148. - Use plain 3047 from repo and use a patch, we cannot use trunk at the
  149. moment since it is in flux and incompatible with NM available for F8
  150. * Wed Oct 31 2007 Tim Niemueller <tim@niemueller.de> 1:0.7.0-2.svn3047.fc8
  151. - BuildRequire gettext
  152. * Tue Oct 30 2007 Tim Niemueller <tim@niemueller.de> 1:0.7.0-1.svn3047.fc8
  153. - Upgrade to trunk, needed to be compatible with NM 0.7.0, rebuild for F-8
  154. * Fri Sep 15 2006 Tim Niemueller <tim@niemueller.de> 0.3.2-7
  155. - Rebuild for FC6
  156. * Sat Aug 19 2006 Tim Niemueller <tim@niemueller.de> 0.3.2-5
  157. - Added perl-XML-Parser as a build requirement, needed for intltool
  158. * Tue Aug 15 2006 Tim Niemueller <tim@niemueller.de> 0.3.2-4
  159. - Added instructions how to build the source package
  160. - removed a rm line
  161. * Wed Aug 09 2006 Tim Niemueller <tim@niemueller.de> 0.3.2-3
  162. - Added URL
  163. * Fri Aug 04 2006 Tim Niemueller <tim@niemueller.de> 0.3.2-2
  164. - Upgrade to current upstream version (0.3.2 on 0.6 branch)
  165. * Mon Jul 10 2006 Tim Niemueller <tim@niemueller.de> 0.3.2-1
  166. - Upgraded to 0.3.2 for 0.6 branch
  167. * Tue Dec 06 2005 Tim Niemueller <tim@niemueller.de> 0.3-1
  168. - Initial revision based on NetworkManager-vpnc spec