Blame SPECS/libssh.spec

d1a70f
Name:           libssh
d1a70f
Version:        0.8.5
d1a70f
Release:        2%{?dist}
d1a70f
Summary:        A library implementing the SSH protocol
d1a70f
License:        LGPLv2+
d1a70f
URL:            http://www.libssh.org
d1a70f
d1a70f
Source0:        https://www.libssh.org/files/0.8/%{name}-%{version}.tar.xz
d1a70f
Source1:        https://www.libssh.org/files/0.8/%{name}-%{version}.tar.xz.asc
d1a70f
Source2:        https://cryptomilk.org/gpgkey-8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D.gpg#/%{name}.keyring
d1a70f
d1a70f
Patch1:         libssh-0.8.5-make-sure-both-known-hosts-ready.patch
d1a70f
Patch2:         libssh-0.8.5-ensure-ssh-session-fd-writable.patch
d1a70f
Patch3:         libssh-0.8.5-allow-msg-ext-info.patch
d1a70f
Patch4:         libssh-0.8.5-allow-kex-init.patch
d1a70f
d1a70f
BuildRequires:  cmake
d1a70f
BuildRequires:  doxygen
d1a70f
BuildRequires:  gcc-c++
d1a70f
BuildRequires:  gnupg2
d1a70f
BuildRequires:  openssl-devel
d1a70f
BuildRequires:  pkgconfig
d1a70f
BuildRequires:  zlib-devel
d1a70f
BuildRequires:  krb5-devel
d1a70f
BuildRequires:  libcmocka-devel
d1a70f
d1a70f
%ifarch aarch64 ppc64 ppc64le s390x x86_64
d1a70f
Provides: libssh_threads.so()(64bit)
d1a70f
Provides: libssh_threads.so.4()(64bit)
d1a70f
%else
d1a70f
Provides: libssh_threads.so
d1a70f
Provides: libssh_threads.so.4
d1a70f
%endif
d1a70f
d1a70f
%description
d1a70f
The ssh library was designed to be used by programmers needing a working SSH
d1a70f
implementation by the mean of a library. The complete control of the client is
d1a70f
made by the programmer. With libssh, you can remotely execute programs, transfer
d1a70f
files, use a secure and transparent tunnel for your remote programs. With its
d1a70f
Secure FTP implementation, you can play with remote files easily, without
d1a70f
third-party programs others than libcrypto (from openssl).
d1a70f
d1a70f
%package devel
d1a70f
Summary:        Development files for %{name}
d1a70f
Requires:       %{name}%{?_isa} = %{version}-%{release}
d1a70f
d1a70f
%description devel
d1a70f
The %{name}-devel package contains libraries and header files for developing
d1a70f
applications that use %{name}.
d1a70f
d1a70f
%prep
d1a70f
gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0}
d1a70f
%autosetup -p1
d1a70f
d1a70f
%build
d1a70f
if test ! -e "obj"; then
d1a70f
  mkdir obj
d1a70f
fi
d1a70f
pushd obj
d1a70f
d1a70f
%cmake .. \
d1a70f
    -DUNIT_TESTING=ON
d1a70f
d1a70f
%make_build VERBOSE=1
d1a70f
make docs
d1a70f
d1a70f
popd
d1a70f
d1a70f
%install
d1a70f
make DESTDIR=%{buildroot} install/fast -C obj
d1a70f
d1a70f
#
d1a70f
# Workaround for the removal of libssh_threads.so
d1a70f
#
d1a70f
# This will allow libraries which link against libssh_threads.so or packages
d1a70f
# requiring it to continue working.
d1a70f
#
d1a70f
pushd %{buildroot}%{_libdir}
d1a70f
for i in libssh.so.4*;
d1a70f
do
d1a70f
    _target="${i}"
d1a70f
    _link_name="${i%libssh*}libssh_threads${i##*libssh}"
