NetworkManager-openvpn-vl.spec 8.4 KB

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