|
|
@ -1,18 +1,18 @@
|
|
|
|
Name: libssh2
|
|
|
|
Name: libssh2
|
|
|
|
Version: 1.2
|
|
|
|
Version: 1.2
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Summary: A library implementing the SSH2 protocol
|
|
|
|
Summary: A library implementing the SSH2 protocol
|
|
|
|
|
|
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
License: BSD
|
|
|
|
License: BSD
|
|
|
|
URL: http://www.libssh2.org/
|
|
|
|
URL: http://www.libssh2.org/
|
|
|
|
Source0: http://libssh2.org/download/libssh2-%{version}.tar.gz
|
|
|
|
Source0: http://libssh2.org/download/libssh2-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
|
|
|
|
Patch0: transport_c_7a9d369.patch
|
|
|
|
Patch0: transport_c_7a9d369.patch
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
libssh2 is a library implementing the SSH2 protocol as defined by
|
|
|
|
libssh2 is a library implementing the SSH2 protocol as defined by
|
|
|
@ -30,7 +30,7 @@ Requires: %{name} = %{version}-%{release}
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%package docs
|
|
|
|
%package docs
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
@ -60,15 +60,15 @@ make %{?_smp_mflags}
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
make install DESTDIR=%{buildroot} INSTALL="install -p"
|
|
|
|
make install DESTDIR=%{buildroot} INSTALL="install -p"
|
|
|
|
find %{buildroot} -name '*.la' -exec rm -f {} +
|
|
|
|
find %{buildroot} -name '*.la' -exec rm -f {} +
|
|
|
|
|
|
|
|
|
|
|
|
# clean things up a bit for packaging
|
|
|
|
# clean things up a bit for packaging
|
|
|
|
( cd example && make clean )
|
|
|
|
( cd example && make clean )
|
|
|
|
rm -rf example/simple/.deps
|
|
|
|
rm -rf example/simple/.deps
|
|
|
|
find example/ -type f '(' -name '*.am' -o -name '*.in' ')' -exec rm -v {} +
|
|
|
|
find example/ -type f '(' -name '*.am' -o -name '*.in' ')' -exec rm -v {} +
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
# tests are currently not doing so well under rpmbuild
|
|
|
|
# tests are currently not doing so well under rpmbuild
|
|
|
|
#(cd tests && make check)
|
|
|
|
#(cd tests && make check)
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%clean
|
|
|
@ -92,7 +92,7 @@ rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING
|
|
|
|
%doc COPYING
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
|
|
|
|
|
|
|