libssh/libssh.spec

135 lines
3.3 KiB
RPMSpec
Raw Normal View History

2019-09-30 10:58:15 -04:00
Name: libssh
2020-07-27 17:48:00 +08:00
Version: 0.9.4
Release: 2
2019-09-30 10:58:15 -04:00
Summary: A library implementing the SSH protocol
License: LGPLv2+
2020-07-27 17:48:00 +08:00
URL: http://www.libssh.org
Source0: https://www.libssh.org/files/0.9/%{name}-%{version}.tar.xz
Source1: https://www.libssh.org/files/0.9/%{name}-%{version}.tar.xz.asc
Source2: https://cryptomilk.org/gpgkey-8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D.gpg#/%{name}.keyring
Patch1: libssh-0.9.4-fix-version.patch
Patch2: CVE-2020-16135-1.patch
Patch3: CVE-2020-16135-2.patch
Patch4: CVE-2020-16135-3.patch
Patch5: CVE-2020-16135-4.patch
2020-07-27 17:48:00 +08:00
BuildRequires: cmake gcc-c++ gnupg2 openssl-devel pkgconfig zlib-devel
BuildRequires: krb5-devel libcmocka-devel openssh-clients openssh-server
2020-07-29 15:39:36 +08:00
BuildRequires: nmap-ncat libssh
2020-07-27 17:48:00 +08:00
Recommends: crypto-policies
2019-09-30 10:58:15 -04:00
Provides: libssh_threads.so.4()(64bit)
%description
The ssh library was designed to be used by programmers needing a working SSH
implementation by the mean of a library. The complete control of the client is
made by the programmer. With libssh, you can remotely execute programs, transfer
files, use a secure and transparent tunnel for your remote programs. With its
Secure FTP implementation, you can play with remote files easily, without
third-party programs others than libcrypto (from openssl).
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for developing
applications that use %{name}.
%package_help
%prep
gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0}
%autosetup -p1
%build
if test ! -e "obj"; then
mkdir obj
fi
pushd obj
%cmake .. \
2020-07-27 17:48:00 +08:00
-DUNIT_TESTING=ON \
2019-09-30 10:58:15 -04:00
%make_build VERBOSE=1
popd
%install
make DESTDIR=%{buildroot} install/fast -C obj
2020-07-27 17:48:00 +08:00
install -d -m755 %{buildroot}%{_sysconfdir}/libssh
2019-09-30 10:58:15 -04:00
pushd %{buildroot}%{_libdir}
for i in libssh.so*;
do
_target="${i}"
_link_name="${i%libssh*}libssh_threads${i##*libssh}"
if [ -L "${i}" ]; then
_target="$(readlink ${i})"
fi
ln -s "${_target}" "${_link_name}"
done;
popd
2020-07-29 15:39:36 +08:00
cp -p %{_libdir}/{libssh,libssh_threads}.so.4.7.0 %{buildroot}%{_libdir}/
2019-09-30 10:58:15 -04:00
%ldconfig_scriptlets
%check
pushd obj
ctest --output-on-failure
popd
%files
%defattr(-,root,root)
%doc AUTHORS BSD
%license COPYING
%{_libdir}/*.so.4*
%files devel
%defattr(-,root,root)
%{_includedir}/libssh/
%{_libdir}/cmake/libssh/
2020-07-27 17:48:00 +08:00
%{_libdir}/pkgconfig/libssh.pc
2019-09-30 10:58:15 -04:00
%{_libdir}/*.so
%files help
%defattr(-,root,root)
2020-07-27 17:48:00 +08:00
%doc ChangeLog README
2019-09-30 10:58:15 -04:00
%changelog
* Thu Aug 6 2020 zhaowei <zhaowei23@huawei.com> - 0.9.4-2
- Type:CVE
- Id:CVE-2020-16135
- SUG:NA
- DESC:fix CVE-2020-16135
2020-07-27 17:48:00 +08:00
* Mon Apr 20 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.9.4-1
- Type:bugfix
- Id:NA
2020-04-17 15:38:42 +08:00
- SUG:NA
2020-07-27 17:48:00 +08:00
- DESC:update to 0.9.4
2020-04-17 15:38:42 +08:00
2020-01-12 18:11:21 +08:00
* Sun Jan 12 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.8.3-7
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:bugfix in build process
2020-01-12 12:31:39 +08:00
* Sun Jan 12 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.8.3-6
- Type:bugfix
- Id:NA
- SUG:NA
- DESC: fixes cves
2019-12-25 15:55:06 +08:00
* Sat Dec 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.8.3-5
- Type:bugfix
- Id:NA
- SUG:NA
- DESC: fixes the oss fuzz bug
2019-09-30 10:58:15 -04:00
* Thu Sep 12 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.8.3-4
- Package init