db8591d418
- Ensure pkgconfig symbols are provided - Remove redundant tags/sections per specfile guideline suggestions - Parallel building using %_smp_mflags - Make pkgconfig provides available - Add patch to work around compilation problems on SLES11SP1 - Update to version 0.5.2 * Increased window size x10. * Fixed SSHv1. * Fixed bugged lists. * Fixed use-after-free + inconsistent callbacks call in poll. * Fixed scp documentation. * Fixed possible infinite loop in channel_read(). * Fixed handling of short reads of sftp_async_read(). * Fixed handling request service timeout in blocking mode. * Fixed ssh_auth_list() documentation. * Fixed incorrect return values in ssh_channel_write(). * Fixed an infinite loop in the termination callback. * Fixed handling of SSH_AGAIN in channel_open(). * Fixed "status -5 inflating zlib packet" OBS-URL: https://build.opensuse.org/request/show/103121 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libssh?expand=0&rev=22
138 lines
3.8 KiB
RPMSpec
138 lines
3.8 KiB
RPMSpec
#
|
|
# spec file for package libssh
|
|
#
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Url: http://www.libssh.org
|
|
|
|
Name: libssh
|
|
BuildRequires: cmake
|
|
BuildRequires: doxygen
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: openssl-devel
|
|
BuildRequires: pkgconfig
|
|
Version: 0.5.2
|
|
Release: 0
|
|
Summary: SSH library
|
|
License: LGPL-2.1+
|
|
Group: System/Libraries
|
|
Source0: %{name}-%{version}.tar.bz2
|
|
Patch1: remove-pedantic-errors.diff
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%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).
|
|
|
|
This package provides libssh from http://www.libssh.org that should not
|
|
be confused with libssh2 available from http://www.libssh2.org (libssh2
|
|
package)
|
|
|
|
%package -n libssh4
|
|
Summary: SSH library
|
|
Group: System/Libraries
|
|
|
|
%description -n libssh4
|
|
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).
|
|
|
|
This package provides libssh from http://www.libssh.org that should not
|
|
be confused with libssh2 available from http://www.libssh2.org (libssh2
|
|
package)
|
|
|
|
%package devel
|
|
Summary: SSH library development headers
|
|
Group: Development/Libraries/C and C++
|
|
Requires: libssh4 = %{version}
|
|
|
|
%description devel
|
|
Development headers for the SSH library.
|
|
|
|
%package devel-doc
|
|
Summary: SSH library api documentation
|
|
Group: Development/Languages/C and C++
|
|
|
|
%description devel-doc
|
|
Documentation for libssh development.
|
|
|
|
%prep
|
|
%setup -q
|
|
%if "%{?sles_version}" == "11"
|
|
%patch -P 1 -p1
|
|
%endif
|
|
|
|
%build
|
|
if test ! -e "build"; then
|
|
mkdir build
|
|
fi
|
|
pushd build
|
|
cmake \
|
|
-DCMAKE_C_FLAGS:STRING="%{optflags} -DOPENSSL_LOAD_CONF" \
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
-DCMAKE_SKIP_RPATH=ON \
|
|
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
|
%if %{_lib} == lib64
|
|
-DLIB_SUFFIX=64 \
|
|
%endif
|
|
%{_builddir}/%{name}-%{version}
|
|
|
|
make %{?_smp_mflags} VERBOSE=1
|
|
%__make doc
|
|
popd build
|
|
|
|
%install
|
|
pushd build
|
|
%if 0%{?suse_version}
|
|
%makeinstall
|
|
%else
|
|
%__make DESTDIR=%{buildroot} install
|
|
%endif
|
|
popd build
|
|
|
|
%post -n libssh4 -p /sbin/ldconfig
|
|
|
|
%postun -n libssh4 -p /sbin/ldconfig
|
|
|
|
%files -n libssh4
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS README ChangeLog
|
|
%{_libdir}/libssh.so.*
|
|
%{_libdir}/libssh_threads.so.*
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_includedir}/libssh
|
|
%{_libdir}/libssh.so
|
|
%{_libdir}/libssh_threads.so
|
|
%{_libdir}/pkgconfig/libssh.pc
|
|
%{_libdir}/pkgconfig/libssh_threads.pc
|
|
|
|
%files devel-doc
|
|
%defattr(-,root,root)
|
|
%doc build/doc/html
|
|
|
|
%changelog
|