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