From 08c7ea5ebedb1f9bfddf43a62047233fb34d399e Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Wed, 19 Oct 2022 20:28:01 -0400 Subject: [PATCH] Fix symlinks Signed-off-by: Stephen Gallagher --- nodejs.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nodejs.spec b/nodejs.spec index 323223c..501ea8d 100644 --- a/nodejs.spec +++ b/nodejs.spec @@ -548,14 +548,14 @@ mkdir -p %{buildroot}%{_mandir} \ cp -pr deps/npm/man/* %{buildroot}%{_mandir}/ rm -rf %{buildroot}%{_prefix}/lib/node_modules/npm/man -ln -srf %{_mandir} %{buildroot}%{_prefix}/lib/node_modules/npm/man +ln -srf %{buildroot}%{_mandir} %{buildroot}%{_prefix}/lib/node_modules/npm/man # Install Gatsby HTML documentation to %%{_pkgdocdir} cp -pr deps/npm/docs %{buildroot}%{_pkgdocdir}/npm/ rm -rf %{buildroot}%{_prefix}/lib/node_modules/npm/docs -ln -srf %{_pkgdocdir}/npm %{buildroot}%{_prefix}/lib/node_modules/npm/docs +ln -srf %{buildroot}%{_pkgdocdir}/npm %{buildroot}%{_prefix}/lib/node_modules/npm/docs %endif # Node tries to install some python files into a documentation directory @@ -585,7 +585,7 @@ cp %{SOURCE1} %{buildroot}%{_sysconfdir}/npmrc # NPM upstream expects it to be in /usr/etc/npmrc, so we'll put a symlink here # This is done in the interests of keeping /usr read-only. mkdir -p %{buildroot}%{_prefix}/etc -ln -rs %{_sysconfdir}/npmrc %{buildroot}%{_prefix}/etc/npmrc +ln -rsf %{buildroot}%{_sysconfdir}/npmrc %{buildroot}%{_prefix}/etc/npmrc %endif # Install the full-icu data files