|
@@ -1,28 +1,29 @@
|
|
-Summary: A library implementing the SSH2 protocol (0xbadc0de version)
|
|
+Summary: A library implementing the SSH2 protocol
|
|
-Summary(ja): SSH2プロトコルを実装するためのライブラリ (0xbadc0de版)
|
|
+Summary(ja): SSH2プロトコルを実装するためのライブラリ
|
|
|
|
|
|
Name: libssh
|
|
Name: libssh
|
|
-Version: 0.2
|
|
+Version: 0.4.1
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
Group: System Environment/Libraries
|
|
License: LGPLv2+
|
|
License: LGPLv2+
|
|
-URL: http://0xbadc0de.be/?part=libssh
|
|
+URL: http://www.libssh.org/
|
|
-Source0: http://0xbadc0de.be/libssh/%{name}-%{version}.tgz
|
|
+Source0: http://www.libssh.org/files/%{name}-%{version}.tar.gz
|
|
Patch0: libssh-0.2-libdir.patch
|
|
Patch0: libssh-0.2-libdir.patch
|
|
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
BuildRequires: openssl-devel
|
|
BuildRequires: openssl-devel
|
|
BuildRequires: zlib-devel
|
|
BuildRequires: zlib-devel
|
|
|
|
+BuildRequires: cmake
|
|
|
|
|
|
%description
|
|
%description
|
|
The SSH library with
|
|
The SSH library with
|
|
--Full C library functions for manipulating a client-side SSH connection
|
|
+- Full C library functions for manipulating a client-side SSH connection
|
|
--Fully configurable sessions
|
|
+- Fully configurable sessions
|
|
--Support for AES-128,AES-192,AES-256,blowfish, in cbc mode
|
|
+- Support for AES-128,AES-192,AES-256,blowfish, in cbc mode
|
|
--use multiple SSH connections in a same process, at same time.
|
|
+- use multiple SSH connections in a same process, at same time.
|
|
--usable SFTP implementation
|
|
+- usable SFTP implementation
|
|
--Public key and password authentication
|
|
+- Public key and password authentication
|
|
|
|
|
|
%package devel
|
|
%package devel
|
|
Summary: Development files for %{name}
|
|
Summary: Development files for %{name}
|
|
@@ -36,17 +37,22 @@ developing applications that use %{name}.
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
-%patch0 -p1 -b .libdir
|
|
|
|
|
|
|
|
%build
|
|
%build
|
|
-%configure --disable-static --enable-shared
|
|
+mkdir -p %{_target_platform}
|
|
-make # doesn't build with %{?_smp_mflags}
|
|
+pushd %{_target_platform}
|
|
|
|
+%cmake ..
|
|
|
|
+popd
|
|
|
|
+
|
|
|
|
+make %{?_smp_mflags} -C %{_target_platform}
|
|
|
|
+
|
|
|
|
+#configure --disable-static --enable-shared
|
|
|
|
+#make # doesn't build with %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
%install
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
+[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
|
-make install DESTDIR=$RPM_BUILD_ROOT
|
|
+
|
|
-find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} +
|
|
+make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
|
|
-chmod 644 $RPM_BUILD_ROOT/usr/include/libssh/*
|
|
|
|
|
|
|
|
%clean
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
@@ -57,7 +63,7 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
-%doc AUTHORS CHANGELOG COPYING README
|
|
+%doc AUTHORS ChangeLog COPYING README
|
|
%{_libdir}/*.so.*
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
%files devel
|
|
%files devel
|
|
@@ -66,6 +72,9 @@ rm -rf $RPM_BUILD_ROOT
|
|
%{_libdir}/*.so
|
|
%{_libdir}/*.so
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Tue Sep 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2-1
|
|
|
|
+- new upstream release
|
|
|
|
+
|
|
* Tue Sep 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2-1
|
|
* Tue Sep 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2-1
|
|
- initial build for Vine Linux
|
|
- initial build for Vine Linux
|
|
|
|
|