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