Blame SPECS/nodejs-path-array.spec

a65ed7
%{?scl:%scl_package nodejs-path-array}
a65ed7
%{!?scl:%global pkg_name %{name}}
a65ed7
a65ed7
# spec file for package nodejs-nodejs-path-array
a65ed7
a65ed7
%global npm_name path-array
a65ed7
%{?nodejs_find_provides_and_requires}
a65ed7
a65ed7
%global enable_tests 0
a65ed7
a65ed7
Name:		%{?scl_prefix}nodejs-path-array
a65ed7
Version:	1.0.0
a65ed7
Release:	1%{?dist}
a65ed7
Summary:	Treat your $PATH like a JavaScript Array
a65ed7
Url:		https://github.com/TooTallNate/node-path-array
a65ed7
Source0:	https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
a65ed7
License:	MIT
a65ed7
a65ed7
BuildArch:	noarch
a65ed7
a65ed7
%if 0%{?fedora} >= 19
a65ed7
ExclusiveArch: %{nodejs_arches} noarch
a65ed7
%else
a65ed7
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
a65ed7
%endif
a65ed7
a65ed7
BuildRequires:  %{?scl_prefix}nodejs-devel
a65ed7
BuildRequires:  nodejs010-runtime
a65ed7
a65ed7
%if 0%{?enable_tests}
a65ed7
BuildRequires:	%{?scl_prefix}npm(mocha)
a65ed7
%endif
a65ed7
a65ed7
BuildRequires:	%{?scl_prefix}npm(array-index)
a65ed7
a65ed7
Requires:	%{?scl_prefix}npm(array-index)
a65ed7
a65ed7
%description
a65ed7
Treat your $PATH like a JavaScript Array
a65ed7
a65ed7
%prep
a65ed7
%setup -q -n package
a65ed7
a65ed7
rm -rf node_modules
a65ed7
a65ed7
%build
a65ed7
a65ed7
%install
a65ed7
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
a65ed7
a65ed7
cp -pr package.json *.js \
a65ed7
%{buildroot}%{nodejs_sitelib}/%{npm_name}
a65ed7
a65ed7
%{nodejs_symlink_deps}
a65ed7
a65ed7
%if 0%{?enable_tests}
a65ed7
a65ed7
%check
a65ed7
%{nodejs_symlink_deps} --check
a65ed7
a65ed7
%endif
a65ed7
a65ed7
%files
a65ed7
%{nodejs_sitelib}/path-array
a65ed7
a65ed7
%doc README.md
a65ed7
a65ed7
%changelog
a65ed7
* Mon Nov 30 2015 Tomas Hrcka <thrcka@redhat.com> - 1.0.0-1
a65ed7
- Initial build