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
|
|
|
#
|
2013-03-08 09:22:02 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2009-08-07 22:29:29 +02:00
|
|
|
Url: http://www.libssh.org
|
2008-11-10 04:39:06 +01:00
|
|
|
|
|
|
|
Name: libssh
|
2012-02-10 17:17:24 +01:00
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: pkgconfig
|
2013-07-30 11:40:34 +02:00
|
|
|
BuildRequires: xz
|
2013-12-19 21:38:33 +01:00
|
|
|
Version: 0.5.90
|
|
|
|
Release: 0.1.rc1
|
2008-11-10 04:39:06 +01:00
|
|
|
Summary: SSH library
|
2012-02-10 17:17:24 +01:00
|
|
|
License: LGPL-2.1+
|
|
|
|
Group: System/Libraries
|
2013-07-30 11:40:34 +02:00
|
|
|
Source0: %{name}-%{version}.tar.xz
|
2008-11-10 04:39:06 +01:00
|
|
|
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).
|
|
|
|
|
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
|
2008-11-10 04:39:06 +01:00
|
|
|
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).
|
|
|
|
|
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++
|
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
|
|
|
|
Summary: SSH library api documentation
|
2012-02-10 17:17:24 +01:00
|
|
|
Group: Development/Languages/C and C++
|
2008-11-10 04:39:06 +01:00
|
|
|
|
|
|
|
%description devel-doc
|
|
|
|
Documentation for libssh development.
|
|
|
|
|
|
|
|
%prep
|
2013-12-19 21:38:33 +01:00
|
|
|
%setup -q -n %{name}-%{version}
|
2008-11-10 04:39:06 +01:00
|
|
|
|
|
|
|
%build
|
2009-05-28 04:22:38 +02:00
|
|
|
if test ! -e "build"; then
|
|
|
|
mkdir build
|
|
|
|
fi
|
|
|
|
pushd build
|
|
|
|
cmake \
|
2011-09-06 15:35:33 +02:00
|
|
|
-DCMAKE_C_FLAGS:STRING="%{optflags} -DOPENSSL_LOAD_CONF" \
|
2009-05-28 04:22:38 +02:00
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
|
-DCMAKE_SKIP_RPATH=ON \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
|
|
|
%if %{_lib} == lib64
|
|
|
|
-DLIB_SUFFIX=64 \
|
|
|
|
%endif
|
|
|
|
%{_builddir}/%{name}-%{version}
|
2010-04-03 00:13:03 +02:00
|
|
|
|
2012-02-10 17:17:24 +01:00
|
|
|
make %{?_smp_mflags} VERBOSE=1
|
2009-05-28 04:22:38 +02:00
|
|
|
%__make doc
|
|
|
|
popd build
|
2008-11-10 04:39:06 +01:00
|
|
|
|
|
|
|
%install
|
2009-05-28 04:22:38 +02:00
|
|
|
pushd build
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%makeinstall
|
|
|
|
%else
|
|
|
|
%__make DESTDIR=%{buildroot} install
|
|
|
|
%endif
|
|
|
|
popd build
|
|
|
|
|
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
|
2013-12-19 21:38:33 +01:00
|
|
|
%{_libdir}/cmake/libssh*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
|