1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
|
#
# Sample spec file for haveged and haveged-devel
# Copyright (c) 2013-2014
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
%define have_systemd 0
Name: haveged
Version: 1.9
Release: 0
License: GPLv3
Group: System Environment/Daemons
Summary: Feed entropy into random pool
URL: http://www.issihosts.com/haveged/
Source0: http://www.issihosts.com/haveged/haveged-%{version}.tar.gz
BuildRoot: %{_builddir}/%{name}-{%version}-build
%if 0%{?have_systemd}
BuildRequires: systemd
%endif
%description
The haveged daemon feeds the linux entropy pool with random
numbers generated from hidden processor state.
%package devel
Summary: haveged development files
Group: Development/Libraries
%description devel
Headers and shared object symbolic links for the haveged library
This package contains the haveged implementation of the HAVEGE
algorithm and supporting features.
%prep
%setup -q
%build
%configure \
--enable-daemon\
--enable-init=sysv.redhat
make
%check
make check
%install
%makeinstall
%{__install} -D -m0755 init.d/haveged %{buildroot}%{_sysconfdir}/init.d/%{name}
%if 0%{?have_systemd}
%{__install} -D -m0644 init.d/havege.service %{buildroot}%{_unitdir}/%{name}.service
%endif
%{__rm} -f %{buildroot}%{_libdir}/libhavege.*a
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-, root, root, -)
%doc COPYING
%{_mandir}/man8/haveged.8*
%{_sbindir}/haveged
%{_sysconfdir}/init.d/haveged
%if 0%{?have_systemd}
%{_unitdir}/haveged.service
%endif
%files devel
%doc COPYING
%defattr(-, root, root, -)
%{_mandir}/man3/libhavege.3*
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/havege.h
%doc contrib/build/havege_sample.c
%{_libdir}/*.so*
|