Summary: Library implementing the SSH protocol
-Summary(pl): Biblioteka implementuj±ca protokó³ SSH
+Summary(pl.UTF-8): Biblioteka implementująca protokół SSH
Name: libssh
-Version: 0.11
-Release: 1
-License: LGPL
+Version: 0.7.5
+Release: 2
+Epoch: 1
+License: LGPL v2.1+; parts are BSD-licensed
Group: Libraries
-Source0: http://0xbadc0de.be/libssh/%{name}-%{version}.tgz
-# Source0-md5: ad703c4702646c83ca4fcace92c220d3
-Patch0: %{name}-makefile.patch
-URL: http://0xbadc0de.be/wiki/doku.php?id=libssh:libssh
-BuildRequires: autoconf
-BuildRequires: automake
-BuildRequires: intltool
-BuildRequires: libmagic-devel
-BuildRequires: libtool
-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)
implementation, you can play with remote files easily, without
third-party programs others than libcrypto (from openssl).
-%description -l pl
-Biblioteka ssh zosta³a zaprojektowana do u¿ywania przez programistów
-potrzebuj±cych dzia³aj±cej implementacji SSH w postaci biblioteki. Za
-pomoc± libssh mo¿na przesy³aæ pliki, zdalnie uruchamiaæ programy b±d¼
-te¿ tworzyæ na ich potrzeby bezpieczne i przezroczyste tunele. Dziêki
-zawartej implementacji protoko³u Secure FTP programista ma mo¿liwo¶æ
-³atwego wykonywania operacji na zdalnych plikach bez konieczno¶ci
-korzystania z dodatkowego zewnêtrznego oprogramowania poza bibliotek±
+%description -l pl.UTF-8
+Biblioteka ssh została zaprojektowana do używania przez programistów
+potrzebujących działającej implementacji SSH w postaci biblioteki. Za
+pomocą libssh można przesyłać pliki, zdalnie uruchamiać programy bądź
+też tworzyć na ich potrzeby bezpieczne i przezroczyste tunele. Dzięki
+zawartej implementacji protokołu Secure FTP programista ma możliwość
+łatwego wykonywania operacji na zdalnych plikach bez konieczności
+korzystania z dodatkowego zewnętrznego oprogramowania poza biblioteką
libcrypto (pakiet openssl).
%package devel
Summary: Header files for libssh library
-Summary(pl): Pliki nag³ówkowe biblioteki libssh
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libssh
Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
+Requires: %{name} = %{epoch}:%{version}-%{release}
%description devel
Header files for libssh library.
-%description devel -l pl
-Pliki nag³ówkowe biblioteki libssh.
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki libssh.
%prep
%setup -q
-%patch0 -p1
-
-mkdir po
%build
-%{__intltoolize}
-%{__gettextize}
-%{__libtoolize}
-%{__aclocal}
-%{__autoconf}
-%{__autoheader}
-%configure
+install -d build
+cd build
+%cmake .. \
+ -DWITH_SSH1=ON
+
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_libdir}
-%{__make} install \
+%{__make} -C build install \
DESTDIR=$RPM_BUILD_ROOT \
libdir=%{_libdir}
%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)
-%{_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