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