libssh/libssh.spec
OBS User autobuild 166620c1b6 Accepting request 20531 from network
Copy from network/libssh based on submit request 20531 from user jmcdough

OBS-URL: https://build.opensuse.org/request/show/20531
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libssh?expand=0&rev=6
2009-09-16 21:25:56 +00:00

167 lines
4.3 KiB
RPMSpec

#
# spec file for package libssh (Version 0.3.4)
#
# 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://www.libssh.org
Name: libssh
BuildRequires: cmake doxygen openssl-devel
License: LGPL v2.1 or later
Group: System/Libraries
Version: 0.3.4
Release: 1
Summary: SSH library
Source0: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define debug_package_requires libssh3 = %{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://www.libssh.org that should not
be confused with libssh2 available from http://www.libssh2.org (libssh2
package)
Authors:
--------
Aris Adamantiadis <aris@0xbadc0de.be>
Andreas Schneider <mail@cynapses.org>
Nick Zitzmann <seiryu@comcast.net>
%package -n libssh3
License: LGPL v2.1 or later
Group: System/Libraries
Summary: SSH library
%description -n libssh3
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://www.libssh.org that should not
be confused with libssh2 available from http://www.libssh2.org (libssh2
package)
Authors:
--------
Aris Adamantiadis <aris@0xbadc0de.be>
Andreas Schneider <mail@cynapses.org>
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: libssh3 = %{version}
%description devel
Development headers for the SSH library.
Authors:
--------
Aris Adamantiadis <aris@0xbadc0de.be>
Andreas Schneider <mail@cynapses.org>
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>
Andreas Schneider <mail@cynapses.org>
Nick Zitzmann <seiryu@comcast.net>
%prep
%setup -q
%build
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
%install
pushd build
%if 0%{?suse_version}
%makeinstall
%else
%__make DESTDIR=%{buildroot} install
%endif
popd build
%post -n libssh3
/sbin/ldconfig
%postun -n libssh3
/sbin/ldconfig
%clean
%{__rm} -rf %{buildroot}
%files -n libssh3
%defattr(-,root,root)
%doc AUTHORS README ChangeLog
%{_libdir}/libssh.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/libssh
%{_libdir}/libssh.so
%files devel-doc
%defattr(-,root,root)
%doc build/doc/html
%changelog