NetworkManager-openconnect-vl.spec 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. %define nm_version 0.9.2.0
  2. %define dbus_version 1.4.14
  3. %define gtk3_version 3.0.0
  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.9.2.0
  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.xz
  20. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  21. BuildRequires: autoconf
  22. BuildRequires: gtk3-devel >= %{gtk3_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 Nov 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.2.0-1
  91. - new upstream release
  92. * Tue Aug 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.0-1
  93. - new upstream release
  94. * Thu Aug 18 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8.999-1
  95. - new upstream release
  96. - change BuildRequires: gtk3-devel instead of gtk2-devel
  97. * Wed May 04 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8.4-1
  98. - new upstream release
  99. - add BuildRequires: openconnect-devel
  100. * Sat Jan 01 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8.2-1
  101. - new upstream release
  102. - change BuildRequires: libgnome-keyring-devel instead of gnome-keyring-devel
  103. * Tue May 11 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.8-1
  104. - new upstream release
  105. * Tue May 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.1-1
  106. - initial build for Vine Linux
  107. * Wed Apr 1 2009 David Woodhouse <David.Woodhouse@intel.com> 1:0.7.0.99-2
  108. - Update translations from SVN
  109. - Accept 'lasthost' and 'autoconnect' keys in gconf
  110. * Thu Mar 5 2009 Dan Williams <dcbw@redhat.com> 1:0.7.0.99-1
  111. - Update to 0.7.1rc3
  112. * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0.97-2
  113. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  114. * Thu Feb 19 2009 Dan Williams <dcbw@redhat.com> 0.7.0.97-1
  115. - Update to 0.7.1rc1
  116. * Mon Jan 5 2009 David Woodhouse <David.woodhouse@intel.com> 0.7.0-4.svn14
  117. - Rebuild for updated NetworkManager
  118. - Update translations from GNOME SVN
  119. * Sun Dec 21 2008 David Woodhouse <David.Woodhouse@intel.com> 0.7.0-3.svn9
  120. - Update from GNOME SVN (translations, review feedback merged)
  121. * Wed Dec 17 2008 David Woodhouse <David.Woodhouse@intel.com> 0.7.0-2.svn3
  122. - Review feedback
  123. * Tue Dec 16 2008 David Woodhouse <David.Woodhouse@intel.com> 0.7.0-1.svn3
  124. - Change version numbering to match NetworkManager