]> git.pld-linux.org Git - packages/libssh.git/blobdiff - libssh.spec
- release 2 (by relup.sh)
[packages/libssh.git] / libssh.spec
index 47c73ea61a2563d778d47582650667a41117383a..cac18e16aae11f4f42de9d77e5f8ea7fb6390356 100644 (file)
@@ -1,16 +1,21 @@
 Summary:       Library implementing the SSH protocol
 Summary(pl.UTF-8):     Biblioteka implementująca protokół SSH
 Name:          libssh
-Version:       0.2
-Release:       1
+Version:       0.7.5
+Release:       2
 Epoch:         1
-License:       LGPL
+License:       LGPL v2.1+; parts are BSD-licensed
 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
+#Source0Download: https://red.libssh.org/projects/libssh/files
+#Source0:      https://red.libssh.org/attachments/download/218/%{name}-%{version}.tar.xz
+# (used temporarily, when red.libssh.org was down)
+Source0:       https://git.libssh.org/projects/libssh.git/snapshot/%{name}-%{version}.tar.bz2
+# Source0-md5: 8f044c07902cd3de3e363faa78681772
+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)
 
@@ -49,28 +54,39 @@ Pliki nagłówkowe biblioteki libssh.
 %setup -q
 
 %build
-%configure
+install -d build
+cd build
+%cmake .. \
+       -DWITH_SSH1=ON
+
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install \
+%{__make} -C build install \
        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.*.*.*
+%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
-%{_includedir}/*
+%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.068641 seconds and 4 git commands to generate.