Merged update from upstream sources
This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/rng-tools.git#fcd38984bda29e2468731a5f3f10106192be8da4
This commit is contained in:
parent
20788990a8
commit
51e9108555
@ -1,16 +1,18 @@
|
||||
%global _hardened_build 1
|
||||
%global _sbindir /sbin
|
||||
|
||||
%if 0%{?rhel} && 0%{?rhel} >= 9
|
||||
%bcond_with pkcs11
|
||||
%bcond_with rtlsdr
|
||||
%else
|
||||
%bcond_without pkcs11
|
||||
%bcond_without rtlsdr
|
||||
%endif
|
||||
|
||||
|
||||
Summary: Random number generator related utilities
|
||||
Name: rng-tools
|
||||
Version: 6.10
|
||||
Release: 6%{?dist}
|
||||
Release: 7%{?dist}
|
||||
License: GPLv2+
|
||||
URL: https://github.com/nhorman/rng-tools
|
||||
Source0: https://github.com/nhorman/rng-tools/archive/rng-tools-%{version}.tar.gz
|
||||
@ -19,15 +21,17 @@ Source1: rngd.service
|
||||
# https://sourceforge.net/p/gkernel/patches/111/
|
||||
|
||||
BuildRequires: gcc make
|
||||
BuildRequires: gettext
|
||||
BuildRequires: systemd-units
|
||||
BuildRequires: gettext
|
||||
BuildRequires: systemd-units
|
||||
BuildRequires: libgcrypt-devel
|
||||
BuildRequires: autoconf automake
|
||||
BuildRequires: libsysfs-devel libcurl-devel
|
||||
BuildRequires: libxml2-devel openssl-devel
|
||||
BuildRequires: jitterentropy-devel
|
||||
BuildRequires: jansson-devel
|
||||
%if %{with rtlsdr}
|
||||
BuildRequires: rtl-sdr-devel
|
||||
%endif
|
||||
%if %{with pkcs11}
|
||||
BuildRequires: libp11-devel
|
||||
%endif
|
||||
@ -40,16 +44,19 @@ Provides: jitterentropy-rngd
|
||||
%description
|
||||
Hardware random number generation tools.
|
||||
|
||||
%prep
|
||||
%autosetup
|
||||
%prep
|
||||
%autosetup
|
||||
|
||||
%build
|
||||
./autogen.sh
|
||||
%if %{with pkcs11}
|
||||
%configure
|
||||
%else
|
||||
%configure --without-pkcs11
|
||||
%if !%{with pkcs11}
|
||||
%define _without_pkcs11 --without-pkcs11
|
||||
%endif
|
||||
%if !%{with rtlsdr}
|
||||
%define _without_rtlsdr --without-rtlsdr
|
||||
%endif
|
||||
|
||||
./autogen.sh
|
||||
%configure %{?_without_pkcs11} %{?_without_rtlsdr}
|
||||
%make_build
|
||||
|
||||
%install
|
||||
@ -78,6 +85,10 @@ install -Dt %{buildroot}%{_unitdir} -m0644 %{SOURCE1}
|
||||
%attr(0644,root,root) %{_unitdir}/rngd.service
|
||||
|
||||
%changelog
|
||||
* Mon Nov 16 2020 Vladis Dronov <vdronov@redhat.com> - 6.10-7
|
||||
- Make rtl-sdr optional
|
||||
- For RHEL9 and above, do not build with rtl-sdr
|
||||
|
||||
* Mon Oct 05 2020 Troy Dawson <tdawson@redhat.com> - 6.10-6
|
||||
- Make pkcs11 optional
|
||||
- For RHEL9 and above, do not build with pkcs11
|
||||
|
Loading…
Reference in New Issue
Block a user