[nodejs-burrito] Fix uglify-js1 symlink
Jamie Nguyen
jamielinux at fedoraproject.org
Sat May 10 14:04:57 UTC 2014
commit 8d7ee70659e1c1d9b154f21d1f0641f806bf4f9a
Author: Jamie Nguyen <j at jamielinux.com>
Date: Sat May 10 14:45:26 2014 +0100
Fix uglify-js1 symlink
nodejs-burrito.spec | 42 +++++++++++++++++++++++++++++-------------
1 files changed, 29 insertions(+), 13 deletions(-)
---
diff --git a/nodejs-burrito.spec b/nodejs-burrito.spec
index d7d6d22..0e58438 100644
--- a/nodejs-burrito.spec
+++ b/nodejs-burrito.spec
@@ -1,15 +1,11 @@
%{?nodejs_find_provides_and_requires}
+%global enable_tests 0
+
Name: nodejs-burrito
Version: 0.2.12
-Release: 8%{?dist}
+Release: 9%{?dist}
Summary: Wrap up expressions with a trace function while walking the AST
-BuildArch: noarch
-%if 0%{?fedora} >= 19
-ExclusiveArch: %{nodejs_arches} noarch
-%else
-ExclusiveArch: %{ix86} x86_64 %{arm} noarch
-%endif
Group: System Environment/Libraries
#no license file included, "BSD" indicated in package.json
@@ -22,8 +18,18 @@ Source1: https://raw.github.com/substack/lambdascape/master/LICENSE
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch: noarch
+%if 0%{?fedora} >= 19
+ExclusiveArch: %{nodejs_arches} noarch
+%else
+ExclusiveArch: %{ix86} x86_64 %{arm} noarch
+%endif
+
BuildRequires: nodejs-packaging
-#BuildRequires: npm(tap)
+
+%if 0%{?enable_tests}
+BuildRequires: npm(tap)
+%endif
%description
Burrito makes it easy to do crazy stuff with the JavaScript AST.
@@ -31,6 +37,7 @@ Burrito makes it easy to do crazy stuff with the JavaScript AST.
This is useful if you want to roll your own stack traces or build a code
coverage tool.
+
%prep
%setup -q -n package
@@ -39,9 +46,11 @@ coverage tool.
cp -p %{SOURCE1} LICENSE
+
%build
#nothing to do
+
%install
rm -rf %buildroot
@@ -49,22 +58,29 @@ mkdir -p %{buildroot}%{nodejs_sitelib}/burrito
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/burrito
%nodejs_symlink_deps
-ln -sf %{nodejs_sitelib}/uglify-js1 \
- %{buildroot}%{nodejs_sitelib}/burrito/node_modules/uglify-js
-#recursive deps are recursive
-#%%check
-#%%tap test/*.js
+
+%if 0%{?enable_tests}
+%check
+%nodejs_symlink_deps --check
+%tap test/*.js
+%endif
+
%clean
rm -rf %buildroot
+
%files
%defattr(-,root,root,-)
%{nodejs_sitelib}/burrito
%doc README.markdown example LICENSE
+
%changelog
+* Sat May 10 2014 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.2.12-9
+- fix uglify-js1 symlink
+
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.2.12-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
More information about the scm-commits
mailing list