rng-tools/rng-tools.spec

89 lines
2.2 KiB
RPMSpec
Raw Permalink Normal View History

Name: rng-tools
Version: 6.12
Release: 2mamba
Summary: A random number generator daemon
Group: System/Kernel and Hardware
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/nhorman/rng-tools.git
Source: https://github.com/nhorman/rng-tools.git/v%{version}/rng-tools-%{version}.tar.bz2
Patch0: rng-tools-6.10-pkcs11-path.patch
Source1: rngd.service
Source2: rngd-sysconfig
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libcurl-devel
BuildRequires: libjansson-devel
BuildRequires: libopenssl-devel
BuildRequires: libp11-devel
BuildRequires: libxml2-devel
## AUTOBUILDREQ-END
Requires: libopensc
%description
rng-tools provides 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.
%debug_package
%prep
%setup -q
./autogen.sh
%build
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/rngd.service
install -D -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/rngd
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
%systemd_post rngd
:
%preun
%systemd_preun rngd
:
%postun
%systemd_postun rngd
:
%files
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/sysconfig/rngd
%{_bindir}/rngtest
%{_sbindir}/rngd
%{_unitdir}/rngd.service
%{_mandir}/man1/rngtest.1*
%{_mandir}/man8/rngd.8*
%doc AUTHORS COPYING
%changelog
* Sat May 01 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 6.12-2mamba
- systemd service fixed
* Sat Mar 13 2021 Automatic Build System <autodist@mambasoft.it> 6.12-1mamba
- automatic version update by autodist
* Mon Jan 11 2021 Automatic Build System <autodist@mambasoft.it> 6.11-1mamba
- automatic version update by autodist
* Sat Dec 26 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 6.10-3mamba
- fixed systemd file
* Tue Apr 07 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 6.10-2mamba
- add systemd service file; require libopensc
* Sun Mar 29 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 6.10-1mamba
- package created using the webbuild interface