2008-11-04 17:48:58 +01:00
|
|
|
#
|
2011-08-18 09:37:22 +02:00
|
|
|
# spec file for package libssh2_org
|
2008-11-04 17:48:58 +01:00
|
|
|
#
|
2011-08-18 09:37:22 +02:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2008-11-04 17:48:58 +01: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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Summary: A library implementing the SSH2 protocol
|
|
|
|
|
|
|
|
Name: libssh2_org
|
2011-10-21 20:18:27 +02:00
|
|
|
Version: 1.3.0
|
2011-09-06 15:36:21 +02:00
|
|
|
Release: 3
|
2011-08-17 23:20:59 +02:00
|
|
|
License: BSD3c
|
2011-12-01 04:42:14 +01:00
|
|
|
URL: http://www.libssh2.org/
|
2008-11-04 17:48:58 +01:00
|
|
|
%define pkg_name libssh2
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Source: http://heanet.dl.sourceforge.net/sourceforge/libssh2/%{pkg_name}-%{version}.tar.bz2
|
2010-02-11 19:32:00 +01:00
|
|
|
Source2: baselibs.conf
|
2011-08-17 23:20:59 +02:00
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
#for the test suite
|
|
|
|
BuildRequires: openssh
|
2008-11-04 17:48:58 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-12-01 03:46:12 +01:00
|
|
|
Patch: libssh2-ocloexec.patch
|
2008-11-04 17:48:58 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
libssh2 is a library implementing the SSH2 protocol as defined by
|
|
|
|
Internet Drafts: SECSH-TRANS, SECSH-USERAUTH, SECSH-CONNECTION,
|
|
|
|
SECSH-ARCH, SECSH-FILEXFER, SECSH-DHGEX, SECSH-NUMBERS, and
|
|
|
|
SECSH-PUBLICKEY.
|
|
|
|
|
|
|
|
%package -n libssh2-1
|
|
|
|
Summary: A library implementing the SSH2 protocol
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
|
|
|
%description -n libssh2-1
|
|
|
|
libssh2 is a library implementing the SSH2 protocol as defined by
|
|
|
|
Internet Drafts: SECSH-TRANS, SECSH-USERAUTH, SECSH-CONNECTION,
|
|
|
|
SECSH-ARCH, SECSH-FILEXFER, SECSH-DHGEX, SECSH-NUMBERS, and
|
|
|
|
SECSH-PUBLICKEY.
|
|
|
|
|
|
|
|
%package -n libssh2-devel
|
|
|
|
Summary: A library implementing the SSH2 protocol
|
|
|
|
Group: Development/Libraries/C and C++
|
2011-08-17 23:20:59 +02:00
|
|
|
Requires: glibc-devel
|
|
|
|
Requires: libssh2-1 = %{version}
|
2008-11-04 17:48:58 +01:00
|
|
|
|
|
|
|
%description -n libssh2-devel
|
|
|
|
libssh2 is a library implementing the SSH2 protocol as defined by
|
|
|
|
Internet Drafts: SECSH-TRANS, SECSH-USERAUTH, SECSH-CONNECTION,
|
|
|
|
SECSH-ARCH, SECSH-FILEXFER, SECSH-DHGEX, SECSH-NUMBERS, and
|
|
|
|
SECSH-PUBLICKEY.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{pkg_name}-%{version}
|
2011-12-01 03:46:12 +01:00
|
|
|
%patch -p1
|
2008-11-04 17:48:58 +01:00
|
|
|
|
|
|
|
%build
|
2011-09-06 06:48:20 +02:00
|
|
|
export CFLAGS="%optflags -DOPENSSL_LOAD_CONF"
|
2010-02-11 19:32:00 +01:00
|
|
|
%configure --enable-hidden-symbols \
|
|
|
|
--disable-static --with-pic \
|
2011-08-17 23:20:59 +02:00
|
|
|
--disable-rpath --with-libz=%{_prefix} \
|
|
|
|
--with-openssl=%{_prefix}
|
|
|
|
make %{?_smp_mflags}
|
2008-11-04 17:48:58 +01:00
|
|
|
|
|
|
|
%install
|
2011-08-17 23:20:59 +02:00
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
2008-11-04 17:48:58 +01:00
|
|
|
|
|
|
|
%check
|
2011-10-02 15:42:30 +02:00
|
|
|
# testsuite fails in qemu due to non-implemented setsockopt() options (2011-10-01)
|
2011-09-30 21:59:17 +02:00
|
|
|
%if ! 0%{?qemu_user_space_build}
|
2011-08-17 23:20:59 +02:00
|
|
|
make check
|
2011-09-30 19:41:48 +02:00
|
|
|
%endif
|
2008-11-04 17:48:58 +01:00
|
|
|
|
|
|
|
%post -n libssh2-1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libssh2-1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n libssh2-1
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libssh2.so.1*
|
|
|
|
|
|
|
|
%files -n libssh2-devel
|
|
|
|
%defattr(-,root,root)
|
2010-02-11 19:32:00 +01:00
|
|
|
%doc NEWS
|
2008-11-04 17:48:58 +01:00
|
|
|
%{_libdir}/libssh2.so
|
|
|
|
%{_includedir}/*.h
|
|
|
|
%{_mandir}/man3/*
|
2010-02-11 19:32:00 +01:00
|
|
|
%{_libdir}/pkgconfig/libssh2.pc
|
2008-11-04 17:48:58 +01:00
|
|
|
|
|
|
|
%changelog
|