rng-tools/rng-tools.spec
2020-02-20 13:44:58 +08:00

61 lines
1.3 KiB
RPMSpec

Name: rng-tools
Version: 6.3.1
Release: 3
Summary: Random number generator daemon
License: GPLv2+
URL: https://github.com/nhorman/rng-tools
Source0: https://github.com/nhorman/rng-tools/archive/v%{version}.tar.gz
Source1: rngd.service
#Dependency
BuildRequires: gcc make gettext systemd autoconf automake
BuildRequires: libgcrypt-devel libsysfs-devel libcurl-devel libxml2-devel openssl-devel
Requires: libgcrypt libsysfs openssl libxml2 libcurl
%{?systemd_requires}
%description
Rng-tools is a random number generator daemon.It monitors a set of entropy sources,
and supplies entropy from them to the system kernel's /dev/random machinery.
%package_help
%prep
%autosetup -n %{name}-%{version}
%build
./autogen.sh
%configure
%make_build
%install
%make_install
install -D -t $RPM_BUILD_ROOT%{_unitdir} -m 0644 %{SOURCE1}
%pre
%post
%systemd_post rngd.service
%preun
%systemd_preun rngd.service
%postun
%systemd_postun_with_restart rngd.service
%files
%defattr(-,root,root)
%license COPYING
%doc AUTHORS NEWS README
%{_bindir}/rngtest
%{_sbindir}/rngd
%attr(0644,root,root) %{_unitdir}/rngd.service
%files help
%{_mandir}/man1/rngtest.1.*
%{_mandir}/man8/rngd.8.*
%changelog
* Wed Feb 19 2020 wanjiankang <wanjiankang@huawei.com> - 6.3.1-3
- Package init