]> git.pld-linux.org Git - packages/libssh.git/blob - libssh.spec
up to 0.10.6 (fixes CVE-2023-6004 CVE-2023-48795 CVE-2023-6918)
[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.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.10/%{name}-%{version}.tar.xz
10 # Source0-md5:  5f46371aa8bfa7e6bff7f2a6f3edf80e
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:  tar >= 1:1.22
17 BuildRequires:  xz
18 BuildRequires:  zlib-devel >= 1.2
19 Requires:       zlib >= 1.2
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
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ą
39 libcrypto (pakiet openssl).
40
41 %package devel
42 Summary:        Header files for libssh library
43 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libssh
44 Group:          Development/Libraries
45 Requires:       %{name} = %{epoch}:%{version}-%{release}
46
47 %description devel
48 Header files for libssh library.
49
50 %description devel -l pl.UTF-8
51 Pliki nagłówkowe biblioteki libssh.
52
53 %prep
54 %setup -q
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
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %post   -p /sbin/ldconfig
75 %postun -p /sbin/ldconfig
76
77 %files
78 %defattr(644,root,root,755)
79 %doc AUTHORS BSD CHANGELOG README
80 %attr(755,root,root) %{_libdir}/libssh.so.*.*.*
81 %attr(755,root,root) %ghost %{_libdir}/libssh.so.4
82
83 %files devel
84 %defattr(644,root,root,755)
85 %attr(755,root,root) %{_libdir}/libssh.so
86 %{_includedir}/libssh
87 %{_pkgconfigdir}/libssh.pc
88 %{_libdir}/cmake/libssh
This page took 0.149701 seconds and 3 git commands to generate.