NetworkManager-openconnect-vl.spec 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. %define nm_version 0.7.1
  2. %define dbus_version 1.1
  3. %define gtk2_version 2.10.0
  4. %define openconnect_version 0.99
  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.7.1
  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: gtk2-devel >= %{gtk2_version}
  22. BuildRequires: dbus-devel >= %{dbus_version}
  23. BuildRequires: NetworkManager-devel >= %{nm_version}
  24. BuildRequires: NetworkManager-glib-devel >= %{nm_version}
  25. BuildRequires: GConf2-devel
  26. BuildRequires: gnome-keyring-devel
  27. BuildRequires: libglade2-devel
  28. BuildRequires: intltool gettext
  29. BuildRequires: gnome-common
  30. BuildRequires: autoconf automake libtool
  31. Requires: NetworkManager >= %{nm_version}
  32. Requires: openconnect >= %{openconnect_version}
  33. Requires(post): /sbin/ldconfig
  34. Requires(postun): /sbin/ldconfig
  35. Requires(pre): %{_sbindir}/useradd
  36. Requires(pre): %{_sbindir}/groupadd
  37. %description
  38. This package contains software for integrating the openconnect VPN software
  39. with NetworkManager and the GNOME desktop
  40. %prep
  41. %setup -q
  42. %build
  43. %configure --enable-more-warnings=yes
  44. make %{?_smp_mflags}
  45. %install
  46. rm -rf $RPM_BUILD_ROOT
  47. make install DESTDIR=$RPM_BUILD_ROOT
  48. rm -f %{buildroot}%{_libdir}/NetworkManager/lib*.la
  49. rm -f %{buildroot}%{_libdir}/NetworkManager/lib*.a
  50. %find_lang %{name}
  51. %clean
  52. rm -rf $RPM_BUILD_ROOT
  53. %pre
  54. %{_sbindir}/groupadd -r nm-openconnect &>/dev/null || :
  55. %{_sbindir}/useradd -r -s /sbin/nologin -d / -M \
  56. -c 'NetworkManager user for OpenConnect' \
  57. -g nm-openconnect nm-openconnect &>/dev/null || :
  58. %post
  59. /sbin/ldconfig
  60. /usr/bin/update-desktop-database &> /dev/null || :
  61. touch --no-create %{_datadir}/icons/hicolor
  62. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  63. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  64. fi
  65. %postun
  66. /sbin/ldconfig
  67. /usr/bin/update-desktop-database &> /dev/null || :
  68. touch --no-create %{_datadir}/icons/hicolor
  69. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  70. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  71. fi
  72. %files -f %{name}.lang
  73. %defattr(-, root, root)
  74. %doc AUTHORS ChangeLog COPYING
  75. %{_libdir}/NetworkManager/lib*.so*
  76. %{_sysconfdir}/dbus-1/system.d/nm-openconnect-service.conf
  77. %{_sysconfdir}/NetworkManager/VPN/nm-openconnect-service.name
  78. %{_libexecdir}/nm-openconnect-service
  79. %{_libexecdir}/nm-openconnect-service-openconnect-helper
  80. %dir %{_datadir}/gnome-vpn-properties/openconnect
  81. %{_datadir}/gnome-vpn-properties/openconnect/nm-openconnect-dialog.glade
  82. %changelog
  83. * Tue May 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.1-1
  84. - initial build for Vine Linux
  85. * Wed Apr 1 2009 David Woodhouse <David.Woodhouse@intel.com> 1:0.7.0.99-2
  86. - Update translations from SVN
  87. - Accept 'lasthost' and 'autoconnect' keys in gconf
  88. * Thu Mar 5 2009 Dan Williams <dcbw@redhat.com> 1:0.7.0.99-1
  89. - Update to 0.7.1rc3
  90. * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0.97-2
  91. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  92. * Thu Feb 19 2009 Dan Williams <dcbw@redhat.com> 0.7.0.97-1
  93. - Update to 0.7.1rc1
  94. * Mon Jan 5 2009 David Woodhouse <David.woodhouse@intel.com> 0.7.0-4.svn14
  95. - Rebuild for updated NetworkManager
  96. - Update translations from GNOME SVN
  97. * Sun Dec 21 2008 David Woodhouse <David.Woodhouse@intel.com> 0.7.0-3.svn9
  98. - Update from GNOME SVN (translations, review feedback merged)
  99. * Wed Dec 17 2008 David Woodhouse <David.Woodhouse@intel.com> 0.7.0-2.svn3
  100. - Review feedback
  101. * Tue Dec 16 2008 David Woodhouse <David.Woodhouse@intel.com> 0.7.0-1.svn3
  102. - Change version numbering to match NetworkManager