[11854] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 2 | |
---|
[590] | 3 | Summary: A library implementing the SSH2 protocol |
---|
| 4 | Summary(ja): SSH2プロトコルを実装するためのライブラリ |
---|
[521] | 5 | Name: libssh |
---|
[12373] | 6 | Version: 0.9.4 |
---|
[11854] | 7 | Release: 1%{?_dist_release} |
---|
[12373] | 8 | Group: System Environment/Libraries |
---|
| 9 | Vendor: Project Vine |
---|
| 10 | Distribution: Vine Linux |
---|
[521] | 11 | |
---|
| 12 | License: LGPLv2+ |
---|
[12373] | 13 | URL: https://www.libssh.org/ |
---|
[12322] | 14 | %global shortver %(echo %{version} | sed -e 's/\\.[0-9]*$//') |
---|
| 15 | Source0: https://www.libssh.org/files/%{shortver}/%{name}-%{version}.tar.xz |
---|
[11854] | 16 | |
---|
[7200] | 17 | # security fix |
---|
[10047] | 18 | # Nothing so far. |
---|
| 19 | # Patch100: libssh-0.4.8-pkgconfig.patch |
---|
[9670] | 20 | |
---|
[11854] | 21 | |
---|
[590] | 22 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[521] | 23 | |
---|
| 24 | BuildRequires: openssl-devel |
---|
[12373] | 25 | BuildRequires: zlib-devel |
---|
[590] | 26 | BuildRequires: cmake |
---|
[521] | 27 | |
---|
| 28 | %description |
---|
| 29 | The SSH library with |
---|
[590] | 30 | - Full C library functions for manipulating a client-side SSH connection |
---|
| 31 | - Fully configurable sessions |
---|
| 32 | - Support for AES-128,AES-192,AES-256,blowfish, in cbc mode |
---|
| 33 | - use multiple SSH connections in a same process, at same time. |
---|
| 34 | - usable SFTP implementation |
---|
| 35 | - Public key and password authentication |
---|
[521] | 36 | |
---|
| 37 | %package devel |
---|
| 38 | Summary: Development files for %{name} |
---|
| 39 | Summary(ja): %{name} の開発ファイル |
---|
| 40 | Group: Development/Libraries |
---|
| 41 | Requires: %{name} = %{version}-%{release} |
---|
[9670] | 42 | Requires: pkgconfig |
---|
[521] | 43 | |
---|
| 44 | %description devel |
---|
| 45 | The %{name}-devel package contains libraries and header files for |
---|
| 46 | developing applications that use %{name}. |
---|
| 47 | |
---|
[11854] | 48 | %package -n compat32-%{name} |
---|
| 49 | Summary: A library implementing the SSH2 protocol |
---|
| 50 | Summary(ja): SSH2プロトコルを実装するためのライブラリ |
---|
| 51 | Group: System Environment/Libraries |
---|
| 52 | |
---|
| 53 | %description -n compat32-%{name} |
---|
| 54 | The SSH library with |
---|
| 55 | - Full C library functions for manipulating a client-side SSH connection |
---|
| 56 | - Fully configurable sessions |
---|
| 57 | - Support for AES-128,AES-192,AES-256,blowfish, in cbc mode |
---|
| 58 | - use multiple SSH connections in a same process, at same time. |
---|
| 59 | - usable SFTP implementation |
---|
| 60 | - Public key and password authentication |
---|
| 61 | |
---|
[521] | 62 | %prep |
---|
| 63 | %setup -q |
---|
| 64 | |
---|
| 65 | %build |
---|
[590] | 66 | mkdir -p %{_target_platform} |
---|
| 67 | pushd %{_target_platform} |
---|
| 68 | %cmake .. |
---|
| 69 | popd |
---|
[521] | 70 | |
---|
[590] | 71 | make %{?_smp_mflags} -C %{_target_platform} |
---|
| 72 | |
---|
| 73 | #configure --disable-static --enable-shared |
---|
| 74 | #make # doesn't build with %{?_smp_mflags} |
---|
| 75 | |
---|
[521] | 76 | %install |
---|
[590] | 77 | [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT |
---|
[521] | 78 | |
---|
[590] | 79 | make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
| 80 | |
---|
[521] | 81 | %clean |
---|
| 82 | rm -rf $RPM_BUILD_ROOT |
---|
| 83 | |
---|
| 84 | %post -p /sbin/ldconfig |
---|
| 85 | |
---|
| 86 | %postun -p /sbin/ldconfig |
---|
| 87 | |
---|
| 88 | %files |
---|
| 89 | %defattr(-,root,root,-) |
---|
[12322] | 90 | %license COPYING |
---|
| 91 | %doc AUTHORS ChangeLog README |
---|
[521] | 92 | %{_libdir}/*.so.* |
---|
| 93 | |
---|
| 94 | %files devel |
---|
| 95 | %defattr(-,root,root,-) |
---|
| 96 | %{_includedir}/* |
---|
| 97 | %{_libdir}/*.so |
---|
[10047] | 98 | %{_libdir}/pkgconfig/%{name}*.pc |
---|
[11854] | 99 | %dir %{_libdir}/cmake/ |
---|
| 100 | %{_libdir}/cmake/libssh/ |
---|
[521] | 101 | |
---|
[11854] | 102 | %if %{build_compat32} |
---|
| 103 | %files -n compat32-%{name} |
---|
| 104 | %{_libdir}/*.so.* |
---|
| 105 | %endif |
---|
| 106 | |
---|
[521] | 107 | %changelog |
---|
[12373] | 108 | * Tue Apr 14 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.4-1 |
---|
| 109 | - new upstream release. |
---|
| 110 | |
---|
[12322] | 111 | * Sun Feb 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.3-1 |
---|
| 112 | - new upstream release. |
---|
| 113 | - dropped Patch0: fixed in upstream. |
---|
| 114 | |
---|
[11854] | 115 | * Sat Nov 03 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.8.5-1 |
---|
| 116 | - new upstream release. |
---|
| 117 | - built with openssl-1.1.1. |
---|
| 118 | - added cmake support. |
---|
| 119 | - added a sub-package 'compat32-libssh'. |
---|
| 120 | |
---|
[10072] | 121 | * Sat Mar 12 2016 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.7.3-2 |
---|
| 122 | - rebuilt with openssl 1.0.2g |
---|
| 123 | |
---|
[10047] | 124 | * Fri Feb 26 2016 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.7.3-1 |
---|
| 125 | - new upstream release with security fixes |
---|
| 126 | |
---|
[9670] | 127 | * Sun Jul 19 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.8-3 |
---|
| 128 | - add Patch100 (libssh-0.4.8-pkgconfig.patch) |
---|
| 129 | |
---|
[7200] | 130 | * Mon Dec 3 2012 IWAI, Masaharu <iwai@alib.jp> 0.4.8-2 |
---|
| 131 | - SECURITY FIX: |
---|
| 132 | - add patches from Debian libssh 0.4.5-3+squeeze1 |
---|
| 133 | - CVE-2012-4559.patch (Patch10) |
---|
| 134 | - CVE-2012-4561.patch (Patch11) |
---|
| 135 | - CVE-2012-4562.patch (Patch12) |
---|
| 136 | - add patch based Red Hat BTS #871614 |
---|
| 137 | - CVE-2012-4560.patch (Patch13) |
---|
| 138 | |
---|
[2602] | 139 | * Sat Jan 29 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.8-1 |
---|
| 140 | - new upstream release |
---|
| 141 | |
---|
[1224] | 142 | * Sun Jun 20 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.4.4-1 |
---|
[590] | 143 | - new upstream release |
---|
| 144 | |
---|
[1224] | 145 | * Sun Mar 7 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.4.1-1 |
---|
| 146 | - new upstream release |
---|
| 147 | |
---|
[590] | 148 | * Tue Sep 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2-1 |
---|
[521] | 149 | - initial build for Vine Linux |
---|
| 150 | |
---|
| 151 | * Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 0.2-4 |
---|
| 152 | - rebuilt with new openssl |
---|
| 153 | |
---|
| 154 | * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-3 |
---|
| 155 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 156 | |
---|
| 157 | * Tue Jun 02 2009 Jan F. Chadima <jchadima@redhat.com> - 0.2-2 |
---|
| 158 | - Small changes during review |
---|
| 159 | |
---|
| 160 | * Mon Jun 01 2009 Jan F. Chadima <jchadima@redhat.com> - 0.2-1 |
---|
| 161 | - Initial build |
---|