1 Summary: Library implementing the jitter entropy source
2 Summary(pl.UTF-8): Biblioteka implementująca źródło entropii jitter
6 License: BSD or GPL v2+
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
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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
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.
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}
36 Header files for jitterentropy library.
38 %description devel -l pl.UTF-8
39 Pliki nagłówkowe biblioteki jitterentropy.
42 Summary: Static jitterentropy library
43 Summary(pl.UTF-8): Statyczna biblioteka jitterentropy
44 Group: Development/Libraries
45 Requires: %{name}-devel = %{version}-%{release}
48 Static jitterentropy library.
50 %description static -l pl.UTF-8
51 Statyczna biblioteka jitterentropy.
54 %setup -q -n %{name}-library-%{version}
57 # NOTE: jitterentropy-base.c must be compiled with optimizations disabled
58 LDFLAGS="%{rpmldflags}" \
61 CFLAGS="%{rpmcppflags} %{rpmcflags} -fPIC -O0 -fwrapv -Wall -Wextra" \
62 LIBRARIES="rt pthread"
65 rm -rf $RPM_BUILD_ROOT
67 %{__make} install install-static \
68 DESTDIR=$RPM_BUILD_ROOT \
74 rm -rf $RPM_BUILD_ROOT
76 %post -p /sbin/ldconfig
77 %postun -p /sbin/ldconfig
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
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*
93 %defattr(644,root,root,755)
94 %{_libdir}/libjitterentropy.a