sharkcz / rpms / rng-tools

Forked from rpms/rng-tools 2 years ago
Clone
95fb228
%global _hardened_build 1
ca7cd39
%global _sbindir /sbin
Vladis Dronov fcd3898
e438127
%if 0%{?rhel} && 0%{?rhel} >= 9
e438127
%bcond_with    pkcs11
Vladis Dronov fcd3898
%bcond_with    rtlsdr
e438127
%else
e438127
%bcond_without pkcs11
Vladis Dronov fcd3898
%bcond_without rtlsdr
e438127
%endif
e438127
ac59ed7
Summary:        Random number generator related utilities
ac59ed7
Name:           rng-tools
9c72fbc
Version:        6.11
9c72fbc
Release:        1%{?dist}
ac59ed7
License:        GPLv2+
Neil Horman e46e2a5
URL:            https://github.com/nhorman/rng-tools
9c72fbc
Source0:        https://github.com/nhorman/rng-tools/archive/v%{version}/rng-tools-%{version}.tar.gz
ac59ed7
Source1:        rngd.service
Neil Horman 2aa45be
d8ee87d
# https://sourceforge.net/p/gkernel/patches/111/
ca7cd39
Neil Horman 5879611
BuildRequires: gcc make
Vladis Dronov fcd3898
BuildRequires: gettext
Vladis Dronov fcd3898
BuildRequires: systemd-units
Neil Horman e46e2a5
BuildRequires: libgcrypt-devel
Neil Horman ba78ef9
BuildRequires: autoconf automake
Neil Horman ba78ef9
BuildRequires: libsysfs-devel libcurl-devel
Neil Horman ba78ef9
BuildRequires: libxml2-devel openssl-devel
Neil Horman 9a9f6e6
BuildRequires: jitterentropy-devel
Neil Horman c5639d9
BuildRequires: jansson-devel
Vladis Dronov fcd3898
%if %{with rtlsdr}
Neil Horman 3656dda
BuildRequires: rtl-sdr-devel
Vladis Dronov fcd3898
%endif
e438127
%if %{with pkcs11}
e438127
BuildRequires: libp11-devel
e438127
%endif
Neil Horman 9a9f6e6
ac59ed7
Requires(post): systemd-units
ac59ed7
Requires(preun): systemd-units
ac59ed7
Requires(postun): systemd-units
Neil Horman 4a333ce
Provides: jitterentropy-rngd
ca7cd39
ca7cd39
%description
ca7cd39
Hardware random number generation tools.
ca7cd39
Vladis Dronov fcd3898
%prep
Vladis Dronov fcd3898
%autosetup
ca7cd39
ca7cd39
%build
Vladis Dronov fcd3898
%if !%{with pkcs11}
Vladis Dronov fcd3898
%define _without_pkcs11 --without-pkcs11
Vladis Dronov fcd3898
%endif
Vladis Dronov fcd3898
%if !%{with rtlsdr}
Vladis Dronov fcd3898
%define _without_rtlsdr --without-rtlsdr
e438127
%endif
Vladis Dronov fcd3898
Vladis Dronov fcd3898
./autogen.sh
Vladis Dronov fcd3898
%configure %{?_without_pkcs11} %{?_without_rtlsdr}
8d6b73f
%make_build
ca7cd39
ca7cd39
%install
8d6b73f
%make_install
ca7cd39
ac59ed7
# install systemd unit file
8d6b73f
install -Dt %{buildroot}%{_unitdir} -m0644 %{SOURCE1}
Neil Horman 2aa45be
ac59ed7
%post
Jaromir Capik 27b1912
%systemd_post rngd.service
Neil Horman 2aa45be
ac59ed7
%preun
Jaromir Capik 27b1912
%systemd_preun rngd.service
ac59ed7
ac59ed7
%postun
Jaromir Capik 27b1912
%systemd_postun_with_restart rngd.service
ca7cd39
ca7cd39
%files
c4c98fe
%{!?_licensedir:%global license %%doc}
c4c98fe
%license COPYING
c4c98fe
%doc AUTHORS NEWS README
ca7cd39
%{_bindir}/rngtest
ca7cd39
%{_sbindir}/rngd
ca7cd39
%{_mandir}/man1/rngtest.1.*
ca7cd39
%{_mandir}/man8/rngd.8.*
ac59ed7
%attr(0644,root,root)   %{_unitdir}/rngd.service
ca7cd39
ca7cd39
%changelog
9c72fbc
* Fri Jan 29 2021 Dan Horák <dan[at]danny.cz> - 6.11-1
9c72fbc
- Update to 6.11
9c72fbc
e0bf2c4
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.10-8
e0bf2c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
e0bf2c4
Vladis Dronov fcd3898
* Mon Nov 16 2020 Vladis Dronov <vdronov@redhat.com> - 6.10-7
Vladis Dronov fcd3898
- Make rtl-sdr optional
Vladis Dronov fcd3898
- For RHEL9 and above, do not build with rtl-sdr
Vladis Dronov fcd3898
e438127
* Mon Oct 05 2020 Troy Dawson <tdawson@redhat.com> - 6.10-6
e438127
- Make pkcs11 optional
e438127
- For RHEL9 and above, do not build with pkcs11
e438127
04d5bab
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.10-5
04d5bab
- Second attempt - Rebuilt for
04d5bab
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
04d5bab
3dca8dc
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.10-4
3dca8dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
3dca8dc
Neil Horman 3656dda
* Fri Mar 27 2020 Neil Horman <nhorman@redhat.com> - 6.10-3
Neil Horman 3656dda
- Fix missing buildrequires
Neil Horman 3656dda
Neil Horman c5639d9
* Fri Mar 27 2020 Neil Horman <nhorman@redhat.com> - 6.10-2
Neil Horman c5639d9
- Fix missing buildrequires
Neil Horman c5639d9
Neil Horman 95f7cb2
* Fri Mar 27 2020 Neil Horman <nhorman@redhat.com> - 6.10-1
Neil Horman 95f7cb2
- Update to latest upstream
Neil Horman 95f7cb2
3d266d7
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.9-3
3d266d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
3d266d7
Neil Horman 0af5672
* Mon Jan 13 2020 Neil Horman <nhorman@redhat.com> - 6.9-2
Neil Horman 0af5672
- Correct default pkcs11 path on 32 bit arch (bz 1788083)
Neil Horman 0af5672
Neil Horman 72e2e00
* Tue Dec 17 2019 Neil Horman <nhorman@redhat.com> - 6.9-1
Neil Horman 72e2e00
- update to latest upstream
Neil Horman 72e2e00
b64d457
* Mon Aug 05 2019 Volker Froehlich <volker27@gmx.at> - 6.7-4
b64d457
- Remove explicit Requires for libraries
b64d457
b9f02a5
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.7-3
b9f02a5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
b9f02a5
Neil Horman ee4a52c
* Fri May 24 2019 Neil Horman <nhorman@redhat.com> -6.7-2
Neil Horman ee4a52c
- Fix race in shutdown leading to hang (bz 1690364)
Neil Horman 79c68e1
- bump version number
Neil Horman ee4a52c
Neil Horman 9a9f6e6
* Thu Feb 14 2019 Neil Horman <nhorman@redhat.com> - 6.7-1
Neil Horman 9a9f6e6
- Update to latest upstream
Neil Horman 9a9f6e6
1e010b9
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.3.1-3
1e010b9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
1e010b9
Neil Horman 4a333ce
* Mon Oct 01 2018 Neil Horman <nhorman@redhat.com> - 6.3.1-2
Neil Horman 4a333ce
- Add Provides for jitterentropy-rngd (bz 1634788)
Neil Horman 4a333ce
Neil Horman cf54132
* Mon Jul 16 2018 Neil Horman <nhorman@redhat.com> - 6.3.1-1
Neil Horman cf54132
- Update to latest upstream
Neil Horman cf54132
af1d6d7
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.3-2
af1d6d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
af1d6d7
Neil Horman 8d3021b
* Fri Jul 06 2018 Neil Horman <nhorman@redhat.com> - 6.3-1
Neil Horman e98c683
- update to latest upstream (#1598608)
Neil Horman e98c683
Neil Horman 479bed7
* Thu May 10 2018 Neil Horman <nhorman@redhat.com>
Neil Horman 479bed7
- Update to latest upstream 
Neil Horman 479bed7
9779d71
* Thu Feb 15 2018 Adam Williamson <awilliam@redhat.com> - 6.1-4
9779d71
- Drop all attempts to 'fix' #1490632, revert spec to same as 6.1-1
9779d71
2624712
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.1-3
2624712
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2624712
Neil Horman 2aa45be
* Thu Nov 02 2017 Neil Horman <nhorman@redhat.com> - 6.1-2
Neil Horman 2aa45be
- Enable rngd on entropy src availability (bz 1490632)
Neil Horman 7a42c5f
Neil Horman ba78ef9
* Tue Oct 10 2017 Neil Horman <nhorman@redhat.com> - 6.1-1
Neil Horman ba78ef9
- update to latest upstream
Neil Horman ba78ef9
Neil Horman e46e2a5
* Fri Jul 28 2017 Neil Horman <nhorman@redhat.com> - 6-1
Neil Horman e46e2a5
- Update to latest upstream
Neil Horman e46e2a5
c899fe6
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5-10
c899fe6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c899fe6
a69f1ca
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5-9
a69f1ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
a69f1ca
8d6b73f
* Tue Oct 18 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5-8
8d6b73f
- If device is not found exit immediately (#892178)
8d6b73f
c4c98fe
* Sun Mar  6 2016 Peter Robinson <pbrobinson@fedoraproject.org> 5-7
c4c98fe
- Use %%license
c4c98fe
394db50
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5-6
394db50
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
394db50
2ddb7d8
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5-5
2ddb7d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2ddb7d8
95fb228
* Wed Dec 10 2014 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5-4
95fb228
- Build with hardening flags (#1051344)
95fb228
- Fail nicely if no hardware generator is found (#892178)
95fb228
- Drop unneeded dependency
95fb228
6e17e26
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5-3
6e17e26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
6e17e26
7b2980a
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5-2
7b2980a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
7b2980a
Luke Macken 452efd5
* Wed Apr 23 2014 Luke Macken <lmacken@redhat.com> - 5-1
Luke Macken 452efd5
- Update to release version 5.
Luke Macken 452efd5
- Remove rng-tools-man.patch
Luke Macken 452efd5
b284d5c
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4-4
b284d5c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
b284d5c
34e8331
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4-3
34e8331
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
34e8331
Jaromir Capik 27b1912
* Tue Sep 25 2012 Jaromir Capik <jcapik@redhat.com> - 4-2
Jaromir Capik 27b1912
- Migration to new systemd macros
Jaromir Capik 27b1912
Jeff Garzik 7403d94
* Mon Aug 6 2012 Jeff Garzik <jgarzik@redhat.com> - 4-1
Jeff Garzik 7403d94
- Update to release version 4.
Jeff Garzik 7403d94
09a7414
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3-5
09a7414
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
09a7414
fdf70c3
* Thu Jan 12 2012 Jiri Popelka <jpopelka@redhat.com> - 3-4
9012e9e
- 2 patches from RHEL-6
ac59ed7
- systemd service
fdf70c3
- man page fixes
fdf70c3
- modernize spec file
fdf70c3
b1d0cce
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3-3
b1d0cce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
b1d0cce
94671bd
* Sat Jul  3 2010 Jeff Garzik <jgarzik@redhat.com> - 3-2
94671bd
- comply with renaming guidelines, by Providing rng-utils = 1:2.0-4.2
94671bd
ca7cd39
* Sat Jul  3 2010 Jeff Garzik <jgarzik@redhat.com> - 3-1
ca7cd39
- Update to release version 3.
ca7cd39
ca7cd39
* Fri Mar 26 2010 Jeff Garzik <jgarzik@redhat.com> - 2-3
ca7cd39
- more minor updates for package review
ca7cd39
ca7cd39
* Thu Mar 25 2010 Jeff Garzik <jgarzik@redhat.com> - 2-2
ca7cd39
- several minor updates for package review
ca7cd39
ca7cd39
* Wed Mar 24 2010 Jeff Garzik <jgarzik@redhat.com> - 2-1
ca7cd39
- initial revision (as rng-tools)
ca7cd39