Summary: libssh2 is a library implementing the SSH2 protocol. Name: libssh2 Version: 1.8.0 Release: 2%{?dist} License: BSD URL: https://www.libssh2.org/ Group: System Environment/NetworkingLibraries Vendor: VMware, Inc. Distribution: Photon Source0: https://www.libssh2.org/download/libssh2-%{version}.tar.gz %define sha1 libssh2=baf2d1fb338eee531ba9b6b121c64235e089e0f5 Patch0: CVE-2019-3855.patch BuildRequires: openssl-devel BuildRequires: zlib-devel Requires: openssl Requires: zlib %description libssh2 is a client-side C library implementing the SSH2 protocol. %package devel Summary: Header files for libssh2 Group: System Environment/NetworkingLibraries Requires: libssh2 %description devel These are the header files of libssh2. %prep %setup -q %patch0 -p1 %build %configure --disable-static \ --enable-shared make %install make DESTDIR=%{buildroot} install find %{buildroot} -name '*.la' -exec rm -f {} ';' %files %defattr(-,root,root) %{_libdir}/libssh2.so.* %files devel %defattr(-,root,root) %{_includedir}/* %{_libdir}/libssh2.so %{_libdir}/pkgconfig/* %{_mandir}/man3/* %changelog * Thu Mar 28 2019 Tapas Kundu 1.8.0-2 - Fix for CVE-2019-3855 * Wed Nov 30 2016 Xiaolin Li 1.8.0-1 - Add libssh2 1.8.0 package.