Blame SPECS/nodejs-is-builtin-module.spec

31b8cb
%{?scl:%scl_package nodejs-is-builtin-module}
31b8cb
%{!?scl:%global pkg_name %{name}}
31b8cb
31b8cb
# spec file for package nodejs-nodejs-is-builtin-module
31b8cb
31b8cb
%global npm_name is-builtin-module
31b8cb
%{?nodejs_find_provides_and_requires}
31b8cb
31b8cb
%global enable_tests 0
31b8cb
31b8cb
Name:		%{?scl_prefix}nodejs-is-builtin-module
31b8cb
Version:	1.0.0
31b8cb
Release:	1%{?dist}
31b8cb
Summary:	Check if a string matches the name of a Node.js builtin module
31b8cb
Url:		https://github.com/sindresorhus/is-builtin-module
31b8cb
Source0:	https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
31b8cb
License:	MIT
31b8cb
31b8cb
BuildArch:	noarch
31b8cb
31b8cb
%if 0%{?fedora} >= 19
31b8cb
ExclusiveArch: %{nodejs_arches} noarch
31b8cb
%else
31b8cb
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
31b8cb
%endif
31b8cb
31b8cb
BuildRequires:  %{?scl_prefix}nodejs-devel
31b8cb
BuildRequires:  nodejs010-runtime
31b8cb
31b8cb
%if 0%{?enable_tests}
31b8cb
BuildRequires:	%{?scl_prefix}npm(ava)
31b8cb
%endif
31b8cb
31b8cb
BuildRequires:	%{?scl_prefix}npm(builtin-modules)
31b8cb
31b8cb
Requires:	%{?scl_prefix}npm(builtin-modules)
31b8cb
31b8cb
%description
31b8cb
Check if a string matches the name of a Node.js builtin module
31b8cb
31b8cb
%prep
31b8cb
%setup -q -n package
31b8cb
31b8cb
rm -rf node_modules
31b8cb
31b8cb
%build
31b8cb
31b8cb
%install
31b8cb
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
31b8cb
31b8cb
cp -pr package.json *.js \
31b8cb
%{buildroot}%{nodejs_sitelib}/%{npm_name}
31b8cb
31b8cb
%{nodejs_symlink_deps}
31b8cb
31b8cb
%if 0%{?enable_tests}
31b8cb
31b8cb
%check
31b8cb
%{nodejs_symlink_deps} --check
31b8cb
31b8cb
%endif
31b8cb
31b8cb
%files
31b8cb
%{nodejs_sitelib}/is-builtin-module
31b8cb
31b8cb
%doc readme.md license
31b8cb
31b8cb
%changelog
31b8cb
* Tue Dec 01 2015 Tomas Hrcka <thrcka@redhat.com> - 1.0.0-1
31b8cb
- Initial build