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