Blame SPECS/nodejs-path-array.spec

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