Projects
home:pandora:RobinOS23
libssh
_service:download_src_package:libssh.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:download_src_package:libssh.spec of Package libssh
%define anolis_release 2 Name: libssh Version: 0.10.4 Release: %{anolis_release}%{?dist} Summary: A library implementing the SSH protocol License: LGPLv2+ 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 Source3: libssh_client.config Source4: libssh_server.config BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: gnupg2 BuildRequires: openssl-devel BuildRequires: pkgconfig BuildRequires: zlib-devel BuildRequires: krb5-devel BuildRequires: libcmocka-devel BuildRequires: pam_wrapper BuildRequires: socket_wrapper BuildRequires: nss_wrapper BuildRequires: uid_wrapper BuildRequires: openssh-clients BuildRequires: openssh-server BuildRequires: nmap-ncat Requires: %{name}-config = %{version}-%{release} Recommends: crypto-policies 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 doc Summary: Documentation files for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc The %{name}-doc package contains documentation files for %{name}. %package devel Summary: Development files for %{name} Requires: %{name} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %package config Summary: Configuration files for %{name} BuildArch: noarch Obsoletes: %{name} < 0.9.0 %description config The %{name}-config package provides the default configuration files for %{name}. %prep gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0} %autosetup -p1 %build %cmake \ -DUNIT_TESTING=ON \ -DCLIENT_TESTING=ON \ -DSERVER_TESTING=ON \ -DGLOBAL_CLIENT_CONFIG="%{_sysconfdir}/libssh/libssh_client.config" \ -DGLOBAL_BIND_CONFIG="%{_sysconfdir}/libssh/libssh_server.config" %cmake_build %install %cmake_install install -d -m755 %{buildroot}%{_sysconfdir}/libssh install -m644 %{SOURCE3} %{buildroot}%{_sysconfdir}/libssh/libssh_client.config install -m644 %{SOURCE4} %{buildroot}%{_sysconfdir}/libssh/libssh_server.config # # Workaround for the removal of libssh_threads.so # # This will allow libraries which link against libssh_threads.so or packages # requiring it to continue working. # 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 %generate_compatibility_deps %ldconfig_scriptlets %check # Tests are randomly failing when run in parallel %global _smp_build_ncpus 1 # https://gitlab.com/libssh/libssh-mirror/-/issues/107 # The torture_auth tests currently fail when run against OpenSSH 8.8 %ctest -- -E torture_auth %files %dir %{abidir} %doc BSD %license COPYING %{_libdir}/libssh.so.4* %{_libdir}/libssh_threads.so.4* %{abidir}/libssh*.dump %files doc %doc AUTHORS CHANGELOG README %files devel %{_includedir}/libssh/ # own this to avoid dep on cmake -- rex %dir %{_libdir}/cmake/ %{_libdir}/cmake/libssh/ %{_libdir}/pkgconfig/libssh.pc %{_libdir}/libssh.so %{_libdir}/libssh_threads.so %files config %attr(0755,root,root) %dir %{_sysconfdir}/libssh %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/libssh/libssh_client.config %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/libssh/libssh_server.config %changelog * Thu Oct 20 2022 mgb01105731 <mgb01105731@alibaba-inc.com> - 0.10.4-2 - optimise spec file * Mon Sep 19 2022 mgb01105731 <mgb01105731@alibaba-inc.com> - 0.10.4-1 - update to 0.10.4 * Fri Mar 04 2022 mgb01105731 <mgb01105731@alibaba-inc.com> - 0.9.6-2.1 - Init from upstream verison 0.9.6-2
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2