]> git.pld-linux.org Git - packages/jitterentropy.git/blob - jitterentropy.spec
- don't package COPYING.gplv2 (generic GPL2 text, available in common-licenses)
[packages/jitterentropy.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 export LDFLAGS="%{rpmldflags} -lpthread"
58 %{__make} \
59         CC="%{__cc}" \
60         CFLAGS="%{rpmcppflags} %{rpmcflags} -fPIC -O0"
61
62 %install
63 rm -rf $RPM_BUILD_ROOT
64
65 %{__make} install install-static \
66         DESTDIR=$RPM_BUILD_ROOT \
67         PREFIX="%{_prefix}" \
68         LIBDIR="%{_lib}" \
69         INSTALL_STRIP=install
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)
79 %doc CHANGES.md COPYING COPYING.bsd README.md
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
This page took 0.068642 seconds and 3 git commands to generate.