From 8a6ffdbb6aa84bb634fe621201e86ddd022d4586 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Wed, 26 Apr 2023 14:54:11 -0400 Subject: [PATCH] Fix npm manpage symlinks Resolves: rhbz#2187978 Signed-off-by: Stephen Gallagher --- nodejs20.spec | 2 +- packaging/nodejs.spec.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nodejs20.spec b/nodejs20.spec index e922865..4fcb7d3 100644 --- a/nodejs20.spec +++ b/nodejs20.spec @@ -648,7 +648,7 @@ for i in 1 5 7; do mkdir -p %{buildroot}%{_mandir}/man${i} for manpage in %{buildroot}%{nodejs_private_sitelib}/npm/man/man$i/*; do basename=$(basename ${manpage}) - ln -srf %{buildroot}%{nodejs_private_sitelib}/npm/man/man${i}/${manpage} \ + ln -srf %{buildroot}%{nodejs_private_sitelib}/npm/man/man${i}/${basename} \ %{buildroot}%{_mandir}/man${i}/${basename} done done diff --git a/packaging/nodejs.spec.j2 b/packaging/nodejs.spec.j2 index fe1b10f..8e03d8d 100644 --- a/packaging/nodejs.spec.j2 +++ b/packaging/nodejs.spec.j2 @@ -659,7 +659,7 @@ for i in 1 5 7; do mkdir -p %{buildroot}%{_mandir}/man${i} for manpage in %{buildroot}%{nodejs_private_sitelib}/npm/man/man$i/*; do basename=$(basename ${manpage}) - ln -srf %{buildroot}%{nodejs_private_sitelib}/npm/man/man${i}/${manpage} \ + ln -srf %{buildroot}%{nodejs_private_sitelib}/npm/man/man${i}/${basename} \ %{buildroot}%{_mandir}/man${i}/${basename} done done