NetworkManager-openconnect-vl.spec 4.3 KB

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