2008-11-10 03:39:06 +00:00
|
|
|
#
|
2009-05-28 02:22:38 +00:00
|
|
|
# spec file for package libssh (Version 0.3.0)
|
2008-11-10 03:39:06 +00:00
|
|
|
#
|
2009-05-28 02:22:38 +00:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2008-11-10 03:39:06 +00: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/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
|
|
Url: http://0xbadc0de.be/wiki/libssh:libssh
|
|
|
|
|
|
|
|
|
|
Name: libssh
|
2009-05-28 02:22:38 +00:00
|
|
|
BuildRequires: cmake doxygen openssl-devel
|
2008-11-10 03:39:06 +00:00
|
|
|
License: LGPL v2.1 or later
|
|
|
|
|
Group: System/Libraries
|
2009-05-28 02:22:38 +00:00
|
|
|
Version: 0.3.0
|
|
|
|
|
Release: 1
|
2008-11-10 03:39:06 +00:00
|
|
|
Summary: SSH library
|
|
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-05-28 02:22:38 +00:00
|
|
|
%define debug_package_requires libssh3 = %{version}-%{release}
|
2008-11-10 03:39:06 +00:00
|
|
|
|
|
|
|
|
%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://0xbadc0de.be/ that should not
|
|
|
|
|
be confused with libssh2 available from http://www.libssh2.org (libssh2
|
|
|
|
|
package)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Aris Adamantiadis <aris@0xbadc0de.be>
|
|
|
|
|
Nick Zitzmann <seiryu@comcast.net>
|
|
|
|
|
|
2009-05-28 02:22:38 +00:00
|
|
|
%package -n libssh3
|
2008-11-10 03:39:06 +00:00
|
|
|
License: LGPL v2.1 or later
|
|
|
|
|
Group: System/Libraries
|
|
|
|
|
Summary: SSH library
|
|
|
|
|
|
2009-05-28 02:22:38 +00:00
|
|
|
%description -n libssh3
|
2008-11-10 03:39:06 +00: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).
|
|
|
|
|
|
|
|
|
|
This package provides libssh from http://0xbadc0de.be/ that should not
|
|
|
|
|
be confused with libssh2 available from http://www.libssh2.org (libssh2
|
|
|
|
|
package)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Aris Adamantiadis <aris@0xbadc0de.be>
|
|
|
|
|
Nick Zitzmann <seiryu@comcast.net>
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
License: LGPL v2.1 or later
|
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
Summary: SSH library development headers
|
2009-05-28 02:22:38 +00:00
|
|
|
Requires: libssh3 = %{version}
|
2008-11-10 03:39:06 +00:00
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
Development headers for the SSH library.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Aris Adamantiadis <aris@0xbadc0de.be>
|
|
|
|
|
Nick Zitzmann <seiryu@comcast.net>
|
|
|
|
|
|
|
|
|
|
%package devel-doc
|
|
|
|
|
License: LGPL v2.1 or later
|
|
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
|
Summary: SSH library api documentation
|
|
|
|
|
|
|
|
|
|
%description devel-doc
|
|
|
|
|
Documentation for libssh development.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Aris Adamantiadis <aris@0xbadc0de.be>
|
|
|
|
|
Nick Zitzmann <seiryu@comcast.net>
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
%build
|
2009-05-28 02:22:38 +00:00
|
|
|
if test ! -e "build"; then
|
|
|
|
|
mkdir build
|
|
|
|
|
fi
|
|
|
|
|
pushd build
|
|
|
|
|
cmake \
|
|
|
|
|
-DCMAKE_C_FLAGS:STRING="%{optflags}" \
|
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
|
|
-DCMAKE_SKIP_RPATH=ON \
|
|
|
|
|
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
|
|
|
|
%if %{_lib} == lib64
|
|
|
|
|
-DLIB_SUFFIX=64 \
|
|
|
|
|
%endif
|
|
|
|
|
%{_builddir}/%{name}-%{version}
|
|
|
|
|
%__make %{?jobs:-j%jobs} VERBOSE=1
|
|
|
|
|
%__make doc
|
|
|
|
|
popd build
|
2008-11-10 03:39:06 +00:00
|
|
|
|
|
|
|
|
%install
|
2009-05-28 02:22:38 +00:00
|
|
|
pushd build
|
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
|
%makeinstall
|
|
|
|
|
%else
|
|
|
|
|
%__make DESTDIR=%{buildroot} install
|
|
|
|
|
%endif
|
|
|
|
|
popd build
|
|
|
|
|
|
|
|
|
|
%post -n libssh3
|
2008-11-10 03:39:06 +00:00
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
2009-05-28 02:22:38 +00:00
|
|
|
%postun -n libssh3
|
2008-11-10 03:39:06 +00:00
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
|
|
2009-05-28 02:22:38 +00:00
|
|
|
%files -n libssh3
|
2008-11-10 03:39:06 +00:00
|
|
|
%defattr(-,root,root)
|
2009-05-28 02:22:38 +00:00
|
|
|
%doc AUTHORS README ChangeLog
|
2008-11-10 03:39:06 +00:00
|
|
|
%{_libdir}/libssh.so.*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-,root,root)
|
2009-05-28 02:22:38 +00:00
|
|
|
%{_includedir}/libssh
|
2008-11-10 03:39:06 +00:00
|
|
|
%{_libdir}/libssh.so
|
|
|
|
|
|
|
|
|
|
%files devel-doc
|
|
|
|
|
%defattr(-,root,root)
|
2009-05-28 02:22:38 +00:00
|
|
|
%doc build/doc/html
|
2008-11-10 03:39:06 +00:00
|
|
|
|
|
|
|
|
%changelog
|
2009-05-28 02:22:38 +00:00
|
|
|
* Thu May 21 2009 anschneider@exsuse.de
|
|
|
|
|
- Update to version 0.3.0
|
|
|
|
|
* Added support for ssh-agent authentication.
|
|
|
|
|
* Added POSIX like sftp implementation.
|
|
|
|
|
* Added error checking to all functions.
|
|
|
|
|
* Added const to arguments where it was needed.
|
|
|
|
|
* Added a channel_get_exit_status() function.
|
|
|
|
|
* Added a channel_read_buffer() function, channel_read() is now
|
|
|
|
|
a POSIX like function.
|
|
|
|
|
* Added a more generic auth callback function.
|
|
|
|
|
* Added printf attribute checking for log and error functions.
|
|
|
|
|
* Added runtime function tracer support.
|
|
|
|
|
* Added NSIS build support with CPack.
|
|
|
|
|
* Added openssh hashed host support.
|
|
|
|
|
* Added API documentation for all public functions.
|
|
|
|
|
* Added asynchronous SFTP read function.
|
|
|
|
|
* Added a ssh_bind_set_fd() function.
|
|
|
|
|
* Fixed known_hosts parsing.
|
|
|
|
|
* Fixed a lot of build warnings.
|
|
|
|
|
* Fixed the Windows build.
|
|
|
|
|
* Fixed a lot of memory leaks.
|
|
|
|
|
* Fixed a double free corruption in the server support.
|
|
|
|
|
* Fixed the "ssh_accept:" bug in server support.
|
|
|
|
|
* Fixed important channel bugs.
|
|
|
|
|
* Refactored the socket handling.
|
|
|
|
|
* Switched to CMake build system.
|
|
|
|
|
* Improved performance.
|
2008-11-17 17:03:19 +00:00
|
|
|
* Mon Nov 17 2008 anschneider@suse.de
|
|
|
|
|
- Add 'Provides: libssh' to the library that the debuginfo package
|
|
|
|
|
can be installed.
|
|
|
|
|
- Fix channel performance by changing the window len.
|
|
|
|
|
- Use libssh2 as name for the library package.
|
|
|
|
|
- Remove rpmlintrc
|
2008-11-10 03:39:06 +00:00
|
|
|
* Tue Oct 07 2008 aj@suse.de
|
|
|
|
|
- Disable parallel build since it breaks the build.
|
|
|
|
|
* Tue Sep 30 2008 ro@suse.de
|
2009-05-28 02:22:38 +00:00
|
|
|
- Add rpmlintrc (desired package name is already taken by another
|
2008-11-10 03:39:06 +00:00
|
|
|
package)
|
|
|
|
|
* Tue Sep 30 2008 ro@suse.de
|
2009-05-28 02:22:38 +00:00
|
|
|
- Fix debug package requires
|
2008-11-10 03:39:06 +00:00
|
|
|
* Tue Sep 30 2008 ro@suse.de
|
2009-05-28 02:22:38 +00:00
|
|
|
- Fixed filelist
|
2008-11-10 03:39:06 +00:00
|
|
|
* Thu Aug 21 2008 anschneider@suse.de
|
|
|
|
|
- Map the permissions field to the type field for sftp v3.
|
|
|
|
|
- Add errno mapping for sftp functions
|
|
|
|
|
* Wed Aug 20 2008 anschneider@suse.de
|
2009-05-28 02:22:38 +00:00
|
|
|
- Initial libssh package
|