libssh-vl.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. Summary: A library implementing the SSH2 protocol
  2. Summary(ja): SSH2プロトコルを実装するためのライブラリ
  3. Name: libssh
  4. Version: 0.4.8
  5. Release: 3%{?_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. Patch100: libssh-0.4.8-pkgconfig.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. %prep
  41. %setup -q
  42. %patch10 -p 1 -b .CVE-2012-4559
  43. %patch11 -p 1 -b .CVE-2012-4561
  44. %patch12 -p 1 -b .CVE-2012-4562
  45. %patch13 -p 1 -b .CVE-2012-4560
  46. %patch100 -p0 -b .pkgconfig
  47. %build
  48. mkdir -p %{_target_platform}
  49. pushd %{_target_platform}
  50. %cmake ..
  51. popd
  52. make %{?_smp_mflags} -C %{_target_platform}
  53. #configure --disable-static --enable-shared
  54. #make # doesn't build with %{?_smp_mflags}
  55. %install
  56. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  57. make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  58. %clean
  59. rm -rf $RPM_BUILD_ROOT
  60. %post -p /sbin/ldconfig
  61. %postun -p /sbin/ldconfig
  62. %files
  63. %defattr(-,root,root,-)
  64. %doc AUTHORS ChangeLog COPYING README
  65. %{_libdir}/*.so.*
  66. %files devel
  67. %defattr(-,root,root,-)
  68. %{_includedir}/*
  69. %{_libdir}/*.so
  70. %{_libdir}/pkgconfig/%{name}.pc
  71. %changelog
  72. * Sun Jul 19 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.8-3
  73. - add Patch100 (libssh-0.4.8-pkgconfig.patch)
  74. * Mon Dec 3 2012 IWAI, Masaharu <iwai@alib.jp> 0.4.8-2
  75. - SECURITY FIX:
  76. - add patches from Debian libssh 0.4.5-3+squeeze1
  77. - CVE-2012-4559.patch (Patch10)
  78. - CVE-2012-4561.patch (Patch11)
  79. - CVE-2012-4562.patch (Patch12)
  80. - add patch based Red Hat BTS #871614
  81. - CVE-2012-4560.patch (Patch13)
  82. * Sat Jan 29 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.8-1
  83. - new upstream release
  84. * Sun Jun 20 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.4.4-1
  85. - new upstream release
  86. * Sun Mar 7 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.4.1-1
  87. - new upstream release
  88. * Tue Sep 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2-1
  89. - initial build for Vine Linux
  90. * Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 0.2-4
  91. - rebuilt with new openssl
  92. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-3
  93. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  94. * Tue Jun 02 2009 Jan F. Chadima <jchadima@redhat.com> - 0.2-2
  95. - Small changes during review
  96. * Mon Jun 01 2009 Jan F. Chadima <jchadima@redhat.com> - 0.2-1
  97. - Initial build