2008-11-10 04:39:06 +01:00
|
|
|
#
|
|
|
|
# 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
|
2008-11-17 18:03:19 +01:00
|
|
|
Release: 5
|
2008-11-10 04:39:06 +01:00
|
|
|
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
|
2008-11-17 18:03:19 +01:00
|
|
|
Patch03: libssh_improve_performance.patch
|
|
|
|
%define debug_package_requires libssh2 = %{version}-%{release}
|
2008-11-10 04:39:06 +01: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>
|
|
|
|
|
2008-11-17 18:03:19 +01:00
|
|
|
%package -n libssh2
|
2008-11-10 04:39:06 +01:00
|
|
|
License: LGPL v2.1 or later
|
|
|
|
Group: System/Libraries
|
|
|
|
Summary: SSH library
|
|
|
|
|
2008-11-17 18:03:19 +01:00
|
|
|
%description -n libssh2
|
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).
|
|
|
|
|
|
|
|
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
|
2008-11-17 18:03:19 +01:00
|
|
|
Requires: libssh2 = %{version}
|
2008-11-10 04:39:06 +01: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
|
|
|
|
%patch00
|
|
|
|
%patch01 -p1
|
|
|
|
%patch02 -p1
|
2008-11-17 18:03:19 +01:00
|
|
|
%patch03 -p1
|
2008-11-10 04:39:06 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -fi
|
|
|
|
%configure \
|
|
|
|
--docdir=%{_docdir} \
|
|
|
|
--disable-static \
|
|
|
|
--with-pic
|
|
|
|
%{__make}
|
|
|
|
%{__make} doc
|
|
|
|
|
|
|
|
%install
|
|
|
|
%{__make} DESTDIR=%{buildroot} install
|
|
|
|
%{__make} DESTDIR=%{buildroot} install-doc
|
|
|
|
|
2008-11-17 18:03:19 +01:00
|
|
|
%post -n libssh2
|
2008-11-10 04:39:06 +01:00
|
|
|
/sbin/ldconfig
|
|
|
|
|
2008-11-17 18:03:19 +01:00
|
|
|
%postun -n libssh2
|
2008-11-10 04:39:06 +01:00
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
|
2008-11-17 18:03:19 +01:00
|
|
|
%files -n libssh2
|
2008-11-10 04:39:06 +01:00
|
|
|
%defattr(-,root,root)
|
2008-11-17 18:03:19 +01:00
|
|
|
%doc AUTHORS README CHANGELOG
|
2008-11-10 04:39:06 +01:00
|
|
|
%{_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
|
2008-11-17 18:03:19 +01: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 04:39:06 +01:00
|
|
|
* 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
|