From df065d6782fe0bf6a25e99eacde9685b303579f5 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Thu, 11 May 2023 10:10:38 -0400 Subject: [PATCH] Hardlink duplicate files in the examples --- grpc.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/grpc.spec b/grpc.spec index bad86be..7898c95 100644 --- a/grpc.spec +++ b/grpc.spec @@ -314,6 +314,8 @@ BuildRequires: curl BuildRequires: ca-certificates # For converting absolute symlinks in the buildroot to relative ones BuildRequires: symlinks +# For hardlinking duplicate files in the examples +BuildRequires: hardlink # Apply Fedora system crypto policies. Since this is Fedora-specific, the patch # is not suitable for upstream. @@ -1029,6 +1031,8 @@ install -D -t '%{buildroot}%{_pkgdocdir}' -m 0644 -p \ SECURITY.md \ TROUBLESHOOTING.md cp -rvp doc examples '%{buildroot}%{_pkgdocdir}' +# Hardlink duplicate files in the examples +hardlink -v '%{buildroot}%{_pkgdocdir}/examples/' %check