Blame SPECS/nodejs-json-parse-helpfulerror.spec

f32dca
%{?scl:%scl_package nodejs-json-parse-helpfulerror}
f32dca
%{!?scl:%global pkg_name %{name}}
f32dca
f32dca
# spec file for package nodejs-nodejs-json-parse-helpfulerror
f32dca
f32dca
%global npm_name json-parse-helpfulerror
f32dca
%{?nodejs_find_provides_and_requires}
f32dca
f32dca
%global enable_tests 0
f32dca
f32dca
Name:		%{?scl_prefix}nodejs-json-parse-helpfulerror
f32dca
Version:	1.0.3
f32dca
Release:	3%{?dist}
f32dca
Summary:	A drop-in replacement for JSON.parse that uses `jju` to give helpful errors
f32dca
Url:		https://github.com/smikes/json-parse-helpfulerror
f32dca
Source0:	https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
f32dca
License:	MIT
f32dca
f32dca
BuildArch:	noarch
f32dca
f32dca
%if 0%{?fedora} >= 19
f32dca
ExclusiveArch: %{nodejs_arches} noarch
f32dca
%else
f32dca
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
f32dca
%endif
f32dca
f32dca
BuildRequires:  %{?scl_prefix}nodejs-devel
f32dca
BuildRequires:  %{?scl_prefix}runtime
f32dca
f32dca
%if 0%{?enable_tests}
f32dca
BuildRequires:	%{?scl_prefix}npm(code)
f32dca
BuildRequires:	%{?scl_prefix}npm(jslint)
f32dca
BuildRequires:	%{?scl_prefix}npm(lab)
f32dca
%endif
f32dca
f32dca
BuildRequires:	%{?scl_prefix}npm(jju)
f32dca
f32dca
Requires:	%{?scl_prefix}npm(jju)
f32dca
f32dca
%description
f32dca
A drop-in replacement for JSON.parse that uses `jju` to give helpful errors
f32dca
f32dca
%prep
f32dca
%setup -q -n package
f32dca
f32dca
rm -rf node_modules
f32dca
f32dca
%build
f32dca
f32dca
%install
f32dca
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
f32dca
f32dca
cp -pr package.json *.js \
f32dca
%{buildroot}%{nodejs_sitelib}/%{npm_name}
f32dca
f32dca
%{nodejs_symlink_deps}
f32dca
f32dca
%if 0%{?enable_tests}
f32dca
f32dca
%check
f32dca
%{nodejs_symlink_deps} --check
f32dca
jslint --edition=latest --terse *.js
f32dca
lab -c
f32dca
%endif
f32dca
f32dca
%files
f32dca
%{nodejs_sitelib}/json-parse-helpfulerror
f32dca
f32dca
%doc README.md LICENSE
f32dca
f32dca
%changelog
f32dca
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.3-3
f32dca
- Use macro in -runtime dependency
f32dca
f32dca
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.3-2
f32dca
- Rebuilt with updated metapackage
f32dca
f32dca
* Tue Dec 01 2015 Tomas Hrcka <thrcka@redhat.com> - 1.0.3-1
f32dca
- Initial build