d1a70f
    if [ -L "${i}" ]; then
d1a70f
        _target="$(readlink ${i})"
d1a70f
    fi
d1a70f
    ln -s "${_target}" "${_link_name}"
d1a70f
done;
d1a70f
popd
d1a70f
d1a70f
%ldconfig_scriptlets
d1a70f
d1a70f
%check
d1a70f
pushd obj
d1a70f
ctest --output-on-failure
d1a70f
popd
d1a70f
d1a70f
%files
d1a70f
%doc AUTHORS BSD ChangeLog README
d1a70f
%license COPYING
d1a70f
%{_libdir}/libssh.so.4*
d1a70f
%{_libdir}/libssh_threads.so.4*
d1a70f
d1a70f
%files devel
d1a70f
%doc obj/doc/html
d1a70f
%{_includedir}/libssh/
d1a70f
# own this to avoid dep on cmake -- rex
d1a70f
%dir  %{_libdir}/cmake/
d1a70f
%{_libdir}/cmake/libssh/
d1a70f
%{_libdir}/pkgconfig/libssh.pc
d1a70f
%{_libdir}/libssh.so
d1a70f
d1a70f
%changelog
d1a70f
* Fri Dec 14 2018 Anderson Sasaki <ansasaki@redhat.com> - 0.8.5-2
d1a70f
- Fix more regressions introduced by the fixes for CVE-2018-10933
d1a70f
d1a70f
* Thu Nov 29 2018 Anderson Sasaki <ansasaki@redhat.com> - 0.8.5-1
d1a70f
- Update to version 0.8.5
d1a70f
  * Fixed an issue where global known_hosts file was ignored (#1649321)
d1a70f
  * Fixed ssh_get_fd() to return writable file descriptor (#1649319)
d1a70f
  * Fixed regression introduced in known_hosts parsing (#1649315)
d1a70f
  * Fixed a regression which caused only the first algorithm in known_hosts to
d1a70f
    be considered (#1638790)
d1a70f
d1a70f
* Thu Nov 08 2018 Anderson Sasaki <ansasaki@redhat.com> - 0.8.3-5
d1a70f
- Fix regressions introduced by the fixes for CVE-2018-10933
d1a70f
d1a70f
* Wed Oct 17 2018 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.8.3-4
d1a70f
- Fix for authentication bypass issue in server implementation (#1639926)
d1a70f
d1a70f
* Tue Oct 02 2018 Anderson Sasaki <ansasaki@redhat.com> - 0.8.3-3
d1a70f
- Fixed errors found by static code analysis (#1602594)
d1a70f
d1a70f
* Fri Sep 21 2018 Anderson Sasaki <ansasaki@redhat.com> - 0.8.3-1
d1a70f
- Update to version 0.8.3
d1a70f
  * Added support for rsa-sha2 (#1610882)
d1a70f
  * Added support to parse private keys in openssh container format (other than
d1a70f
    ed25519) (#1622983)
d1a70f
  * Added support for diffie-hellman-group18-sha512 and
d1a70f
    diffie-hellman-group16-sha512 (#1610885)
d1a70f
  * Added ssh_get_fingerprint_hash()
d1a70f
  * Added ssh_pki_export_privkey_base64()
d1a70f
  * Added support for Match keyword in config file
d1a70f
  * Improved performance and reduced memory footprint for sftp
d1a70f
  * Fixed ecdsa publickey auth
d1a70f
  * Fixed reading a closed channel
d1a70f
  * Added support to announce posix-rename@openssh.com and hardlink@openssh.com
d1a70f
    in the sftp server
d1a70f
  * Use -fstack-protector-strong if possible (#1624135)
d1a70f
d1a70f
* Wed Aug 15 2018 Anderson Sasaki <ansasaki@redhat.com> - 0.8.1-4
d1a70f
- Fix the creation of symbolic links for libssh_threads.so.4
d1a70f
d1a70f
* Wed Aug 15 2018 Anderson Sasaki <ansasaki@redhat.com> - 0.8.1-3
d1a70f
- Add missing Provides for libssh_threads.so.4
d1a70f
d1a70f
* Tue Aug 14 2018 Anderson Sasaki <ansasaki@redhat.com> - 0.8.1-2
d1a70f
- Add Provides for libssh_threads.so to unbreak applications
d1a70f
- Fix ABIMap detection to not depend on python to build
d1a70f
d1a70f
* Mon Aug 13 2018 Andreas Schneider <asn@redhat.com> - 0.8.1-1
d1a70f
- Update to version 0.8.1
d1a70f
  https://www.libssh.org/2018/08/13/libssh-0-8-1/
d1a70f
d1a70f
* Fri Aug 10 2018 Andreas Schneider <asn@redhat.com> - 0.8.0-1
d1a70f
- Update to version 0.8.0
d1a70f
  https://www.libssh.org/2018/08/10/libssh-0-8-0/
d1a70f
d1a70f
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.5-9
d1a70f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
d1a70f
d1a70f
* Wed Mar 07 2018 Rex Dieter <rdieter@fedoraproject.org> - 0.7.5-8
d1a70f
- BR: gcc-c++, use %%make_build
d1a70f
d1a70f
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.5-7
d1a70f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
d1a70f
- Related: bug#1614611
d1a70f
d1a70f
* Thu Feb 01 2018 Andreas Schneider <asn@redhat.com> - 0.7.5-6
d1a70f
- resolves: #1540021 - Build against OpenSSL 1.1
d1a70f
d1a70f
* Wed Jan 31 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.7.5-5
d1a70f
- Switch to %%ldconfig_scriptlets
d1a70f
d1a70f
* Fri Dec 29 2017 Andreas Schneider <asn@redhat.com> - 0.7.5-4
d1a70f
- Fix parsing ssh_config
d1a70f
d1a70f
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.5-3
d1a70f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
d1a70f
d1a70f
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.5-2
d1a70f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d1a70f
d1a70f
* Wed Apr 26 2017 Peter Robinson <pbrobinson@fedoraproject.org> 0.7.5-1
d1a70f
- Update to version 0.7.5
d1a70f
d1a70f
* Sat Mar 11 2017 Rex Dieter <rdieter@fedoraproject.org> - 0.7.4-2
d1a70f
- BR: compat-openssl10-devel (f26+, #1423088)
d1a70f
- use %%license
d1a70f
- -devel: drop hardcoded pkgconfig dep (let autodeps handle it)
d1a70f
- %%files: track library sonames, simplify -devel
d1a70f
- %%install: use 'install/fast' target
d1a70f
- .spec cosmetics, drop deprecated %%clean section
d1a70f
d1a70f
* Wed Feb 08 2017 Andreas Schneider <asn@redhat.com> - 0.7.4-1
d1a70f
- Update to version 0.7.4
d1a70f
  * Added id_ed25519 to the default identity list
d1a70f
  * Fixed sftp EOF packet handling
d1a70f
  * Fixed ssh_send_banner() to confirm with RFC 4253
d1a70f
  * Fixed some memory leaks
d1a70f
- resolves: #1419007
d1a70f
d1a70f
* Wed Feb 24 2016 Andreas Schneider <asn@redhat.com> - 0.7.3-1
d1a70f
- resolves: #1311259 - Fix CVE-2016-0739
d1a70f
- resolves: #1311332 - Update to version 0.7.3
d1a70f
  * Fixed CVE-2016-0739
d1a70f
  * Fixed ssh-agent on big endian
d1a70f
  * Fixed some documentation issues
d1a70f
- Enabled GSSAPI support
d1a70f
d1a70f
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2-3
d1a70f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
d1a70f
d1a70f
* Thu Oct 22 2015 Andreas Schneider <asn@redhat.com> - 0.7.2-2
d1a70f
- resolves: #1271230 - Fix ssh-agent support on big endian
d1a70f
d1a70f
* Wed Sep 30 2015 Andreas Schneider <asn@redhat.com> - 0.7.2-1
d1a70f
- Update to version 0.7.2
d1a70f
  * Fixed OpenSSL detection on Windows
d1a70f
  * Fixed return status for ssh_userauth_agent()
d1a70f
  * Fixed KEX to prefer hmac-sha2-256
d1a70f
  * Fixed sftp packet handling
d1a70f
  * Fixed return values of ssh_key_is_(public|private)
d1a70f
  * Fixed bug in global success reply
d1a70f
- resolves: #1267346
d1a70f
d1a70f
* Tue Jun 30 2015 Andreas Schneider <asn@redhat.com> - 0.7.1-1
d1a70f
- Update to version 0.7.1
d1a70f
  * Fixed SSH_AUTH_PARTIAL auth with auto public key
d1a70f
  * Fixed memory leak in session options
d1a70f
  * Fixed allocation of ed25519 public keys
d1a70f
  * Fixed channel exit-status and exit-signal
d1a70f
  * Reintroduce ssh_forward_listen()
d1a70f
d1a70f
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-3
d1a70f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d1a70f
d1a70f
* Thu May 21 2015 Orion Poplawski <orion@cora.nwra.com> - 0.7.0-2
d1a70f
- Add patch to fix undefined symbol: ssh_forward_listen (bug #1221310)
d1a70f
d1a70f
* Mon May 11 2015 Andreas Schneider <asn@redhat.com> - 0.7.0-1
d1a70f
- Update to version 0.7.0
d1a70f
  * Added support for ed25519 keys
d1a70f
  * Added SHA2 algorithms for HMAC
d1a70f
  * Added improved and more secure buffer handling code
d1a70f
  * Added callback for auth_none_function
d1a70f
  * Added support for ECDSA private key signing
d1a70f
  * Added more tests
d1a70f
  * Fixed a lot of bugs
d1a70f
  * Improved API documentation
d1a70f
d1a70f
* Thu Apr 30 2015 Andreas Schneider <asn@redhat.com> - 0.6.5-1
d1a70f
- resolves: #1213775 - Security fix for CVE-2015-3146
d1a70f
- resolves: #1218076 - Security fix for CVE-2015-3146
d1a70f
d1a70f
* Fri Dec 19 2014 - Andreas Schneider <asn@redhat.com> - 0.6.4-1
d1a70f
- Security fix for CVE-2014-8132.
d1a70f
d1a70f
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-3
d1a70f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
d1a70f
d1a70f
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-2
d1a70f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
d1a70f
d1a70f
* Tue Mar 04 2014 - Andreas Schneider <asn@redhat.com> - 0.6.3-1
d1a70f
- Fix CVE-2014-0017.
d1a70f
d1a70f
* Mon Feb 10 2014 - Andreas Schneider <asn@redhat.com> - 0.6.1-1
d1a70f
- Update to version 0.6.1.
d1a70f
- resolves: #1056757 - Fix scp mode.
d1a70f
- resolves: #1053305 - Fix known_hosts heuristic.
d1a70f
d1a70f
* Wed Jan 08 2014 - Andreas Schneider <asn@redhat.com> - 0.6.0-1
d1a70f
- Update to 0.6.0
d1a70f
d1a70f
* Fri Jul 26 2013 - Andreas Schneider <asn@redhat.com> - 0.5.5-1
d1a70f
- Update to 0.5.5.
d1a70f
- Clenup the spec file.
d1a70f
d1a70f
* Thu Jul 18 2013 Simone Caronni <negativo17@gmail.com> - 0.5.4-5
d1a70f
- Add EPEL 5 support.
d1a70f
- Add Debian patches to enable Doxygen documentation.
d1a70f
d1a70f
* Tue Jul 16 2013 Simone Caronni <negativo17@gmail.com> - 0.5.4-4
d1a70f
- Add patch for #982685.
d1a70f
d1a70f
* Mon Jun 10 2013 Simone Caronni <negativo17@gmail.com> - 0.5.4-3
d1a70f
- Clean up SPEC file and fix rpmlint complaints.
d1a70f
d1a70f
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-2
d1a70f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
d1a70f
d1a70f
* Wed Jan 23 2013 Petr Lautrbach <plautrba@redhat.com> 0.5.4-1
d1a70f
- update to security 0.5.4 release
d1a70f
- CVE-2013-0176 (#894407)
d1a70f
d1a70f
* Tue Nov 20 2012 Petr Lautrbach <plautrba@redhat.com> 0.5.3-1
d1a70f
- update to security 0.5.3 release (#878465)
d1a70f
d1a70f
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-2
d1a70f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
d1a70f
d1a70f
* Thu Feb 02 2012 Petr Lautrbach <plautrba@redhat.com> 0.5.2-1
d1a70f
- update to 0.5.2 version (#730270)
d1a70f
d1a70f
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-2
d1a70f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
d1a70f
d1a70f
* Wed Jun  1 2011 Jan F. Chadima <jchadima@redhat.com> - 0.5.0-1
d1a70f
- bounce versionn to 0.5.0 (#709785)
d1a70f
- the support for protocol v1 is disabled
d1a70f
d1a70f
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.8-2
d1a70f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
d1a70f
d1a70f
* Wed Jan 19 2011 Jan F. Chadima <jchadima@redhat.com> - 0.4.8-1
d1a70f
- bounce versionn to 0.4.8 (#670456)
d1a70f
d1a70f
* Mon Sep  6 2010 Jan F. Chadima <jchadima@redhat.com> - 0.4.6-1
d1a70f
- bounce versionn to 0.4.6 (#630602)
d1a70f
d1a70f
* Thu Jun  3 2010 Jan F. Chadima <jchadima@redhat.com> - 0.4.4-1
d1a70f
- bounce versionn to 0.4.4 (#598592)
d1a70f
d1a70f
* Wed May 19 2010 Jan F. Chadima <jchadima@redhat.com> - 0.4.3-1
d1a70f
- bounce versionn to 0.4.3 (#593288)
d1a70f
d1a70f
* Tue Mar 16 2010 Jan F. Chadima <jchadima@redhat.com> - 0.4.2-1
d1a70f
- bounce versionn to 0.4.2 (#573972)
d1a70f
d1a70f
* Tue Feb 16 2010 Jan F. Chadima <jchadima@redhat.com> - 0.4.1-1
d1a70f
- bounce versionn to 0.4.1 (#565870)
d1a70f
d1a70f
* Fri Dec 11 2009 Jan F. Chadima <jchadima@redhat.com> - 0.4.0-1
d1a70f
- bounce versionn to 0.4.0 (#541010)
d1a70f
d1a70f
* Thu Nov 26 2009 Jan F. Chadima <jchadima@redhat.com> - 0.3.92-2
d1a70f
- typo in spec file
d1a70f
d1a70f
* Thu Nov 26 2009 Jan F. Chadima <jchadima@redhat.com> - 0.3.92-1
d1a70f
- bounce versionn to 0.3.92 (0.4 beta2) (#541010)
d1a70f
d1a70f
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 0.2-4
d1a70f
- rebuilt with new openssl
d1a70f
d1a70f
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-3
d1a70f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
d1a70f
d1a70f
* Tue Jun 02 2009 Jan F. Chadima <jchadima@redhat.com> - 0.2-2
d1a70f
- Small changes during review
d1a70f
d1a70f
* Mon Jun 01 2009 Jan F. Chadima <jchadima@redhat.com> - 0.2-1
d1a70f
- Initial build
d1a70f