]>
Commit | Line | Data |
---|---|---|
3d42e4d2 | 1 | Summary: Library implementing the SSH protocol |
eacbfac0 | 2 | Summary(pl.UTF-8): Biblioteka implementująca protokół SSH |
3d42e4d2 | 3 | Name: libssh |
b6248e31 | 4 | Version: 0.7.5 |
f67f8fad | 5 | Release: 2 |
5deab50c | 6 | Epoch: 1 |
26932d9e | 7 | License: LGPL v2.1+; parts are BSD-licensed |
3d42e4d2 | 8 | Group: Libraries |
0df88e01 JB |
9 | #Source0Download: https://red.libssh.org/projects/libssh/files |
10 | #Source0: https://red.libssh.org/attachments/download/218/%{name}-%{version}.tar.xz | |
11 | # (used temporarily, when red.libssh.org was down) | |
b6248e31 JB |
12 | Source0: https://git.libssh.org/projects/libssh.git/snapshot/%{name}-%{version}.tar.bz2 |
13 | # Source0-md5: 8f044c07902cd3de3e363faa78681772 | |
411f4352 AG |
14 | URL: http://www.libssh.org/ |
15 | BuildRequires: cmake >= 2.6.0 | |
b81cb09a | 16 | BuildRequires: heimdal-devel |
411f4352 | 17 | BuildRequires: openssl-devel >= 0.9.8 |
1687778b | 18 | BuildRequires: rpmbuild(macros) >= 1.600 |
3d42e4d2 | 19 | BuildRequires: zlib-devel |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | The ssh library was designed to be used by programmers needing a | |
24 | working SSH implementation by the mean of a library. The complete | |
25 | control of the client is made by the programmer. With libssh, you can | |
26 | remotely execute programs, transfer files, use a secure and | |
27 | transparent tunnel for your remote programs. With its Secure FTP | |
28 | implementation, you can play with remote files easily, without | |
29 | third-party programs others than libcrypto (from openssl). | |
30 | ||
5f7c7686 JR |
31 | %description -l pl.UTF-8 |
32 | Biblioteka ssh została zaprojektowana do używania przez programistów | |
33 | potrzebujących działającej implementacji SSH w postaci biblioteki. Za | |
34 | pomocą libssh można przesyłać pliki, zdalnie uruchamiać programy bądź | |
35 | też tworzyć na ich potrzeby bezpieczne i przezroczyste tunele. Dzięki | |
36 | zawartej implementacji protokołu Secure FTP programista ma możliwość | |
37 | łatwego wykonywania operacji na zdalnych plikach bez konieczności | |
38 | korzystania z dodatkowego zewnętrznego oprogramowania poza biblioteką | |
3d42e4d2 | 39 | libcrypto (pakiet openssl). |
40 | ||
41 | %package devel | |
42 | Summary: Header files for libssh library | |
eacbfac0 | 43 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libssh |
3d42e4d2 | 44 | Group: Development/Libraries |
5deab50c | 45 | Requires: %{name} = %{epoch}:%{version}-%{release} |
3d42e4d2 | 46 | |
47 | %description devel | |
48 | Header files for libssh library. | |
49 | ||
5f7c7686 JR |
50 | %description devel -l pl.UTF-8 |
51 | Pliki nagłówkowe biblioteki libssh. | |
3d42e4d2 | 52 | |
53 | %prep | |
e27e5035 | 54 | %setup -q |
3d42e4d2 | 55 | |
3d42e4d2 | 56 | %build |
0d5dc366 | 57 | install -d build |
411f4352 | 58 | cd build |
26932d9e JB |
59 | %cmake .. \ |
60 | -DWITH_SSH1=ON | |
411f4352 AG |
61 | |
62 | %{__make} | |
3d42e4d2 | 63 | |
64 | %install | |
65 | rm -rf $RPM_BUILD_ROOT | |
3d42e4d2 | 66 | |
0d5dc366 | 67 | %{__make} -C build install \ |
3d42e4d2 | 68 | DESTDIR=$RPM_BUILD_ROOT \ |
69 | libdir=%{_libdir} | |
70 | ||
71 | %clean | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
26932d9e JB |
74 | %post -p /sbin/ldconfig |
75 | %postun -p /sbin/ldconfig | |
76 | ||
3d42e4d2 | 77 | %files |
78 | %defattr(644,root,root,755) | |
26932d9e JB |
79 | %doc AUTHORS BSD ChangeLog README |
80 | %attr(755,root,root) %{_libdir}/libssh.so.*.*.* | |
81 | %attr(755,root,root) %ghost %{_libdir}/libssh.so.4 | |
82 | %attr(755,root,root) %{_libdir}/libssh_threads.so.*.*.* | |
83 | %attr(755,root,root) %ghost %{_libdir}/libssh_threads.so.4 | |
3d42e4d2 | 84 | |
85 | %files devel | |
86 | %defattr(644,root,root,755) | |
26932d9e JB |
87 | %attr(755,root,root) %{_libdir}/libssh.so |
88 | %attr(755,root,root) %{_libdir}/libssh_threads.so | |
bc97a6a9 | 89 | %{_includedir}/libssh |
26932d9e JB |
90 | %{_pkgconfigdir}/libssh.pc |
91 | %{_pkgconfigdir}/libssh_threads.pc | |
b81cb09a | 92 | %{_libdir}/cmake/libssh |