libssh-vl.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. Summary: A library implementing the SSH2 protocol
  2. Summary(ja): SSH2プロトコルを実装するためのライブラリ
  3. Name: libssh
  4. Version: 0.4.8
  5. Release: 2%{?_dist_release}
  6. Group: System Environment/Libraries
  7. License: LGPLv2+
  8. URL: http://www.libssh.org/
  9. Source0: http://www.libssh.org/files/%{name}-%{version}.tar.gz
  10. Patch0: libssh-0.2-libdir.patch
  11. # security fix
  12. ## from Debian libssh 0.4.5-3+squeeze1
  13. Patch10: CVE-2012-4559.patch
  14. Patch11: CVE-2012-4561.patch
  15. Patch12: CVE-2012-4562.patch
  16. ## based Red Hat BTS #871614
  17. Patch13: CVE-2012-4560.patch
  18. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  19. BuildRequires: openssl-devel
  20. BuildRequires: zlib-devel
  21. BuildRequires: cmake
  22. %description
  23. The SSH library with
  24. - Full C library functions for manipulating a client-side SSH connection
  25. - Fully configurable sessions
  26. - Support for AES-128,AES-192,AES-256,blowfish, in cbc mode
  27. - use multiple SSH connections in a same process, at same time.
  28. - usable SFTP implementation
  29. - Public key and password authentication
  30. %package devel
  31. Summary: Development files for %{name}
  32. Summary(ja): %{name} の開発ファイル
  33. Group: Development/Libraries
  34. Requires: %{name} = %{version}-%{release}
  35. %description devel
  36. The %{name}-devel package contains libraries and header files for
  37. developing applications that use %{name}.
  38. %prep
  39. %setup -q
  40. %patch10 -p 1 -b .CVE-2012-4559
  41. %patch11 -p 1 -b .CVE-2012-4561
  42. %patch12 -p 1 -b .CVE-2012-4562
  43. %patch13 -p 1 -b .CVE-2012-4560
  44. %build
  45. mkdir -p %{_target_platform}
  46. pushd %{_target_platform}
  47. %cmake ..
  48. popd
  49. make %{?_smp_mflags} -C %{_target_platform}
  50. #configure --disable-static --enable-shared
  51. #make # doesn't build with %{?_smp_mflags}
  52. %install
  53. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  54. make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  55. %clean
  56. rm -rf $RPM_BUILD_ROOT
  57. %post -p /sbin/ldconfig
  58. %postun -p /sbin/ldconfig
  59. %files
  60. %defattr(-,root,root,-)
  61. %doc AUTHORS ChangeLog COPYING README
  62. %{_libdir}/*.so.*
  63. %files devel
  64. %defattr(-,root,root,-)
  65. %{_includedir}/*
  66. %{_libdir}/*.so
  67. %changelog
  68. * Mon Dec 3 2012 IWAI, Masaharu <iwai@alib.jp> 0.4.8-2
  69. - SECURITY FIX:
  70. - add patches from Debian libssh 0.4.5-3+squeeze1
  71. - CVE-2012-4559.patch (Patch10)
  72. - CVE-2012-4561.patch (Patch11)
  73. - CVE-2012-4562.patch (Patch12)
  74. - add patch based Red Hat BTS #871614
  75. - CVE-2012-4560.patch (Patch13)
  76. * Sat Jan 29 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.8-1
  77. - new upstream release
  78. * Sun Jun 20 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.4.4-1
  79. - new upstream release
  80. * Sun Mar 7 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.4.1-1
  81. - new upstream release
  82. * Tue Sep 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2-1
  83. - initial build for Vine Linux
  84. * Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 0.2-4
  85. - rebuilt with new openssl
  86. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-3
  87. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  88. * Tue Jun 02 2009 Jan F. Chadima <jchadima@redhat.com> - 0.2-2
  89. - Small changes during review
  90. * Mon Jun 01 2009 Jan F. Chadima <jchadima@redhat.com> - 0.2-1
  91. - Initial build