libssh-vl.spec 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Summary: A library implementing the SSH2 protocol
  3. Summary(ja): SSH2プロトコルを実装するためのライブラリ
  4. Name: libssh
  5. Version: 0.9.4
  6. Release: 1%{?_dist_release}
  7. Group: System Environment/Libraries
  8. Vendor: Project Vine
  9. Distribution: Vine Linux
  10. License: LGPLv2+
  11. URL: https://www.libssh.org/
  12. %global shortver %(echo %{version} | sed -e 's/\\.[0-9]*$//')
  13. Source0: https://www.libssh.org/files/%{shortver}/%{name}-%{version}.tar.xz
  14. # security fix
  15. # Nothing so far.
  16. # Patch100: libssh-0.4.8-pkgconfig.patch
  17. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  18. BuildRequires: openssl-devel
  19. BuildRequires: zlib-devel
  20. BuildRequires: cmake
  21. %description
  22. The SSH library with
  23. - Full C library functions for manipulating a client-side SSH connection
  24. - Fully configurable sessions
  25. - Support for AES-128,AES-192,AES-256,blowfish, in cbc mode
  26. - use multiple SSH connections in a same process, at same time.
  27. - usable SFTP implementation
  28. - Public key and password authentication
  29. %package devel
  30. Summary: Development files for %{name}
  31. Summary(ja): %{name} の開発ファイル
  32. Group: Development/Libraries
  33. Requires: %{name} = %{version}-%{release}
  34. Requires: pkgconfig
  35. %description devel
  36. The %{name}-devel package contains libraries and header files for
  37. developing applications that use %{name}.
  38. %package -n compat32-%{name}
  39. Summary: A library implementing the SSH2 protocol
  40. Summary(ja): SSH2プロトコルを実装するためのライブラリ
  41. Group: System Environment/Libraries
  42. %description -n compat32-%{name}
  43. The SSH library with
  44. - Full C library functions for manipulating a client-side SSH connection
  45. - Fully configurable sessions
  46. - Support for AES-128,AES-192,AES-256,blowfish, in cbc mode
  47. - use multiple SSH connections in a same process, at same time.
  48. - usable SFTP implementation
  49. - Public key and password authentication
  50. %prep
  51. %setup -q
  52. %build
  53. mkdir -p %{_target_platform}
  54. pushd %{_target_platform}
  55. %cmake ..
  56. popd
  57. make %{?_smp_mflags} -C %{_target_platform}
  58. #configure --disable-static --enable-shared
  59. #make # doesn't build with %{?_smp_mflags}
  60. %install
  61. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  62. make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  63. %clean
  64. rm -rf $RPM_BUILD_ROOT
  65. %post -p /sbin/ldconfig
  66. %postun -p /sbin/ldconfig
  67. %files
  68. %defattr(-,root,root,-)
  69. %license COPYING
  70. %doc AUTHORS ChangeLog README
  71. %{_libdir}/*.so.*
  72. %files devel
  73. %defattr(-,root,root,-)
  74. %{_includedir}/*
  75. %{_libdir}/*.so
  76. %{_libdir}/pkgconfig/%{name}*.pc
  77. %dir %{_libdir}/cmake/
  78. %{_libdir}/cmake/libssh/
  79. %if %{build_compat32}
  80. %files -n compat32-%{name}
  81. %{_libdir}/*.so.*
  82. %endif
  83. %changelog
  84. * Tue Apr 14 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.4-1
  85. - new upstream release.
  86. * Sun Feb 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.3-1
  87. - new upstream release.
  88. - dropped Patch0: fixed in upstream.
  89. * Sat Nov 03 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.8.5-1
  90. - new upstream release.
  91. - built with openssl-1.1.1.
  92. - added cmake support.
  93. - added a sub-package 'compat32-libssh'.
  94. * Sat Mar 12 2016 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.7.3-2
  95. - rebuilt with openssl 1.0.2g
  96. * Fri Feb 26 2016 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.7.3-1
  97. - new upstream release with security fixes
  98. * Sun Jul 19 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.8-3
  99. - add Patch100 (libssh-0.4.8-pkgconfig.patch)
  100. * Mon Dec 3 2012 IWAI, Masaharu <iwai@alib.jp> 0.4.8-2
  101. - SECURITY FIX:
  102. - add patches from Debian libssh 0.4.5-3+squeeze1
  103. - CVE-2012-4559.patch (Patch10)
  104. - CVE-2012-4561.patch (Patch11)
  105. - CVE-2012-4562.patch (Patch12)
  106. - add patch based Red Hat BTS #871614
  107. - CVE-2012-4560.patch (Patch13)
  108. * Sat Jan 29 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.8-1
  109. - new upstream release
  110. * Sun Jun 20 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.4.4-1
  111. - new upstream release
  112. * Sun Mar 7 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.4.1-1
  113. - new upstream release
  114. * Tue Sep 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2-1
  115. - initial build for Vine Linux
  116. * Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 0.2-4
  117. - rebuilt with new openssl
  118. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-3
  119. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  120. * Tue Jun 02 2009 Jan F. Chadima <jchadima@redhat.com> - 0.2-2
  121. - Small changes during review
  122. * Mon Jun 01 2009 Jan F. Chadima <jchadima@redhat.com> - 0.2-1
  123. - Initial build