libssh-vl.spec 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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.8.5
  6. Release: 1%{?_dist_release}
  7. Group: System Environment/Libraries
  8. License: LGPLv2+
  9. URL: http://www.libssh.org/
  10. Source0: http://www.libssh.org/files/%{name}-%{version}.tar.xz
  11. Patch0: libssh-0.8.3-strict-overflow.patch
  12. # security fix
  13. # Nothing so far.
  14. # Patch100: libssh-0.4.8-pkgconfig.patch
  15. Vendor: Project Vine
  16. Distribution: Vine Linux
  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. %patch0 -p1 -b .strict-overflow
  53. %build
  54. mkdir -p %{_target_platform}
  55. pushd %{_target_platform}
  56. %cmake ..
  57. popd
  58. make %{?_smp_mflags} -C %{_target_platform}
  59. #configure --disable-static --enable-shared
  60. #make # doesn't build with %{?_smp_mflags}
  61. %install
  62. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  63. make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  64. %clean
  65. rm -rf $RPM_BUILD_ROOT
  66. %post -p /sbin/ldconfig
  67. %postun -p /sbin/ldconfig
  68. %files
  69. %defattr(-,root,root,-)
  70. %doc AUTHORS ChangeLog COPYING 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. * Sat Nov 03 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.8.5-1
  85. - new upstream release.
  86. - built with openssl-1.1.1.
  87. - added cmake support.
  88. - added a sub-package 'compat32-libssh'.
  89. * Sat Mar 12 2016 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.7.3-2
  90. - rebuilt with openssl 1.0.2g
  91. * Fri Feb 26 2016 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.7.3-1
  92. - new upstream release with security fixes
  93. * Sun Jul 19 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.8-3
  94. - add Patch100 (libssh-0.4.8-pkgconfig.patch)
  95. * Mon Dec 3 2012 IWAI, Masaharu <iwai@alib.jp> 0.4.8-2
  96. - SECURITY FIX:
  97. - add patches from Debian libssh 0.4.5-3+squeeze1
  98. - CVE-2012-4559.patch (Patch10)
  99. - CVE-2012-4561.patch (Patch11)
  100. - CVE-2012-4562.patch (Patch12)
  101. - add patch based Red Hat BTS #871614
  102. - CVE-2012-4560.patch (Patch13)
  103. * Sat Jan 29 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.8-1
  104. - new upstream release
  105. * Sun Jun 20 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.4.4-1
  106. - new upstream release
  107. * Sun Mar 7 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.4.1-1
  108. - new upstream release
  109. * Tue Sep 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2-1
  110. - initial build for Vine Linux
  111. * Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 0.2-4
  112. - rebuilt with new openssl
  113. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-3
  114. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  115. * Tue Jun 02 2009 Jan F. Chadima <jchadima@redhat.com> - 0.2-2
  116. - Small changes during review
  117. * Mon Jun 01 2009 Jan F. Chadima <jchadima@redhat.com> - 0.2-1
  118. - Initial build