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