1 |
%define rname libssh2 |
%define rname libssh2 |
2 |
|
|
3 |
%define major 1 |
%define major 1 |
4 |
%define libname %mklibname ssh2_ %{major} |
%define libname %mklibname ssh2_ %{major} |
5 |
%define develname %mklibname ssh2 -d |
%define develname %mklibname ssh2 -d |
6 |
|
|
7 |
Summary: A library implementing the SSH2 protocol |
Summary: A library implementing the SSH2 protocol |
8 |
Name: %{rname} |
Name: %{rname} |
9 |
Version: 1.8.0 |
Version: 1.8.1 |
10 |
Release: %mkrel 2 |
Release: %mkrel 1 |
11 |
Group: System/Libraries |
Group: System/Libraries |
12 |
License: BSD |
License: BSD |
13 |
URL: http://www.libssh2.org/ |
URL: http://www.libssh2.org/ |
14 |
Source0: http://www.libssh2.org/download/%{rname}-%{version}.tar.gz |
Source0: http://www.libssh2.org/download/%{rname}-%{version}.tar.gz |
15 |
Source1: http://www.libssh2.org/download/%{rname}-%{version}.tar.gz.asc |
Source1: http://www.libssh2.org/download/%{rname}-%{version}.tar.gz.asc |
16 |
BuildRequires: pkgconfig |
BuildRequires: pkgconfig |
17 |
BuildRequires: pkgconfig(openssl) |
BuildRequires: pkgconfig(openssl) >= 1.1 |
18 |
BuildRequires: pkgconfig(zlib) |
BuildRequires: pkgconfig(zlib) |
19 |
BuildRequires: libtool |
BuildRequires: libtool |
20 |
|
|
54 |
%build |
%build |
55 |
%serverbuild |
%serverbuild |
56 |
%configure2_5x \ |
%configure2_5x \ |
57 |
|
--disable-static \ |
58 |
--without-libgcrypt-prefix \ |
--without-libgcrypt-prefix \ |
59 |
--with-openssl=%{_prefix} \ |
--with-openssl=%{_prefix} \ |
60 |
--with-libz=%{_prefix} |
--with-libz=%{_prefix} |
61 |
|
|
62 |
%make |
%make_build |
63 |
# The SSH test will fail if we don't have /dev/tty, |
# The SSH test will fail if we don't have /dev/tty, |
64 |
if [ ! -c /dev/tty ]; then |
if [ ! -c /dev/tty ]; then |
65 |
echo Skipping SSH test due to missing /dev/tty |
echo Skipping SSH test due to missing /dev/tty |
73 |
make -C tests check |
make -C tests check |
74 |
|
|
75 |
%install |
%install |
76 |
%makeinstall_std |
%make_install |
77 |
|
|
78 |
|
find %{buildroot} -name '*.la' -delete |
79 |
|
|
80 |
%files -n %{libname} |
%files -n %{libname} |
81 |
%doc COPYING ChangeLog NEWS README |
%doc COPYING ChangeLog NEWS README |
84 |
%files -n %{develname} |
%files -n %{develname} |
85 |
%{_includedir}/* |
%{_includedir}/* |
86 |
%{_libdir}/*.so |
%{_libdir}/*.so |
|
%{_libdir}/*.a |
|
|
%{_libdir}/*.la |
|
87 |
%{_mandir}/man3/* |
%{_mandir}/man3/* |
88 |
%{_libdir}/pkgconfig/*.pc |
%{_libdir}/pkgconfig/*.pc |