Remove hardcoded _sbindir global

There is no need to hardcode _sbindir anymore, also
the old value of '/sbin' is incorrect now.

Resolves: rhbz#1965318

Signed-off-by: Vladis Dronov <vdronov@redhat.com>
This commit is contained in:
Vladis Dronov 2021-04-27 22:54:01 +00:00
parent 97465e7566
commit cb4f65d339
2 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,4 @@
%global _hardened_build 1
%global _sbindir /sbin
%if 0%{?rhel} && 0%{?rhel} >= 9
%bcond_with pkcs11
@ -12,7 +11,7 @@
Summary: Random number generator related utilities
Name: rng-tools
Version: 6.12
Release: 2%{?dist}
Release: 3%{?dist}
License: GPLv2+
URL: https://github.com/nhorman/rng-tools
Source0: https://github.com/nhorman/rng-tools/archive/v%{version}/rng-tools-%{version}.tar.gz
@ -84,6 +83,9 @@ install -Dt %{buildroot}%{_unitdir} -m0644 %{SOURCE1}
%attr(0644,root,root) %{_unitdir}/rngd.service
%changelog
* Wed Apr 28 2021 Vladis Dronov <vdronov@redhat.com> - 6.12-3
- There is no need to hardcode _sbindir anymore, also the old value is incorrect
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 6.12-2
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937

View File

@ -2,7 +2,7 @@
Description=Hardware RNG Entropy Gatherer Daemon
[Service]
ExecStart=/sbin/rngd -f
ExecStart=/usr/sbin/rngd -f
[Install]
WantedBy=multi-user.target