Browse Source

updated: libssh

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@590 ec354946-7b23-47d6-9f5a-488ba84defc7
inagaki 14 years ago
parent
commit
0b95f509eb
1 changed files with 29 additions and 20 deletions
  1. 29 20
      lib/libs/libssh/libssh-vl.spec

+ 29 - 20
lib/libs/libssh/libssh-vl.spec

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