Resolves: RHEL-156846

Exclude private key from RPM documentation

Updated the .spec file to ensure private keys are no longer included in the %doc directory.
Due to security scan could be private key in that place flagged as an important risk.

Remove private key and related script from documentation
This commit is contained in:
Jitka Plesnikova 2026-04-08 12:57:27 +02:00
parent f6c910f7a1
commit 0565024e0a

View File

@ -6,7 +6,7 @@
Name: perl-Net-SSLeay
Version: 1.94
Release: 3%{?dist}
Release: 4%{?dist}
Summary: Perl extension for using OpenSSL
License: Artistic-2.0
URL: https://metacpan.org/release/Net-SSLeay
@ -138,6 +138,10 @@ find %{buildroot} -type f -name '*.bs' -empty -delete
# Remove script we don't want packaged
rm -f %{buildroot}%{perl_vendorarch}/Net/ptrtstrun.pl
# Remove private key and related script from documentation
rm -f examples/cb-testi.pl
rm -f examples/server_key.pem
# Install tests
mkdir -p %{buildroot}%{_libexecdir}/%{name}
cp -a t inc %{buildroot}%{_libexecdir}/%{name}
@ -171,6 +175,10 @@ OPENSSL_ENABLE_SHA1_SIGNATURES=1 make test
%{_libexecdir}/%{name}
%changelog
* Wed Apr 08 2026 Jitka Plesnikova <jplesnik@redhat.com> - 1.94-4
- Resolves: RHEL-156846
- Exclude private key from RPM documentation
* Mon May 26 2025 Jitka Plesnikova <jplesnik@redhat.com> - 1.94-3
- Resolves: RHEL-92846 - Fix typo in macro