123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155 |
- %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
- Summary: A library implementing the SSH2 protocol
- Summary(ja): SSH2プロトコルを実装するためのライブラリ
- Name: libssh
- Version: 0.8.5
- Release: 1%{?_dist_release}
- Group: System Environment/Libraries
- License: LGPLv2+
- URL: http://www.libssh.org/
- Source0: http://www.libssh.org/files/%{name}-%{version}.tar.xz
- Patch0: libssh-0.8.3-strict-overflow.patch
- # security fix
- # Nothing so far.
- # Patch100: libssh-0.4.8-pkgconfig.patch
- Vendor: Project Vine
- Distribution: Vine Linux
- 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
- %package devel
- Summary: Development files for %{name}
- Summary(ja): %{name} の開発ファイル
- Group: Development/Libraries
- Requires: %{name} = %{version}-%{release}
- Requires: pkgconfig
- %description devel
- The %{name}-devel package contains libraries and header files for
- developing applications that use %{name}.
- %package -n compat32-%{name}
- Summary: A library implementing the SSH2 protocol
- Summary(ja): SSH2プロトコルを実装するためのライブラリ
- Group: System Environment/Libraries
- %description -n compat32-%{name}
- 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
- %prep
- %setup -q
- %patch0 -p1 -b .strict-overflow
- %build
- 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
- [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
- make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
- %clean
- rm -rf $RPM_BUILD_ROOT
- %post -p /sbin/ldconfig
- %postun -p /sbin/ldconfig
- %files
- %defattr(-,root,root,-)
- %doc AUTHORS ChangeLog COPYING README
- %{_libdir}/*.so.*
- %files devel
- %defattr(-,root,root,-)
- %{_includedir}/*
- %{_libdir}/*.so
- %{_libdir}/pkgconfig/%{name}*.pc
- %dir %{_libdir}/cmake/
- %{_libdir}/cmake/libssh/
- %if %{build_compat32}
- %files -n compat32-%{name}
- %{_libdir}/*.so.*
- %endif
- %changelog
- * Sat Nov 03 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.8.5-1
- - new upstream release.
- - built with openssl-1.1.1.
- - added cmake support.
- - added a sub-package 'compat32-libssh'.
- * Sat Mar 12 2016 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.7.3-2
- - rebuilt with openssl 1.0.2g
- * Fri Feb 26 2016 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.7.3-1
- - new upstream release with security fixes
- * Sun Jul 19 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.8-3
- - add Patch100 (libssh-0.4.8-pkgconfig.patch)
- * Mon Dec 3 2012 IWAI, Masaharu <iwai@alib.jp> 0.4.8-2
- - SECURITY FIX:
- - add patches from Debian libssh 0.4.5-3+squeeze1
- - CVE-2012-4559.patch (Patch10)
- - CVE-2012-4561.patch (Patch11)
- - CVE-2012-4562.patch (Patch12)
- - add patch based Red Hat BTS #871614
- - CVE-2012-4560.patch (Patch13)
- * Sat Jan 29 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.8-1
- - new upstream release
- * Sun Jun 20 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.4.4-1
- - new upstream release
- * Sun Mar 7 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.4.1-1
- - new upstream release
- * Tue Sep 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2-1
- - initial build for Vine Linux
- * Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 0.2-4
- - rebuilt with new openssl
- * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-3
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
- * Tue Jun 02 2009 Jan F. Chadima <jchadima@redhat.com> - 0.2-2
- - Small changes during review
- * Mon Jun 01 2009 Jan F. Chadima <jchadima@redhat.com> - 0.2-1
- - Initial build
|