libssh-vl.spec 4.7 KB

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