2008-11-10 04:39:06 +01:00
|
|
|
#
|
2011-09-06 15:35:39 +02:00
|
|
|
# spec file for package libssh
|
2008-11-10 04:39:06 +01:00
|
|
|
#
|
2017-02-11 01:35:29 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2008-11-10 04:39:06 +01:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2014-12-19 10:59:54 +01:00
|
|
|
Name: libssh
|
2017-02-11 01:35:29 +01:00
|
|
|
Version: 0.7.4
|
2014-01-09 15:30:13 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: The SSH library
|
2012-02-10 17:17:24 +01:00
|
|
|
License: LGPL-2.1+
|
2016-12-11 13:24:59 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2014-12-19 10:59:54 +01:00
|
|
|
Url: https://www.libssh.org
|
2015-07-23 15:22:10 +02:00
|
|
|
# Dynamic number: https://red.libssh.org/projects/libssh/files
|
2015-05-07 09:20:13 +02:00
|
|
|
Source0: %{name}-%{version}.tar.xz
|
2015-01-22 08:50:46 +01:00
|
|
|
Source99: baselibs.conf
|
2015-07-23 15:22:10 +02:00
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: krb5-devel
|
|
|
|
BuildRequires: libcmocka-devel
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: xz
|
2008-11-10 04:39:06 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
2016-12-11 13:24:59 +01:00
|
|
|
An SSH implementation in the form of a library. With libssh, you can
|
|
|
|
remotely execute programs, transfer files, use a secure and
|
|
|
|
transparent tunnel for your remote programs. It supports SFTP as
|
|
|
|
well.
|
2008-11-10 04:39:06 +01:00
|
|
|
|
2009-08-07 22:29:29 +02:00
|
|
|
This package provides libssh from http://www.libssh.org that should not
|
2008-11-10 04:39:06 +01:00
|
|
|
be confused with libssh2 available from http://www.libssh2.org (libssh2
|
|
|
|
package)
|
|
|
|
|
2009-12-20 20:40:00 +01:00
|
|
|
%package -n libssh4
|
2008-11-10 04:39:06 +01:00
|
|
|
Summary: SSH library
|
2012-02-10 17:17:24 +01:00
|
|
|
Group: System/Libraries
|
2008-11-10 04:39:06 +01:00
|
|
|
|
2009-12-20 20:40:00 +01:00
|
|
|
%description -n libssh4
|
2016-12-11 13:24:59 +01:00
|
|
|
An SSH implementation in the form of a library. With libssh, you can
|
|
|
|
remotely execute programs, transfer files, use a secure and
|
|
|
|
transparent tunnel for your remote programs. It supports SFTP as
|
|
|
|
well.
|
2008-11-10 04:39:06 +01:00
|
|
|
|
2009-08-07 22:29:29 +02:00
|
|
|
This package provides libssh from http://www.libssh.org that should not
|
2008-11-10 04:39:06 +01:00
|
|
|
be confused with libssh2 available from http://www.libssh2.org (libssh2
|
|
|
|
package)
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: SSH library development headers
|
2012-02-10 17:17:24 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2014-12-19 10:59:54 +01:00
|
|
|
Requires: cmake
|
2009-12-20 20:40:00 +01:00
|
|
|
Requires: libssh4 = %{version}
|
2008-11-10 04:39:06 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development headers for the SSH library.
|
|
|
|
|
|
|
|
%package devel-doc
|
2016-12-11 13:24:59 +01:00
|
|
|
Summary: SSH library API documentation
|
|
|
|
Group: Documentation/HTML
|
2008-11-10 04:39:06 +01:00
|
|
|
|
|
|
|
%description devel-doc
|
|
|
|
Documentation for libssh development.
|
|
|
|
|
|
|
|
%prep
|
2015-07-23 15:22:10 +02:00
|
|
|
%setup -q
|
2008-11-10 04:39:06 +01:00
|
|
|
|
|
|
|
%build
|
2015-07-23 15:22:10 +02:00
|
|
|
%cmake \
|
|
|
|
-DCMAKE_C_FLAGS:STRING="%{optflags} -DOPENSSL_LOAD_CONF" \
|
|
|
|
-DWITH_CLIENT_TESTING="OFF" \
|
|
|
|
-DWITH_TESTING="ON" \
|
|
|
|
-DWITH_GSSAPI=ON \
|
|
|
|
-DWITH_BENCHMARKS="OFF" \
|
|
|
|
-DWITH_EXAMPLES="OFF"
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
make %{?_smp_mflags} doc
|
2008-11-10 04:39:06 +01:00
|
|
|
|
|
|
|
%install
|
2015-07-23 15:22:10 +02:00
|
|
|
%cmake_install
|
|
|
|
|
|
|
|
# remove the static libs, we don't want them installed, needed by tests
|
|
|
|
rm -rf %{buildroot}%{_libdir}/*.a
|
|
|
|
|
|
|
|
%check
|
|
|
|
cd build
|
|
|
|
make %{?_smp_mflags} test || {
|
|
|
|
cat Testing/Temporary/LastTest.log;
|
|
|
|
exit 1;
|
|
|
|
}
|
2009-05-28 04:22:38 +02:00
|
|
|
|
2012-02-10 17:17:24 +01:00
|
|
|
%post -n libssh4 -p /sbin/ldconfig
|
2008-11-10 04:39:06 +01:00
|
|
|
|
2012-02-10 17:17:24 +01:00
|
|
|
%postun -n libssh4 -p /sbin/ldconfig
|
2008-11-10 04:39:06 +01:00
|
|
|
|
2009-12-20 20:40:00 +01:00
|
|
|
%files -n libssh4
|
2008-11-10 04:39:06 +01:00
|
|
|
%defattr(-,root,root)
|
2009-05-28 04:22:38 +02:00
|
|
|
%doc AUTHORS README ChangeLog
|
2008-11-10 04:39:06 +01:00
|
|
|
%{_libdir}/libssh.so.*
|
2011-06-10 14:59:40 +02:00
|
|
|
%{_libdir}/libssh_threads.so.*
|
2008-11-10 04:39:06 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2009-05-28 04:22:38 +02:00
|
|
|
%{_includedir}/libssh
|
2008-11-10 04:39:06 +01:00
|
|
|
%{_libdir}/libssh.so
|
2011-06-10 14:59:40 +02:00
|
|
|
%{_libdir}/libssh_threads.so
|
|
|
|
%{_libdir}/pkgconfig/libssh.pc
|
2011-09-06 15:35:33 +02:00
|
|
|
%{_libdir}/pkgconfig/libssh_threads.pc
|
2014-12-19 10:59:54 +01:00
|
|
|
%dir %{_libdir}/cmake/libssh
|
|
|
|
%{_libdir}/cmake/libssh/libssh-config.cmake
|
|
|
|
%{_libdir}/cmake/libssh/libssh-config-version.cmake
|
2008-11-10 04:39:06 +01:00
|
|
|
|
|
|
|
%files devel-doc
|
|
|
|
%defattr(-,root,root)
|
2009-05-28 04:22:38 +02:00
|
|
|
%doc build/doc/html
|
2008-11-10 04:39:06 +01:00
|
|
|
|
|
|
|
%changelog
|