NetworkManager-openconnect-vl.spec 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. %define nm_version 0.8.4.0
  2. %define dbus_version 1.4.1
  3. %define gtk2_version 2.22.1
  4. %define openconnect_version 3.02
  5. %define svn_snapshot %{nil}
  6. Summary: NetworkManager VPN integration for openconnect
  7. Summary(ja): NetworkManager の openconnect 用 VPN 統合
  8. Name: NetworkManager-openconnect
  9. Version: 0.8.4
  10. Release: 1%{svn_snapshot}%{?_dist_release}
  11. License: GPLv2+
  12. Group: System Environment/Base
  13. URL: http://www.gnome.org/projects/NetworkManager/
  14. # Created from the git mirror of GNOME SVN:
  15. # git-clone git://git.infradead.org/network-manager-openconnect.git
  16. # cd network-manager-openconnect
  17. # git-archive --format=tar --prefix=NetworkManager-openconnect-0.7.0/ b94964eb \
  18. # | gzip -9 > NetworkManager-openconnect-0.7.0.svn14.tar.gz
  19. Source: %{name}-%{version}%{svn_snapshot}.tar.bz2
  20. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  21. BuildRequires: autoconf
  22. BuildRequires: gtk2-devel >= %{gtk2_version}
  23. BuildRequires: dbus-devel >= %{dbus_version}
  24. BuildRequires: NetworkManager-devel >= %{nm_version}
  25. BuildRequires: NetworkManager-glib-devel >= %{nm_version}
  26. BuildRequires: GConf2-devel
  27. BuildRequires: libgnome-keyring-devel
  28. BuildRequires: libglade2-devel
  29. BuildRequires: intltool gettext
  30. BuildRequires: gnome-common
  31. BuildRequires: autoconf automake libtool
  32. BuildRequires: openconnect-devel >= %{openconnect_version}
  33. Requires: NetworkManager >= %{nm_version}
  34. Requires: openconnect >= %{openconnect_version}
  35. Requires(post): /sbin/ldconfig
  36. Requires(postun): /sbin/ldconfig
  37. Requires(pre): %{_sbindir}/useradd
  38. Requires(pre): %{_sbindir}/groupadd
  39. Vendor: Project Vine
  40. Distribution: Vine Linux
  41. Packager: daisuke
  42. %description
  43. This package contains software for integrating the openconnect VPN software
  44. with NetworkManager and the GNOME desktop
  45. %prep
  46. %setup -q
  47. %build
  48. autoreconf -if
  49. %configure --enable-more-warnings=yes
  50. make %{?_smp_mflags}
  51. %install
  52. rm -rf $RPM_BUILD_ROOT
  53. make install DESTDIR=$RPM_BUILD_ROOT
  54. rm -f %{buildroot}%{_libdir}/NetworkManager/lib*.la
  55. rm -f %{buildroot}%{_libdir}/NetworkManager/lib*.a
  56. %find_lang %{name}
  57. %clean
  58. rm -rf $RPM_BUILD_ROOT
  59. %pre
  60. %{_sbindir}/groupadd -r nm-openconnect &>/dev/null || :
  61. %{_sbindir}/useradd -r -s /sbin/nologin -d / -M \
  62. -c 'NetworkManager user for OpenConnect' \
  63. -g nm-openconnect nm-openconnect &>/dev/null || :
  64. %post
  65. /sbin/ldconfig
  66. /usr/bin/update-desktop-database &> /dev/null || :
  67. touch --no-create %{_datadir}/icons/hicolor
  68. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  69. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  70. fi
  71. %postun
  72. /sbin/ldconfig
  73. /usr/bin/update-desktop-database &> /dev/null || :
  74. touch --no-create %{_datadir}/icons/hicolor
  75. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  76. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  77. fi
  78. %files -f %{name}.lang
  79. %defattr(-, root, root)
  80. %doc AUTHORS ChangeLog COPYING
  81. %{_libdir}/NetworkManager/lib*.so*
  82. %{_sysconfdir}/dbus-1/system.d/nm-openconnect-service.conf
  83. %{_sysconfdir}/NetworkManager/VPN/nm-openconnect-service.name
  84. %{_libexecdir}/nm-openconnect-auth-dialog
  85. %{_libexecdir}/nm-openconnect-service
  86. %{_libexecdir}/nm-openconnect-service-openconnect-helper
  87. %dir %{_datadir}/gnome-vpn-properties/openconnect
  88. %{_datadir}/gnome-vpn-properties/openconnect/nm-openconnect-dialog.ui
  89. %changelog
  90. * Wed May 04 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8.4-1
  91. - new upstream release
  92. - add BuildRequires: openconnect-devel
  93. * Sat Jan 01 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8.2-1
  94. - new upstream release
  95. - change BuildRequires: libgnome-keyring-devel instead of gnome-keyring-devel
  96. * Tue May 11 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.8-1
  97. - new upstream release
  98. * Tue May 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.1-1
  99. - initial build for Vine Linux
  100. * Wed Apr 1 2009 David Woodhouse <David.Woodhouse@intel.com> 1:0.7.0.99-2
  101. - Update translations from SVN
  102. - Accept 'lasthost' and 'autoconnect' keys in gconf
  103. * Thu Mar 5 2009 Dan Williams <dcbw@redhat.com> 1:0.7.0.99-1
  104. - Update to 0.7.1rc3
  105. * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0.97-2
  106. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  107. * Thu Feb 19 2009 Dan Williams <dcbw@redhat.com> 0.7.0.97-1
  108. - Update to 0.7.1rc1
  109. * Mon Jan 5 2009 David Woodhouse <David.woodhouse@intel.com> 0.7.0-4.svn14
  110. - Rebuild for updated NetworkManager
  111. - Update translations from GNOME SVN
  112. * Sun Dec 21 2008 David Woodhouse <David.Woodhouse@intel.com> 0.7.0-3.svn9
  113. - Update from GNOME SVN (translations, review feedback merged)
  114. * Wed Dec 17 2008 David Woodhouse <David.Woodhouse@intel.com> 0.7.0-2.svn3
  115. - Review feedback
  116. * Tue Dec 16 2008 David Woodhouse <David.Woodhouse@intel.com> 0.7.0-1.svn3
  117. - Change version numbering to match NetworkManager