]> git.pld-linux.org Git - packages/haveged.git/blame - haveged.spec
up to 1.9.11
[packages/haveged.git] / haveged.spec
CommitLineData
f14809c7
ER
1Summary: A Linux entropy source using the HAVEGE algorithm
2Name: haveged
402f6375 3Version: 1.9.11
6d86cb73 4Release: 1
f14809c7
ER
5License: GPL v3+
6Group: Daemons
6d86cb73 7Source0: https://github.com/jirka-h/haveged/archive/v%{version}.tar.gz
402f6375 8# Source0-md5: f4a265ee27281752273812e2287cf9f9
f14809c7 9URL: http://www.irisa.fr/caps/projects/hipsor/
6d86cb73 10BuildRequires: autoconf >= 2.59
f14809c7 11BuildRequires: automake
6d86cb73
JP
12BuildRequires: libtool
13BuildRequires: rpmbuild(macros) >= 1.644
14BuildRequires: systemd-devel
15Requires(post,preun,postun): systemd-units >= 38
16Requires: systemd-units >= 38
f14809c7
ER
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%description
20A Linux entropy source using the HAVEGE algorithm
21
22Haveged is a user space entropy daemon which is not dependent upon the
23standard mechanisms for harvesting randomness for the system entropy
24pool. This is important in systems with high entropy needs or limited
25user interaction (e.g. headless servers).
26
27Haveged uses HAVEGE (HArdware Volatile Entropy Gathering and
28Expansion) to maintain a 1M pool of random bytes used to fill
29/dev/random whenever the supply of random bits in /dev/random falls
30below the low water mark of the device. The principle inputs to
31haveged are the sizes of the processor instruction and data caches
32used to setup the HAVEGE collector. The haveged default is a 4kb data
33cache and a 16kb instruction cache. On machines with a cpuid
34instruction, haveged will attempt to select appropriate values from
35internal tables.
36
37%package libs
38Summary: Shared libraries for HAVEGE algorithm
39Group: Libraries
40
41%description libs
42Shared libraries for HAVEGE algorithm.
43
44%package devel
45Summary: Headers and shared development libraries for HAVEGE algorithm
46Group: Development/Libraries
47Requires: %{name}-devel = %{version}-%{release}
48
49%description devel
50Headers and shared object symbolic links for the HAVEGE algorithm
51
52%prep
53%setup -q
54
55%build
6d86cb73
JP
56%{__libtoolize}
57%{__aclocal}
58%{__autoconf}
59%{__autoheader}
60%{__automake}
f14809c7 61%configure \
6d86cb73
JP
62 --disable-static \
63 --enable-init=service.fedora
f14809c7
ER
64# SMP build is not working
65%{__make} -j1
66
f14809c7
ER
67%install
68rm -rf $RPM_BUILD_ROOT
69%{__make} install \
f14809c7
ER
70 DESTDIR=$RPM_BUILD_ROOT
71
72install -d $RPM_BUILD_ROOT%{systemdunitdir}
73#cp -p %{SOURCE1} $RPM_BUILD_ROOT%{systemdunitdir}/haveged.service
74
75# We don't ship .la files.
76rm $RPM_BUILD_ROOT%{_libdir}/libhavege.la
77
78%clean
79rm -rf $RPM_BUILD_ROOT
80
81%post libs -p /sbin/ldconfig
82%postun libs -p /sbin/ldconfig
83
f14809c7
ER
84%post
85%systemd_post haveged.service
86
87%preun
88%systemd_preun haveged.service
89
90%postun
6d86cb73 91%systemd_reload
f14809c7
ER
92
93%files
94%defattr(644,root,root,755)
6d86cb73 95%doc AUTHORS ChangeLog NEWS README contrib/build/havege_sample.c
f14809c7
ER
96%attr(755,root,root) %{_sbindir}/haveged
97%{_mandir}/man8/haveged.8*
6d86cb73 98%{systemdunitdir}/haveged.service
f14809c7
ER
99
100%files libs
101%defattr(644,root,root,755)
102%attr(755,root,root) %{_libdir}/libhavege.so.*.*.*
fe12b270 103%ghost %{_libdir}/libhavege.so.2
f14809c7
ER
104
105%files devel
106%defattr(644,root,root,755)
107%{_includedir}/%{name}
108%{_libdir}/libhavege.so
109%{_mandir}/man3/libhavege.3*
This page took 0.090356 seconds and 4 git commands to generate.