[nodejs-moment] Fix symlinks to /usr/share/javascript (#1178029)

Jamie Nguyen jamielinux at fedoraproject.org
Fri Jan 2 11:18:37 UTC 2015


commit 08eb8f6bffe072c3289d244926e7ff61490bd2ea
Author: Jamie Nguyen <j at jamielinux.com>
Date:   Fri Jan 2 09:16:45 2015 +0000

    Fix symlinks to /usr/share/javascript (#1178029)

 nodejs-moment.spec |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/nodejs-moment.spec b/nodejs-moment.spec
index 3cce7dd..a3cf796 100644
--- a/nodejs-moment.spec
+++ b/nodejs-moment.spec
@@ -4,7 +4,7 @@
 
 Name:       nodejs-moment
 Version:    2.8.3
-Release:    1%{?dist}
+Release:    2%{?dist}
 Summary:    Parse, manipulate and display dates
 License:    MIT
 Group:      System Environment/Libraries
@@ -79,8 +79,10 @@ cp -pr package.json bower.json component.json composer.json \
     ender.js package.js \
     %{buildroot}%{nodejs_sitelib}/moment
 
-ln -s %{_jsdir}/locale %{_jsdir}/min %{_jsdir}/moment.js \
-    %{buildroot}%{nodejs_sitelib}/moment
+for i in locale min moment.js; do
+    ln -s %{_jsdir}/moment/${i} \
+        %{buildroot}%{nodejs_sitelib}/moment/${i}
+done
 
 %nodejs_symlink_deps
 
@@ -101,6 +103,9 @@ ln -s %{_jsdir}/locale %{_jsdir}/min %{_jsdir}/moment.js \
 
 
 %changelog
+* Fri Jan 02 2015 Jamie Nguyen <jamielinux at fedoraproject.org> - 2.8.3-2
+- fix symlinks to /usr/share/javascript (#1178029)
+
 * Mon Nov 03 2014 Jamie Nguyen <jamielinux at fedoraproject.org> - 2.8.3-1
 - update to upstream release 2.8.3
 


More information about the scm-commits mailing list