# # spec file for package libssh (Version 0.2) # # Copyright (c) 2008 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/ # # norootforbuild Url: http://0xbadc0de.be/wiki/libssh:libssh Name: libssh BuildRequires: doxygen openssl-devel License: LGPL v2.1 or later Group: System/Libraries Version: 0.2 Release: 5 Summary: SSH library Source0: %{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build Patch00: libssh-paths.patch Patch01: 0001-Map-permission-field-to-type-field.patch Patch02: 0002-Add-errno-mapping.patch Patch03: libssh_improve_performance.patch %define debug_package_requires libssh2 = %{version}-%{release} %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 Nick Zitzmann %package -n libssh2 License: LGPL v2.1 or later Group: System/Libraries Summary: SSH library %description -n libssh2 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 Nick Zitzmann %package devel License: LGPL v2.1 or later Group: Development/Libraries/C and C++ Summary: SSH library development headers Requires: libssh2 = %{version} %description devel Development headers for the SSH library. Authors: -------- Aris Adamantiadis Nick Zitzmann %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 Nick Zitzmann %prep %setup -q %patch00 %patch01 -p1 %patch02 -p1 %patch03 -p1 %build autoreconf -fi %configure \ --docdir=%{_docdir} \ --disable-static \ --with-pic %{__make} %{__make} doc %install %{__make} DESTDIR=%{buildroot} install %{__make} DESTDIR=%{buildroot} install-doc %post -n libssh2 /sbin/ldconfig %postun -n libssh2 /sbin/ldconfig %clean %{__rm} -rf %{buildroot} %files -n libssh2 %defattr(-,root,root) %doc AUTHORS README CHANGELOG %{_libdir}/libssh.so.* %files devel %defattr(-,root,root) %dir %{_includedir}/libssh/ %attr(0644,root,root) %{_includedir}/libssh/* %{_libdir}/libssh.so %exclude %{_libdir}/libssh.la %files devel-doc %defattr(-,root,root) %dir %{_docdir}/libssh %dir %{_docdir}/libssh/html %attr(0644,root,root) %{_docdir}/libssh/html/* %dir %{_docdir}/libssh/examples %attr(0644,root,root) %{_docdir}/libssh/examples/* %attr(0644,root,root) %{_mandir}/man?/ssh_* %exclude %{_mandir}/man?/buffer_struct.3* %exclude %{_mandir}/man?/bug.3* %exclude %{_mandir}/man?/deprecated.3* %changelog * 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 * Tue Oct 07 2008 aj@suse.de - Disable parallel build since it breaks the build. * Tue Sep 30 2008 ro@suse.de - add rpmlintrc (desired package name is already taken by another package) * Tue Sep 30 2008 ro@suse.de - fix debug package requires * Tue Sep 30 2008 ro@suse.de - fixed filelist * 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 - initial libssh2 package