]> git.pld-linux.org Git - packages/libssh.git/blobdiff - libssh.spec
- 0.4.3
[packages/libssh.git] / libssh.spec
index 6ff353949eaefc7addb68e5de28227cdf1e4a31d..f8984151aaeb6da38f90f197204ae61e7a3ba635 100644 (file)
@@ -1,16 +1,16 @@
 Summary:       Library implementing the SSH protocol
 Summary(pl.UTF-8):     Biblioteka implementująca protokół SSH
 Name:          libssh
-Version:       0.2
+Version:       0.4.3
 Release:       1
 Epoch:         1
-License:       LGPL
+License:       LGPL v2.1
 Group:         Libraries
-Source0:       http://0xbadc0de.be/libssh/%{name}-%{version}.tgz
-# Source0-md5: 8a76c03579a3e27046e6bafe88ffd171
-URL:           http://0xbadc0de.be/wiki/doku.php?id=libssh:libssh
-BuildRequires: libmagic-devel
-BuildRequires: openssl-devel
+Source0:       http://www.libssh.org/files/%{name}-%{version}.tar.gz
+# Source0-md5: e91ddfd798430e21032054e17c78af47
+URL:           http://www.libssh.org/
+BuildRequires: cmake >= 2.6.0
+BuildRequires: openssl-devel >= 0.9.8
 BuildRequires: zlib-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -49,13 +49,22 @@ Pliki nagłówkowe biblioteki libssh.
 %setup -q
 
 %build
-%configure
-%{__make} -j1
+install -d build
+cd build
+%cmake \
+       -DCMAKE_BUILD_TYPE="Release" \
+       -DCMAKE_INSTALL_PREFIX=%{_prefix} \
+%if "%{_lib}" == "lib64"
+       -DLIB_SUFFIX=64 \
+%endif
+       ..
+
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install \
+%{__make} -C build install \
        DESTDIR=$RPM_BUILD_ROOT \
        libdir=%{_libdir}
 
@@ -69,8 +78,9 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc README
 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/lib*.so.?
 
 %files devel
 %defattr(644,root,root,755)
 %{_libdir}/libssh.so
-%{_includedir}/*
+%{_includedir}/libssh
This page took 0.149906 seconds and 4 git commands to generate.