]> git.pld-linux.org Git - packages/jitterentropy.git/blob - jitterentropy.spec
d9026cda9a23a33fcb13a628c014bb7231bb3ba1
[packages/jitterentropy.git] / jitterentropy.spec
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}" \
44         CFLAGS="%{rpmcppflags} %{rpmcflags} -fPIC -O0"
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48
49 %{__make} install install-static \
50         DESTDIR=$RPM_BUILD_ROOT \
51         PREFIX="%{_prefix}" \
52         LIBDIR="%{_lib}" \
53         INSTALL_STRIP=install
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %post   -p /sbin/ldconfig
59 %postun -p /sbin/ldconfig
60
61 %files
62 %defattr(644,root,root,755)
63 %doc CHANGES.md COPYING COPYING.bsd COPYING.gplv2 README.md
64 %attr(755,root,root) %{_libdir}/libjitterentropy.so.*.*.*
65 %attr(755,root,root) %ghost %{_libdir}/libjitterentropy.so.3
66
67 %files devel
68 %defattr(644,root,root,755)
69 %attr(755,root,root) %{_libdir}/libjitterentropy.so
70 %{_includedir}/jitterentropy.h
71 %{_includedir}/jitterentropy-base-user.h
72 %{_mandir}/man3/jitterentropy.3*
73
74 %files static
75 %defattr(644,root,root,755)
76 %{_libdir}/libjitterentropy.a
This page took 0.058082 seconds and 2 git commands to generate.