NetworkManager-openconnect-vl.spec 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. %define nm_version 1.0.8
  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: 1.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.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. BuildRequires: libsecret-devel
  34. Requires: NetworkManager >= %{nm_version}
  35. Requires: openconnect >= %{openconnect_version}
  36. Requires(post): /sbin/ldconfig
  37. Requires(postun): /sbin/ldconfig
  38. Requires(pre): %{_sbindir}/useradd
  39. Requires(pre): %{_sbindir}/groupadd
  40. Vendor: Project Vine
  41. Distribution: Vine Linux
  42. Packager: daisuke
  43. %description
  44. This package contains software for integrating the openconnect VPN software
  45. with NetworkManager and the GNOME desktop
  46. %prep
  47. %setup -q
  48. %build
  49. autoreconf -if
  50. %configure --enable-more-warnings=yes
  51. make %{?_smp_mflags}
  52. %install
  53. rm -rf $RPM_BUILD_ROOT
  54. make install DESTDIR=$RPM_BUILD_ROOT
  55. rm -f %{buildroot}%{_libdir}/NetworkManager/lib*.la
  56. rm -f %{buildroot}%{_libdir}/NetworkManager/lib*.a
  57. %find_lang %{name}
  58. %clean
  59. rm -rf $RPM_BUILD_ROOT
  60. %pre
  61. %{_sbindir}/groupadd -r nm-openconnect &>/dev/null || :
  62. %{_sbindir}/useradd -r -s /sbin/nologin -d / -M \
  63. -c 'NetworkManager user for OpenConnect' \
  64. -g nm-openconnect nm-openconnect &>/dev/null || :
  65. %post
  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. %postun
  73. /sbin/ldconfig
  74. /usr/bin/update-desktop-database &> /dev/null || :
  75. touch --no-create %{_datadir}/icons/hicolor
  76. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  77. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  78. fi
  79. %files -f %{name}.lang
  80. %defattr(-, root, root)
  81. %doc AUTHORS ChangeLog COPYING
  82. %{_libdir}/NetworkManager/lib*.so*
  83. %{_sysconfdir}/dbus-1/system.d/nm-openconnect-service.conf
  84. %{_sysconfdir}/NetworkManager/VPN/nm-openconnect-service.name
  85. %{_libexecdir}/nm-openconnect-auth-dialog
  86. %{_libexecdir}/nm-openconnect-service
  87. %{_libexecdir}/nm-openconnect-service-openconnect-helper
  88. %dir %{_datadir}/gnome-vpn-properties/openconnect
  89. %{_datadir}/gnome-vpn-properties/openconnect/nm-openconnect-dialog.ui
  90. %changelog
  91. * Wed Nov 25 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.8-1
  92. - new upstream release
  93. * Sun Apr 05 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.10.2-1
  94. - new upstream release
  95. - add BuildRequires: libsecret-devel
  96. * Sun Dec 29 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.8.2-2
  97. - rebuild with VineSeed environment
  98. * Sun Jun 09 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.8.2-1
  99. - new upstream release
  100. * Fri Aug 17 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.6.2-1
  101. - new upstream release
  102. * Wed Nov 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.2.0-1
  103. - new upstream release
  104. * Tue Aug 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.0-1
  105. - new upstream release
  106. * Thu Aug 18 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8.999-1
  107. - new upstream release
  108. - change BuildRequires: gtk3-devel instead of gtk2-devel
  109. * Wed May 04 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8.4-1
  110. - new upstream release
  111. - add BuildRequires: openconnect-devel
  112. * Sat Jan 01 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8.2-1
  113. - new upstream release
  114. - change BuildRequires: libgnome-keyring-devel instead of gnome-keyring-devel
  115. * Tue May 11 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.8-1
  116. - new upstream release
  117. * Tue May 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.1-1
  118. - initial build for Vine Linux
  119. * Wed Apr 1 2009 David Woodhouse <David.Woodhouse@intel.com> 1:0.7.0.99-2
  120. - Update translations from SVN
  121. - Accept 'lasthost' and 'autoconnect' keys in gconf
  122. * Thu Mar 5 2009 Dan Williams <dcbw@redhat.com> 1:0.7.0.99-1
  123. - Update to 0.7.1rc3
  124. * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0.97-2
  125. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  126. * Thu Feb 19 2009 Dan Williams <dcbw@redhat.com> 0.7.0.97-1
  127. - Update to 0.7.1rc1
  128. * Mon Jan 5 2009 David Woodhouse <David.woodhouse@intel.com> 0.7.0-4.svn14
  129. - Rebuild for updated NetworkManager
  130. - Update translations from GNOME SVN
  131. * Sun Dec 21 2008 David Woodhouse <David.Woodhouse@intel.com> 0.7.0-3.svn9
  132. - Update from GNOME SVN (translations, review feedback merged)
  133. * Wed Dec 17 2008 David Woodhouse <David.Woodhouse@intel.com> 0.7.0-2.svn3
  134. - Review feedback
  135. * Tue Dec 16 2008 David Woodhouse <David.Woodhouse@intel.com> 0.7.0-1.svn3
  136. - Change version numbering to match NetworkManager