]> git.pld-linux.org Git - SPECS.git/blob - jitterentropy.spec
SPECS updated Sun 1 Aug 20:28:02 CEST 2021
[SPECS.git] / jitterentropy.spec
1 Summary:        Library implementing the jitter entropy source
2 Summary(pl.UTF-8):      Biblioteka implementująca źródło entropii jitter
3 Name:           jitterentropy
4 Version:        3.0.2
5 Release:        1
6 License:        BSD or GPL v2+
7 Group:          Libraries
8 Source0:        http://www.chronox.de/jent/%{name}-library-%{version}.tar.xz
9 # Source0-md5:  f09160fa89953444bdb73a071abf8484
10 URL:            http://www.chronox.de/jent.html
11 BuildRequires:  tar >= 1:1.22
12 BuildRequires:  xz
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 %description
16 The Jitter RNG provides a noise source using the CPU execution timing
17 jitter. It does not depend on any system resource other than a
18 high-resolution time stamp. It is a small-scale, yet fast entropy
19 source that is viable in almost all environments and on a lot of CPU
20 architectures.
21
22 %description -l pl.UTF-8
23 Jitter RNG zapewnia źródło szumu wykorzystujące fluktuacje czasu
24 wykonywania kodu przez CPU. Nie zależy od żadnego zasobu systemowego
25 innego niż znacznik czasu wysokiej rozdzielczości. Jest to źródło
26 entropii małej skali, ale szybkie, opłacalne w prawie każdym
27 środowisku, przy wielu architekturach CPU.
28
29 %package devel
30 Summary:        Header files for jitterentropy library
31 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki jitterentropy
32 Group:          Development/Libraries
33 Requires:       %{name} = %{version}-%{release}
34
35 %description devel
36 Header files for jitterentropy library.
37
38 %description devel -l pl.UTF-8
39 Pliki nagłówkowe biblioteki jitterentropy.
40
41 %package static
42 Summary:        Static jitterentropy library
43 Summary(pl.UTF-8):      Statyczna biblioteka jitterentropy
44 Group:          Development/Libraries
45 Requires:       %{name}-devel = %{version}-%{release}
46
47 %description static
48 Static jitterentropy library.
49
50 %description static -l pl.UTF-8
51 Statyczna biblioteka jitterentropy.
52
53 %prep
54 %setup -q -n %{name}-library-%{version}
55
56 %build
57 # NOTE: jitterentropy-base.c must be compiled with optimizations disabled
58 LDFLAGS="%{rpmldflags}" \
59 %{__make} \
60         CC="%{__cc}" \
61         CFLAGS="%{rpmcppflags} %{rpmcflags} -fPIC -O0 -fwrapv -Wall -Wextra" \
62         LIBRARIES="rt pthread"
63
64 %install
65 rm -rf $RPM_BUILD_ROOT
66
67 %{__make} install install-static \
68         DESTDIR=$RPM_BUILD_ROOT \
69         PREFIX="%{_prefix}" \
70         LIBDIR="%{_lib}" \
71         INSTALL_STRIP=install
72
73 %clean
74 rm -rf $RPM_BUILD_ROOT
75
76 %post   -p /sbin/ldconfig
77 %postun -p /sbin/ldconfig
78
79 %files
80 %defattr(644,root,root,755)
81 %doc CHANGES.md COPYING COPYING.bsd README.md
82 %attr(755,root,root) %{_libdir}/libjitterentropy.so.*.*.*
83 %attr(755,root,root) %ghost %{_libdir}/libjitterentropy.so.3
84
85 %files devel
86 %defattr(644,root,root,755)
87 %attr(755,root,root) %{_libdir}/libjitterentropy.so
88 %{_includedir}/jitterentropy.h
89 %{_includedir}/jitterentropy-base-user.h
90 %{_mandir}/man3/jitterentropy.3*
91
92 %files static
93 %defattr(644,root,root,755)
94 %{_libdir}/libjitterentropy.a
This page took 0.254921 seconds and 3 git commands to generate.