]>
Commit | Line | Data |
---|---|---|
f87ec48d | 1 | Summary: Library implementing the jitter entropy source |
09e70882 | 2 | Summary(pl.UTF-8): Biblioteka implementująca źródło entropii jitter |
f87ec48d JP |
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 | ||
09e70882 JB |
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 | ||
f87ec48d JP |
29 | %package devel |
30 | Summary: Header files for jitterentropy library | |
09e70882 | 31 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki jitterentropy |
f87ec48d JP |
32 | Group: Development/Libraries |
33 | Requires: %{name} = %{version}-%{release} | |
34 | ||
35 | %description devel | |
36 | Header files for jitterentropy library. | |
37 | ||
09e70882 JB |
38 | %description devel -l pl.UTF-8 |
39 | Pliki nagłówkowe biblioteki jitterentropy. | |
40 | ||
f87ec48d JP |
41 | %package static |
42 | Summary: Static jitterentropy library | |
09e70882 | 43 | Summary(pl.UTF-8): Statyczna biblioteka jitterentropy |
f87ec48d JP |
44 | Group: Development/Libraries |
45 | Requires: %{name}-devel = %{version}-%{release} | |
46 | ||
47 | %description static | |
48 | Static jitterentropy library. | |
49 | ||
09e70882 JB |
50 | %description static -l pl.UTF-8 |
51 | Statyczna biblioteka jitterentropy. | |
52 | ||
f87ec48d JP |
53 | %prep |
54 | %setup -q -n %{name}-library-%{version} | |
55 | ||
56 | %build | |
57 | export LDFLAGS="%{rpmldflags} -lpthread" | |
58 | %{__make} \ | |
59 | CC="%{__cc}" \ | |
50fe370c | 60 | CFLAGS="%{rpmcppflags} %{rpmcflags} -fPIC -O0" |
f87ec48d JP |
61 | |
62 | %install | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %{__make} install install-static \ | |
66 | DESTDIR=$RPM_BUILD_ROOT \ | |
67 | PREFIX="%{_prefix}" \ | |
fa5b98f9 JP |
68 | LIBDIR="%{_lib}" \ |
69 | INSTALL_STRIP=install | |
f87ec48d JP |
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) | |
5d2a5844 | 79 | %doc CHANGES.md COPYING COPYING.bsd README.md |
f87ec48d JP |
80 | %attr(755,root,root) %{_libdir}/libjitterentropy.so.*.*.* |
81 | %attr(755,root,root) %ghost %{_libdir}/libjitterentropy.so.3 | |
82 | ||
83 | %files devel | |
84 | %defattr(644,root,root,755) | |
85 | %attr(755,root,root) %{_libdir}/libjitterentropy.so | |
86 | %{_includedir}/jitterentropy.h | |
87 | %{_includedir}/jitterentropy-base-user.h | |
88 | %{_mandir}/man3/jitterentropy.3* | |
89 | ||
90 | %files static | |
91 | %defattr(644,root,root,755) | |
92 | %{_libdir}/libjitterentropy.a |