]> git.pld-linux.org Git - packages/libssh.git/blob - libssh.spec
f5e9cc826756bb6813586da00558cbcd7bc8f884
[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.9.6
5 Release:        1
6 Epoch:          1
7 License:        LGPL v2.1+; parts are BSD-licensed
8 Group:          Libraries
9 Source0:        https://www.libssh.org/files/0.9/%{name}-%{version}.tar.xz
10 # Source0-md5:  0174df377361221a31a9576afbaba330
11 Patch0:         openssl3.patch
12 URL:            http://www.libssh.org/
13 BuildRequires:  cmake >= 3.3.0
14 BuildRequires:  heimdal-devel
15 BuildRequires:  openssl-devel >= 0.9.8
16 BuildRequires:  rpmbuild(macros) >= 1.605
17 BuildRequires:  zlib-devel >= 1.2
18 Requires:       zlib >= 1.2
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
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ą
38 libcrypto (pakiet openssl).
39
40 %package devel
41 Summary:        Header files for libssh library
42 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libssh
43 Group:          Development/Libraries
44 Requires:       %{name} = %{epoch}:%{version}-%{release}
45
46 %description devel
47 Header files for libssh library.
48
49 %description devel -l pl.UTF-8
50 Pliki nagłówkowe biblioteki libssh.
51
52 %prep
53 %setup -q
54 %patch0 -p1
55
56 %build
57 install -d build
58 cd build
59 %cmake .. \
60         -DWITH_SSH1=ON \
61         -DWITH_ZLIB=ON
62
63 %{__make}
64
65 %install
66 rm -rf $RPM_BUILD_ROOT
67
68 %{__make} -C build install \
69         DESTDIR=$RPM_BUILD_ROOT \
70         libdir=%{_libdir}
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %post   -p /sbin/ldconfig
76 %postun -p /sbin/ldconfig
77
78 %files
79 %defattr(644,root,root,755)
80 %doc AUTHORS BSD ChangeLog README
81 %attr(755,root,root) %{_libdir}/libssh.so.*.*.*
82 %attr(755,root,root) %ghost %{_libdir}/libssh.so.4
83
84 %files devel
85 %defattr(644,root,root,755)
86 %attr(755,root,root) %{_libdir}/libssh.so
87 %{_includedir}/libssh
88 %{_pkgconfigdir}/libssh.pc
89 %{_libdir}/cmake/libssh
This page took 0.064145 seconds and 2 git commands to generate.