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