File libssh.spec of Package libssh
#
# spec file for package libssh (Version 0.2)
#
# Copyright (c) 2009 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.<RELEASE7>
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
Patch04: decrypt-len.patch
Patch05: get-data-overflow.patch
Patch06: crypt-null-pointer.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 <aris@0xbadc0de.be>
Nick Zitzmann <seiryu@comcast.net>
%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 <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
Requires: libssh2 = %{version}
%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
%patch03 -p1
%patch04 -p1
%patch05 -p1
%patch06 -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