NetworkManager-openvpn-vl.spec 7.9 KB

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