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