]> git.pld-linux.org Git - packages/jitterentropy.git/blame - jitterentropy.spec
enforce -fPIC and fix LIBDIR
[packages/jitterentropy.git] / jitterentropy.spec
CommitLineData
f87ec48d
JP
1Summary: Library implementing the jitter entropy source
2Name: jitterentropy
3Version: 3.0.2
4Release: 1
5License: BSD or GPL v2+
6Group: Libraries
7Source0: http://www.chronox.de/jent/%{name}-library-%{version}.tar.xz
8# Source0-md5: f09160fa89953444bdb73a071abf8484
9URL: http://www.chronox.de/jent.html
10BuildRequires: tar >= 1:1.22
11BuildRequires: xz
12BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14%description
15The Jitter RNG provides a noise source using the CPU execution timing
16jitter. It does not depend on any system resource other than a
17high-resolution time stamp. It is a small-scale, yet fast entropy
18source that is viable in almost all environments and on a lot of CPU
19architectures.
20
21%package devel
22Summary: Header files for jitterentropy library
23Group: Development/Libraries
24Requires: %{name} = %{version}-%{release}
25
26%description devel
27Header files for jitterentropy library.
28
29%package static
30Summary: Static jitterentropy library
31Group: Development/Libraries
32Requires: %{name}-devel = %{version}-%{release}
33
34%description static
35Static jitterentropy library.
36
37%prep
38%setup -q -n %{name}-library-%{version}
39
40%build
41export LDFLAGS="%{rpmldflags} -lpthread"
42%{__make} \
43 CC="%{__cc}" \
50fe370c 44 CFLAGS="%{rpmcppflags} %{rpmcflags} -fPIC -O0"
f87ec48d
JP
45
46%install
47rm -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
55rm -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
This page took 0.067006 seconds and 4 git commands to generate.