]>
Commit | Line | Data |
---|---|---|
f87ec48d JP |
1 | Summary: Library implementing the jitter entropy source |
2 | Name: jitterentropy | |
3 | Version: 3.0.2 | |
4 | Release: 1 | |
5 | License: BSD or GPL v2+ | |
6 | Group: Libraries | |
7 | Source0: http://www.chronox.de/jent/%{name}-library-%{version}.tar.xz | |
8 | # Source0-md5: f09160fa89953444bdb73a071abf8484 | |
9 | URL: http://www.chronox.de/jent.html | |
10 | BuildRequires: tar >= 1:1.22 | |
11 | BuildRequires: xz | |
12 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
13 | ||
14 | %description | |
15 | The Jitter RNG provides a noise source using the CPU execution timing | |
16 | jitter. It does not depend on any system resource other than a | |
17 | high-resolution time stamp. It is a small-scale, yet fast entropy | |
18 | source that is viable in almost all environments and on a lot of CPU | |
19 | architectures. | |
20 | ||
21 | %package devel | |
22 | Summary: Header files for jitterentropy library | |
23 | Group: Development/Libraries | |
24 | Requires: %{name} = %{version}-%{release} | |
25 | ||
26 | %description devel | |
27 | Header files for jitterentropy library. | |
28 | ||
29 | %package static | |
30 | Summary: Static jitterentropy library | |
31 | Group: Development/Libraries | |
32 | Requires: %{name}-devel = %{version}-%{release} | |
33 | ||
34 | %description static | |
35 | Static jitterentropy library. | |
36 | ||
37 | %prep | |
38 | %setup -q -n %{name}-library-%{version} | |
39 | ||
40 | %build | |
41 | export LDFLAGS="%{rpmldflags} -lpthread" | |
42 | %{__make} \ | |
43 | CC="%{__cc}" \ | |
50fe370c | 44 | CFLAGS="%{rpmcppflags} %{rpmcflags} -fPIC -O0" |
f87ec48d JP |
45 | |
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %{__make} install install-static \ | |
50 | DESTDIR=$RPM_BUILD_ROOT \ | |
51 | PREFIX="%{_prefix}" \ | |
50fe370c | 52 | LIBDIR="%{_lib}" |
f87ec48d JP |
53 | |
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %post -p /sbin/ldconfig | |
58 | %postun -p /sbin/ldconfig | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
62 | %doc CHANGES.md COPYING COPYING.bsd COPYING.gplv2 README.md | |
63 | %attr(755,root,root) %{_libdir}/libjitterentropy.so.*.*.* | |
64 | %attr(755,root,root) %ghost %{_libdir}/libjitterentropy.so.3 | |
65 | ||
66 | %files devel | |
67 | %defattr(644,root,root,755) | |
68 | %attr(755,root,root) %{_libdir}/libjitterentropy.so | |
69 | %{_includedir}/jitterentropy.h | |
70 | %{_includedir}/jitterentropy-base-user.h | |
71 | %{_mandir}/man3/jitterentropy.3* | |
72 | ||
73 | %files static | |
74 | %defattr(644,root,root,755) | |
75 | %{_libdir}/libjitterentropy.a |