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