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