From 78306ffa5a3b1bf9853313bea9b8973043733d78 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Thu, 17 Sep 2020 11:55:27 -0400 Subject: [PATCH] Drop old pretrans scriptlet Signed-off-by: Stephen Gallagher --- nodejs.spec | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/nodejs.spec b/nodejs.spec index e3750ba..2918a64 100644 --- a/nodejs.spec +++ b/nodejs.spec @@ -585,24 +585,6 @@ if st and st.type == "directory" then end -%pretrans -n v8-devel -p --- Replace the v8 libplatform include directory with a symlink --- Drop this scriptlet when F30 is EOL -path = "%{_includedir}/libplatform" -st = posix.stat(path) -if st and st.type == "directory" then - status = os.rename(path, path .. ".rpmmoved") - if not status then - suffix = 0 - while not status do - suffix = suffix + 1 - status = os.rename(path .. ".rpmmoved", path .. ".rpmmoved." .. suffix) - end - os.rename(path, path .. ".rpmmoved") - end -end - - %files %{_bindir}/node %dir %{_prefix}/lib/node_modules @@ -652,7 +634,6 @@ end %{_libdir}/libv8.so %{_libdir}/libv8_libbase.so %{_libdir}/libv8_libplatform.so -%ghost %{_includedir}/libplatform.rpmmoved %files -n npm