libssh-vl.spec 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  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.5
  6. Release: 1%{?_dist_release}
  7. Group: system
  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: programming
  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
  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. %debug_package
  51. %prep
  52. %setup -q
  53. %autopatch -p1
  54. %build
  55. mkdir -p %{_target_platform}
  56. pushd %{_target_platform}
  57. %cmake ..
  58. popd
  59. make %{?_smp_mflags} -C %{_target_platform}
  60. #configure --disable-static --enable-shared
  61. #make # doesn't build with %{?_smp_mflags}
  62. %install
  63. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  64. make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  65. %clean
  66. rm -rf $RPM_BUILD_ROOT
  67. %post -p /sbin/ldconfig
  68. %postun -p /sbin/ldconfig
  69. %files
  70. %defattr(-,root,root,-)
  71. %license COPYING
  72. %doc AUTHORS ChangeLog README
  73. %{_libdir}/*.so.*
  74. %files devel
  75. %defattr(-,root,root,-)
  76. %{_includedir}/*
  77. %{_libdir}/*.so
  78. %{_libdir}/pkgconfig/%{name}*.pc
  79. %dir %{_libdir}/cmake/
  80. %{_libdir}/cmake/libssh/
  81. %if %{build_compat32}
  82. %files -n compat32-%{name}
  83. %{_libdir}/*.so.*
  84. %endif
  85. %changelog
  86. * Wed Dec 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.5-1
  87. - new upstream release.
  88. - dropped Patch1000 and 1001: fixed in upstream.
  89. * Tue Aug 04 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.4-2
  90. - added Patch1000 and 1001 to fix CVE-2020-16135.
  91. * Tue Apr 14 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.4-1
  92. - new upstream release.
  93. * Sun Feb 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.3-1
  94. - new upstream release.
  95. - dropped Patch0: fixed in upstream.
  96. * Sat Nov 03 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.8.5-1
  97. - new upstream release.
  98. - built with openssl-1.1.1.
  99. - added cmake support.
  100. - added a sub-package 'compat32-libssh'.
  101. * Sat Mar 12 2016 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.7.3-2
  102. - rebuilt with openssl 1.0.2g
  103. * Fri Feb 26 2016 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.7.3-1
  104. - new upstream release with security fixes
  105. * Sun Jul 19 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.8-3
  106. - add Patch100 (libssh-0.4.8-pkgconfig.patch)
  107. * Mon Dec 3 2012 IWAI, Masaharu <iwai@alib.jp> 0.4.8-2
  108. - SECURITY FIX:
  109. - add patches from Debian libssh 0.4.5-3+squeeze1
  110. - CVE-2012-4559.patch (Patch10)
  111. - CVE-2012-4561.patch (Patch11)
  112. - CVE-2012-4562.patch (Patch12)
  113. - add patch based Red Hat BTS #871614
  114. - CVE-2012-4560.patch (Patch13)
  115. * Sat Jan 29 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.8-1
  116. - new upstream release
  117. * Sun Jun 20 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.4.4-1
  118. - new upstream release
  119. * Sun Mar 7 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.4.1-1
  120. - new upstream release
  121. * Tue Sep 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2-1
  122. - initial build for Vine Linux
  123. * Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 0.2-4
  124. - rebuilt with new openssl
  125. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-3
  126. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  127. * Tue Jun 02 2009 Jan F. Chadima <jchadima@redhat.com> - 0.2-2
  128. - Small changes during review
  129. * Mon Jun 01 2009 Jan F. Chadima <jchadima@redhat.com> - 0.2-1
  130. - Initial build