Fix rpmlint error (usage of %{_sourcedir})

Fixes the following reported by rpmlint:

    libkcapi.src:97: E: use-of-RPM_SOURCE_DIR

Fixed by using the appropriate %{SOURCE<n>} macros as documented in:
https://fedoraproject.org/wiki/Packaging:RPM_Source_Dir

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
This commit is contained in:
Ondrej Mosnacek 2021-03-27 15:57:45 +01:00
parent 8d3f288df5
commit 5db30d35f3

View File

@ -94,8 +94,8 @@
%global sha512hmac bin/kcapi-hasher -n sha512hmac %global sha512hmac bin/kcapi-hasher -n sha512hmac
%global fipshmac bin/kcapi-hasher -n fipshmac %global fipshmac bin/kcapi-hasher -n fipshmac
%else %else
%global sha512hmac bash %{_sourcedir}/sha512hmac-openssl.sh %global sha512hmac bash %{SOURCE2}
%global fipshmac bash %{_sourcedir}/fipshmac-openssl.sh %global fipshmac bash %{SOURCE3}
%endif %endif
# Add generation of HMAC checksums of the final stripped # Add generation of HMAC checksums of the final stripped