[uglify-js1/el6: 3/3] add compat symlink so old modules continue to work
T.C. Hollingsworth
patches at fedoraproject.org
Mon Jan 20 01:00:36 UTC 2014
commit 9eab568029d36b2bb97e8d88f793b6e265d1d9b1
Author: T.C. Hollingsworth <tchollingsworth at gmail.com>
Date: Sun Jan 19 17:49:57 2014 -0700
add compat symlink so old modules continue to work
uglify-js1.spec | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/uglify-js1.spec b/uglify-js1.spec
index 4dfa49b..3f1a4b3 100644
--- a/uglify-js1.spec
+++ b/uglify-js1.spec
@@ -5,7 +5,7 @@
Name: uglify-js1
Version: 1.3.4
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: JavaScript parser, mangler/compressor and beautifier toolkit
BuildArch: noarch
@@ -62,6 +62,9 @@ mkdir -p %{buildroot}%{nodejs_sitelib}/uglify-js at 1
cp -pr bin package.json uglify-js.js %{buildroot}%{nodejs_sitelib}/uglify-js at 1
ln -sf %{_datadir}/uglify-js at 1 %{buildroot}%{nodejs_sitelib}/uglify-js at 1/lib
+#compat symlink so old modules continue to work
+ln -sf uglify-js at 1 %{buildroot}%{nodejs_sitelib}/%{name}
+
mkdir -p %{buildroot}%{_bindir}
ln -sf ../lib/node_modules/uglify-js1/bin/uglifyjs %{buildroot}%{_bindir}/uglifyjs1
@@ -77,6 +80,12 @@ nodeunit test/unit/scripts.js && test/testparser.js && test/testconsolidator.js
%clean
rm -rf %buildroot
+%pretrans -p <lua>
+st = posix.stat("%{nodejs_sitelib}/uglify-js1")
+if st and st.type == "directory" then
+ os.execute("rm -rf %{nodejs_sitelib}/uglify-js1")
+end
+
%files
%defattr(-,root,root,-)
%{nodejs_sitelib}/uglify-js at 1
@@ -88,6 +97,9 @@ rm -rf %buildroot
%doc README.html README.org docstyle.css
%changelog
+* Mon Jan 20 2014 T.C. Hollingsworth <tchollingsworth at gmail.com> - 1.3.4-4
+- add compat symlink so old modules continue to work
+
* Sun Jan 19 2014 Tom Hughes <tom at compton.nu> - 1.3.4-3
- use new multi-version packaging rules
- update to latest nodejs packaging standards
More information about the scm-commits
mailing list