|
@@ -1,19 +1,25 @@
|
|
|
+%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
|
+
|
|
|
Summary: A library implementing the SSH2 protocol
|
|
|
Summary(ja): SSH2プロトコルを実装するためのライブラリ
|
|
|
|
|
|
Name: libssh
|
|
|
-Version: 0.7.3
|
|
|
-Release: 2%{?_dist_release}
|
|
|
+Version: 0.8.5
|
|
|
+Release: 1%{?_dist_release}
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
License: LGPLv2+
|
|
|
URL: http://www.libssh.org/
|
|
|
Source0: http://www.libssh.org/files/%{name}-%{version}.tar.xz
|
|
|
-# Patch0: libssh-0.2-libdir.patch
|
|
|
+Patch0: libssh-0.8.3-strict-overflow.patch
|
|
|
+
|
|
|
# security fix
|
|
|
# Nothing so far.
|
|
|
# Patch100: libssh-0.4.8-pkgconfig.patch
|
|
|
|
|
|
+Vendor: Project Vine
|
|
|
+Distribution: Vine Linux
|
|
|
+
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
BuildRequires: openssl-devel
|
|
@@ -40,9 +46,23 @@ Requires: pkgconfig
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
+%package -n compat32-%{name}
|
|
|
+Summary: A library implementing the SSH2 protocol
|
|
|
+Summary(ja): SSH2プロトコルを実装するためのライブラリ
|
|
|
+Group: System Environment/Libraries
|
|
|
+
|
|
|
+%description -n compat32-%{name}
|
|
|
+The SSH library with
|
|
|
+- Full C library functions for manipulating a client-side SSH connection
|
|
|
+- Fully configurable sessions
|
|
|
+- Support for AES-128,AES-192,AES-256,blowfish, in cbc mode
|
|
|
+- use multiple SSH connections in a same process, at same time.
|
|
|
+- usable SFTP implementation
|
|
|
+- Public key and password authentication
|
|
|
+
|
|
|
%prep
|
|
|
%setup -q
|
|
|
-# %patch100 -p0 -b .pkgconfig
|
|
|
+%patch0 -p1 -b .strict-overflow
|
|
|
|
|
|
%build
|
|
|
mkdir -p %{_target_platform}
|
|
@@ -77,8 +97,21 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
%{_includedir}/*
|
|
|
%{_libdir}/*.so
|
|
|
%{_libdir}/pkgconfig/%{name}*.pc
|
|
|
+%dir %{_libdir}/cmake/
|
|
|
+%{_libdir}/cmake/libssh/
|
|
|
+
|
|
|
+%if %{build_compat32}
|
|
|
+%files -n compat32-%{name}
|
|
|
+%{_libdir}/*.so.*
|
|
|
+%endif
|
|
|
|
|
|
%changelog
|
|
|
+* Sat Nov 03 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.8.5-1
|
|
|
+- new upstream release.
|
|
|
+- built with openssl-1.1.1.
|
|
|
+- added cmake support.
|
|
|
+- added a sub-package 'compat32-libssh'.
|
|
|
+
|
|
|
* Sat Mar 12 2016 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.7.3-2
|
|
|
- rebuilt with openssl 1.0.2g
|
|
|
|