File urngd.spec of Package urngd

#
# spec file for package urgnd
#
# Copyright (c) 2024, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           urngd
Version:        1.0.2+git20231031
Release:        0
Summary:        Micro non-physical true random number generator based on timing jitter
License:        GPL-2.0-only
URL:            https://git.openwrt.org/?p=project/urgnd.git;a=summary
Source:         %{name}-%{version}.tar.xz
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  libubox-devel

%description
urngd is OpenWrt's micro non-physical true random number generator based on timing jitter.
Using the Jitter RNG core, the rngd provides an entropy source that feeds into the Linux
/dev/random device if its entropy runs low. It updates the /dev/random entropy estimator
such that the newly provided entropy unblocks /dev/random. The seeding of /dev/random also
ensures that /dev/urandom benefits from entropy. Especially during boot time, when the
entropy of Linux is low, the Jitter RNGd provides a source of sufficient entropy.

%prep
%setup -q

%build
%cmake
%make_jobs

%install
%cmake_install

%files
%doc README.md
%{_sbindir}/urngd

%changelog
openSUSE Build Service is sponsored by