Browse Source

libssh2
- update to 1.4.2
- add compat32 package

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@7180 ec354946-7b23-47d6-9f5a-488ba84defc7

daisuke 11 years ago
parent
commit
b933925873
1 changed files with 29 additions and 1 deletions
  1. 29 1
      lib/libs/libssh2/libssh2-vl.spec

+ 29 - 1
lib/libs/libssh2/libssh2-vl.spec

@@ -1,7 +1,9 @@
+%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
+
 Summary:        A library implementing the SSH2 protocol
 Summary(ja):    SSH2 プロトコルを実装するためのライブラリ
 Name:           libssh2
-Version:        1.2.7
+Version:        1.4.2
 Release:        1%{?_dist_release}
 
 Group:          System Environment/Libraries
@@ -40,6 +42,18 @@ Requires:       %{name} = %{version}-%{release}
 The %{name}-docs package contains man pages and examples for
 developing applications that use %{name}.
 
+## to build compat32 for x86_64 architecture support
+%package -n compat32-%{name}
+Summary: A library implementing the SSH2 protocol
+Summary(ja): SSH2 プロトコルを実装するためのライブラリ
+Group: System Environment/Libraries
+
+%description -n compat32-%{name}
+libssh2 is a library implementing the SSH2 protocol as defined by
+Internet Drafts: SECSH-TRANS(22), SECSH-USERAUTH(25),
+SECSH-CONNECTION(23), SECSH-ARCH(20), SECSH-FILEXFER(06)*,
+SECSH-DHGEX(04), and SECSH-NUMBERS(10).
+
 
 %prep
 %setup -q
@@ -78,6 +92,10 @@ rm -rf %{buildroot}
 
 %postun -p /sbin/ldconfig
 
+%post -n compat32-%{name} -p /sbin/ldconfig
+
+%postun -n compat32-%{name} -p /sbin/ldconfig
+
 
 %files
 %defattr(-,root,root,-)
@@ -96,7 +114,17 @@ rm -rf %{buildroot}
 %{_libdir}/*.so
 %{_libdir}/pkgconfig/libssh2.pc
 
+%if %{build_compat32}
+%files -n compat32-%{name}
+%defattr(-,root,root,-)
+%{_libdir}/*.so.*
+%endif
+
 %changelog
+* Thu Nov 29 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.2-1
+- new upstream reelase
+- add compat32 package
+
 * Sat Jan 29 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.7-1
 - new upstream release
 - fix %%files