Package libssh2: Specfile

Name: libssh2
Version: 1.9.0
Release: alt2

Summary: A library implementing the SSH2 protocol
Group: Networking/Remote access
License: BSD
Url: http://www.libssh2.org/
# Git-VCS: https://github.com/libssh2/libssh2.git 
Source: %name-%version.tar

Patch1: CVE-2019-17498.patch

BuildRequires: openssl-devel zlib-devel man

%description
libssh2 is a library implementing the SSH2 protocol as defined by
Internet Drafts: SECSH-TRANS(22), SECSH-USERAUTH(25),
SECSH-CONNECTION(23), SECSH-ARCH(20), SECSH-FILEXFER(06)*,
SECSH-DHGEX(04), and SECSH-NUMBERS(10).

%package devel
Summary: Development files for %name
Group: Development/C
Requires: %name = %version-%release

%description devel
This package contains libraries and header files for
developing applications that use %name.

%package docs
Summary: Documentation for %name
Group: Development/C
BuildArch: noarch
Requires: %name = %version-%release

%description docs
This package contains manual pages and examples for
developing applications that use %name.

%prep
%setup
%patch1 -p1

%build
# set version
./maketgz %version only
#autoreconf
./buildconf
%configure --disable-static --enable-shared
%make_build

%install
%makeinstall_std

%check
%make_build -k check

%files
%doc docs/AUTHORS README RELEASE-NOTES COPYING
%_libdir/*.so.*

%files docs
%doc docs/BINDINGS docs/HACKING docs/TODO
%_man3dir/*.3*

%files devel
%_includedir/*
%_libdir/*.so
%_pkgconfigdir/*.pc

%changelog
* Fri Oct 02 2020 Aleksei Nikiforov <darktemplar@altlinux.org> 1.9.0-alt2
- Applied security fixes from upstream (Fixes: CVE-2019-17498).

* Wed Jul 17 2019 Alexey Shabalin <shaba@altlinux.org> 1.9.0-alt1
- 1.9.0

* Wed Apr 03 2019 Alexey Shabalin <shaba@altlinux.org> 1.8.2-alt1
- 1.8.2

* Sun Mar 24 2019 Alexey Shabalin <shaba@altlinux.org> 1.8.1-alt1
- 1.8.1
- Fixes for the following security vulnerabilities:
  + Fixed possible integer overflow when reading a specially crafted packet
    (CVE-2019-3855)
  + Fixed possible integer overflow in userauth_keyboard_interactive with a
    number of extremely long prompt strings (CVE-2019-3863)
  + Fixed possible integer overflow if the server sent an extremely large
    number of keyboard prompts (CVE-2019-3856)
  + Fixed possible out of bounds read when processing a specially crafted
    packet (CVE-2019-3861)
  + Fixed possible integer overflow when receiving a specially crafted exit
    signal message channel packet (CVE-2019-3857)
  + Fixed possible out of bounds read when receiving a specially crafted exit
    status message channel packet (CVE-2019-3862)
  + Fixed possible zero byte allocation when reading a specially crafted SFTP
    packet (CVE-2019-3858)
  + Fixed possible out of bounds reads when processing specially crafted SFTP
    packets (CVE-2019-3860)
  + Fixed possible out of bounds reads in _libssh2_packet_require(v)
    (CVE-2019-3859)

* Fri Aug 31 2018 Alexey Shabalin <shaba@altlinux.org> 1.8.0-alt1
- 1.8.0
- build with openssl-1.1

* Wed Nov 25 2015 Anton V. Boyarshinov <boyarsh@altlinux.org> 1.4.3-alt2
- CVE-2015-1782 fixed

* Mon Dec 03 2012 Slava Dubrovskiy <dubrsl@altlinux.org> 1.4.3-alt1
- New version

* Mon Jun 11 2012 Slava Dubrovskiy <dubrsl@altlinux.org> 1.4.2-alt1
- New version

* Fri Feb 03 2012 Slava Dubrovskiy <dubrsl@altlinux.org> 1.4.0-alt1
- New version

* Thu Sep 29 2011 Slava Dubrovskiy <dubrsl@altlinux.org> 1.3.0-alt1
- New version

* Sat Sep 03 2011 Slava Dubrovskiy <dubrsl@altlinux.org> 1.2.9-alt1
- New version
- Remove configure-fix-VERSION.patch (in upstream)

* Wed Apr 27 2011 Slava Dubrovskiy <dubrsl@altlinux.org> 1.2.8-alt1
- New version
- Add configure-fix-VERSION.patch

* Wed Mar 09 2011 Dmitry V. Levin <ldv@altlinux.org> 1.2.7-alt3
- Rebuilt for soname set-versions and debuginfo.

* Fri Oct 01 2010 Dmitry V. Levin <ldv@altlinux.org> 1.2.7-alt2
- Fixed packaging of documentation.
- Enabled SMP build support.
- Moved test suite to %%check.
- Uncompressed tarball.
- Cleaned up specfile.
- Built with libcrypto.so.10.

* Sun Sep 26 2010 Slava Dubrovskiy <dubrsl@altlinux.org> 1.2.7-alt1
- New version

* Tue Aug 03 2010 Slava Dubrovskiy <dubrsl@altlinux.org> 1.2.6-alt1
- New version

* Thu Feb 11 2010 Slava Dubrovskiy <dubrsl@altlinux.org> 1.2.3-alt1
- New version

* Sat Sep 12 2009 Slava Dubrovskiy <dubrsl@altlinux.org> 1.2-alt1
- New version

* Wed May 27 2009 Slava Dubrovskiy <dubrsl@altlinux.ru> 1.1-alt1
- Build for ALT