]> git.pld-linux.org Git - packages/libkcapi.git/blame - libkcapi.spec
upstream fix disabling console logging by default; rel 2
[packages/libkcapi.git] / libkcapi.spec
CommitLineData
308bce6a
JB
1#
2# Conditional build:
3%bcond_without static_libs # static library
4# these functionalities require kernel patches to work (check defines in <linux/if_alg.h>)
5%bcond_with kernel_asym # ALG_OP_SIGN/ALG_OP_VERIFY interfaces
6%bcond_with kernel_kpp # ALG_OP_KEYGEN/ALG_OP_SSGEN interfaces
7#
8Summary: Linux Kernel Crypto API User Space Interface Library
9Summary(pl.UTF-8): Biblioteka interfejsu przestrzeni użytownika do API kryptograficznego jądra Linuksa
10Name: libkcapi
be7ebbfe 11Version: 1.4.0
d3ac244e 12Release: 2
308bce6a
JB
13License: BSD or GPL v2
14Group: Libraries
15#Source0Download: https://www.chronox.de/libkcapi.html
16Source0: https://www.chronox.de/libkcapi/%{name}-%{version}.tar.xz
be7ebbfe 17# Source0-md5: ca877231a346dfeefb50fe4311d2df5d
d3ac244e 18Patch0: disable-log.patch
308bce6a
JB
19URL: https://www.chronox.de/libkcapi.html
20BuildRequires: autoconf >= 2.50
21BuildRequires: automake
22BuildRequires: libtool >= 2:2
23BuildRequires: tar >= 1:1.22
24BuildRequires: xmlto
25BuildRequires: xz
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
29libkcapi allows user-space to access the Linux kernel crypto API.
30
31libkcapi uses this Netlink interface and exports easy to use APIs so
32that a developer does not need to consider the low-level Netlink
33interface handling.
34
35The library does not implement any cipher algorithms. All consumer
36requests are sent to the kernel for processing. Results from the
37kernel crypto API are returned to the consumer via the library API.
38
39The kernel interface and therefore this library can be used by
40unprivileged processes.
41
42%description -l pl.UTF-8
43libkcapi pozwala na dostęp z przestrzeni użytkownika do API
44kryptograficznego jądra Linuksa.
45
46libkcapi wykorzystuje ten interfejs Netlink i eksportuje łatwe w
47użyciu API, dzięki czemu programista nie musi obsługiwać
48niskopoziomowego interfejsu Netlink.
49
50Biblioteka nie implementuje żadnych algorytmów szyfrów. Wszystkie
51żądania konsumenckie są wysyłane do przetworzenia przez jądro.
52Wyniki z API kryptograficznego jądra są zwracane do konsumenta
53poprzez API biblioteki.
54
55Interfejs jądra, a więc także ta biblioteka, może być używana przez
56procesy nieuprzywilejowane.
57
58%package devel
59Summary: Header files for libkcapi library
60Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libkcapi
61Group: Development/Libraries
62Requires: %{name} = %{version}-%{release}
63
64%description devel
65Header files for libkcapi library.
66
67%description devel -l pl.UTF-8
68Pliki nagłówkowe biblioteki libkcapi.
69
70%package static
71Summary: Static libkcapi library
72Summary(pl.UTF-8): Statyczna biblioteka libkcapi
73Group: Development/Libraries
74Requires: %{name}-devel = %{version}-%{release}
75
76%description static
77Static libkcapi library.
78
79%description static -l pl.UTF-8
80Statyczna biblioteka libkcapi.
81
82%prep
83%setup -q
d3ac244e 84%patch0 -p1
308bce6a
JB
85
86%build
87%{__libtoolize}
88%{__aclocal} -I m4
89%{__autoconf}
90%{__automake}
91%configure \
92 --enable-kcapi-dgstapp \
93 --enable-kcapi-encapp \
94 --enable-kcapi-rngapp \
95 %{?with_kernel_asym:--enable-lib-asym} \
96 %{?with_kernel_kpp:--enable-lib-kpp} \
97 %{!?with_static_libs:--disable-static}
98%{__make}
99
100%install
101rm -rf $RPM_BUILD_ROOT
102
103%{__make} install \
104 DESTDIR=$RPM_BUILD_ROOT
105
106# obsoleted by pkg-config
107%{__rm} $RPM_BUILD_ROOT%{_libdir}/libkcapi.la
108
109%clean
110rm -rf $RPM_BUILD_ROOT
111
112%post -p /sbin/ldconfig
113%postun -p /sbin/ldconfig
114
115%files
116%defattr(644,root,root,755)
117%doc CHANGES.md COPYING COPYING.bsd README.md TODO
118%attr(755,root,root) %{_bindir}/kcapi-dgst
119%attr(755,root,root) %{_bindir}/kcapi-enc
120%attr(755,root,root) %{_bindir}/kcapi-rng
121%attr(755,root,root) %{_libdir}/libkcapi.so.*.*.*
122%attr(755,root,root) %ghost %{_libdir}/libkcapi.so.1
123%{_mandir}/man1/kcapi-dgst.1*
124%{_mandir}/man1/kcapi-enc.1*
125%{_mandir}/man1/kcapi-rng.1*
126
127%files devel
128%defattr(644,root,root,755)
129%attr(755,root,root) %{_libdir}/libkcapi.so
130%{_includedir}/kcapi.h
131%{_pkgconfigdir}/libkcapi.pc
132%{_mandir}/man3/kcapi_*.3*
133
134%if %{with static_libs}
135%files static
136%defattr(644,root,root,755)
137%{_libdir}/libkcapi.a
138%endif
This page took 0.149604 seconds and 4 git commands to generate.