]> git.pld-linux.org Git - packages/libssh.git/blobdiff - libssh.spec
- up to 0.7.3; fixed CVE-2016-0739, CVE-2015-3146
[packages/libssh.git] / libssh.spec
index f8984151aaeb6da38f90f197204ae61e7a3ba635..930f5d4e6c5b413a2e6aa805f68d78e786666103 100644 (file)
@@ -1,16 +1,20 @@
 Summary:       Library implementing the SSH protocol
 Summary(pl.UTF-8):     Biblioteka implementująca protokół SSH
 Name:          libssh
-Version:       0.4.3
+Version:       0.7.3
 Release:       1
 Epoch:         1
-License:       LGPL v2.1
+License:       LGPL v2.1+; parts are BSD-licensed
 Group:         Libraries
-Source0:       http://www.libssh.org/files/%{name}-%{version}.tar.gz
-# Source0-md5: e91ddfd798430e21032054e17c78af47
+# dead atm.
+#Source0:      https://red.libssh.org/attachments/download/87/%{name}-%{version}.tar.xz
+Source0:       https://git.libssh.org/projects/libssh.git/snapshot/%{name}-%{version}.tar.gz
+# Source0-md5: 421e7adf7e8b3e22f16c963b85b97b15
 URL:           http://www.libssh.org/
 BuildRequires: cmake >= 2.6.0
+BuildRequires: heimdal-devel
 BuildRequires: openssl-devel >= 0.9.8
+BuildRequires: rpmbuild(macros) >= 1.600
 BuildRequires: zlib-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -51,13 +55,8 @@ Pliki nagłówkowe biblioteki libssh.
 %build
 install -d build
 cd build
-%cmake \
-       -DCMAKE_BUILD_TYPE="Release" \
-       -DCMAKE_INSTALL_PREFIX=%{_prefix} \
-%if "%{_lib}" == "lib64"
-       -DLIB_SUFFIX=64 \
-%endif
-       ..
+%cmake .. \
+       -DWITH_SSH1=ON
 
 %{__make}
 
@@ -68,19 +67,25 @@ rm -rf $RPM_BUILD_ROOT
        DESTDIR=$RPM_BUILD_ROOT \
        libdir=%{_libdir}
 
-%post   -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post   -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
-%doc README
-%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/lib*.so.?
+%doc AUTHORS BSD ChangeLog README
+%attr(755,root,root) %{_libdir}/libssh.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libssh.so.4
+%attr(755,root,root) %{_libdir}/libssh_threads.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libssh_threads.so.4
 
 %files devel
 %defattr(644,root,root,755)
-%{_libdir}/libssh.so
+%attr(755,root,root) %{_libdir}/libssh.so
+%attr(755,root,root) %{_libdir}/libssh_threads.so
 %{_includedir}/libssh
+%{_pkgconfigdir}/libssh.pc
+%{_pkgconfigdir}/libssh_threads.pc
+%{_libdir}/cmake/libssh
This page took 0.119386 seconds and 4 git commands to generate.