]>
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 |
0d5dc366 | 4 | Version: 0.4.0 |
5 | Release: 0.git.1 | |
5deab50c | 6 | Epoch: 1 |
3d42e4d2 | 7 | License: LGPL |
8 | Group: Libraries | |
0d5dc366 | 9 | #Source0: http://www.libssh.org/files/%{name}-%{version}.tar.gz |
10 | Source0: %{name}-%{version}-git.tar.gz | |
11 | # Source0-md5: 0c8db6b22944b0d4f50d3d3dbdf646ae | |
411f4352 AG |
12 | URL: http://www.libssh.org/ |
13 | BuildRequires: cmake >= 2.6.0 | |
14 | BuildRequires: openssl-devel >= 0.9.8 | |
3d42e4d2 | 15 | BuildRequires: zlib-devel |
0d5dc366 | 16 | BuildRequires: doxygen |
17 | BuildRequires: tetex-dvips | |
18 | BuildRequires: tetex-format-latex | |
19 | BuildRequires: tetex-makeindex | |
3d42e4d2 | 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 | |
0d5dc366 | 54 | %setup -q -n %{name}-%{version}-git |
3d42e4d2 | 55 | |
3d42e4d2 | 56 | %build |
0d5dc366 | 57 | install -d build |
411f4352 AG |
58 | cd build |
59 | %cmake \ | |
60 | -DCMAKE_BUILD_TYPE="Release" \ | |
61 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
62 | %if "%{_lib}" == "lib64" | |
63 | -DLIB_SUFFIX=64 \ | |
64 | %endif | |
65 | .. | |
66 | ||
67 | %{__make} | |
3d42e4d2 | 68 | |
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
3d42e4d2 | 71 | |
0d5dc366 | 72 | %{__make} -C build install \ |
3d42e4d2 | 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 |