NetworkManager-ssh.spec 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. %global commit ___commit___
  2. %global shortcommit %(c=%{commit}; echo ${c:0:7})
  3. %global checkout ___checkout___%{shortcommit}
  4. Summary: NetworkManager VPN plugin for SSH
  5. Name: NetworkManager-ssh
  6. Version: ___version___
  7. Release: 0.9.%{checkout}%{?dist}
  8. License: GPLv2+
  9. URL: https://github.com/danfruehauf/NetworkManager-ssh
  10. Group: System Environment/Base
  11. Source0: https://github.com/danfruehauf/NetworkManager-ssh/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
  12. BuildRequires: autoconf
  13. BuildRequires: gtk3-devel
  14. BuildRequires: dbus-devel
  15. BuildRequires: NetworkManager-devel
  16. BuildRequires: NetworkManager-glib-devel
  17. BuildRequires: glib2-devel
  18. BuildRequires: libgnome-keyring-devel
  19. BuildRequires: libtool intltool gettext
  20. Requires: gtk3
  21. Requires: dbus
  22. Requires: NetworkManager
  23. Requires: openssh-clients
  24. Requires: shared-mime-info
  25. Requires: gnome-keyring
  26. Requires: sshpass
  27. %global _privatelibs libnm-ssh-properties[.]so.*
  28. %global __provides_exclude ^(%{_privatelibs})$
  29. %global __requires_exclude ^(%{_privatelibs})$
  30. %description
  31. This package contains software for integrating VPN capabilities with
  32. the OpenSSH server with NetworkManager.
  33. %package -n NetworkManager-ssh-gnome
  34. Summary: NetworkManager VPN plugin for SSH - GNOME files
  35. Group: System Environment/Base
  36. Requires: NetworkManager-ssh = %{version}-%{release}
  37. %if 0%{?fedora} > 17
  38. Requires: nm-connection-editor
  39. %else
  40. Requires: NetworkManager-gnome
  41. %endif
  42. %description -n NetworkManager-ssh-gnome
  43. This package contains software for integrating VPN capabilities with
  44. the OpenSSH server with NetworkManager (GNOME files).
  45. %prep
  46. %setup -q -n %{name}-%{commit}
  47. %build
  48. if [ ! -f configure ]; then
  49. autoreconf -fvi
  50. fi
  51. %configure --disable-static --disable-dependency-tracking --enable-more-warnings=yes --with-gtkver=3
  52. make %{?_smp_mflags}
  53. %install
  54. make DESTDIR=%{buildroot} INSTALL="install -p" CP="cp -p" install
  55. rm -f %{buildroot}%{_libdir}/NetworkManager/lib*.la
  56. %find_lang %{name}
  57. %files -f %{name}.lang
  58. %doc COPYING AUTHORS README ChangeLog
  59. %config(noreplace) %{_sysconfdir}/dbus-1/system.d/nm-ssh-service.conf
  60. %config(noreplace) %{_sysconfdir}/NetworkManager/VPN/nm-ssh-service.name
  61. %{_libexecdir}/nm-ssh-service
  62. %{_libexecdir}/nm-ssh-auth-dialog
  63. %files -n NetworkManager-ssh-gnome
  64. %doc COPYING AUTHORS README ChangeLog
  65. %{_libdir}/NetworkManager/lib*.so*
  66. %dir %{_datadir}/gnome-vpn-properties/ssh
  67. %{_datadir}/gnome-vpn-properties/ssh/nm-ssh-dialog.ui
  68. %changelog
  69. * Sat Jul 06 2013 Dan Fruehauf <malkodan@gmail.com> - 0.9.1-0.1.20130706git92ea78a
  70. - Fixed password saving
  71. * Thu Jun 27 2013 Dan Fruehauf <malkodan@gmail.com> - 0.9.0-0.1.20130627git9bf3b80
  72. - Support for password and plain key authentication
  73. * Tue Jun 25 2013 Dan Fruehauf <malkodan@gmail.com> - 0.0.4-0.1.20130625git241fee0
  74. - Can choose to not set VPN as default route
  75. * Fri Apr 19 2013 Dan Fruehauf <malkodan@gmail.com> - 0.0.3-0.8.20130419git3d5321b
  76. - DBUS and NetworkManager files in /etc are no longer config files
  77. - Other refactoring to conform with other NetworkManager VPN plugins
  78. * Fri Apr 19 2013 Dan Fruehauf <malkodan@gmail.com> - 0.0.3-0.8.20130419git3d5321b
  79. - Added sub package for NetworkManager-ssh-gnome
  80. * Tue Apr 02 2013 Dan Fruehauf <malkodan@gmail.com> - 0.0.3-0.6.20130402git6ba59c4
  81. - Fixed dependencies (openssh-clients
  82. - Added private libs
  83. * Sat Mar 30 2013 Dan Fruehauf <malkodan@gmail.com> - 0.0.3-0.5.20130330git9afb20
  84. - Removed macros from changelog
  85. * Thu Mar 28 2013 Dan Fruehauf <malkodan@gmail.com> - 0.0.3-0.4.20130328gita2add30
  86. - Fixed more issues in spec to conform with Fedora Packaging standards
  87. * Tue Mar 26 2013 Dan Fruehauf <malkodan@gmail.com> - 0.0.3-0.3.20130326git7549f1d
  88. - More changes to conform with Fedora packaging standards
  89. * Fri Mar 22 2013 Dan Fruehauf <malkodan@gmail.com> - 0.0.3-0.2.20130322git8767415
  90. - Changes to conform with Fedora packaging standards
  91. * Wed Mar 20 2013 Dan Fruehauf <malkodan@gmail.com> - 0.0.3-0.1.20130320gitcf6c00f
  92. - Initial spec release