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

2f2bcf
%{?scl:%scl_package nodejs-is-builtin-module}
2f2bcf
%{!?scl:%global pkg_name %{name}}
2f2bcf
2f2bcf
# spec file for package nodejs-nodejs-is-builtin-module
2f2bcf
2f2bcf
%global npm_name is-builtin-module
2f2bcf
%{?nodejs_find_provides_and_requires}
2f2bcf
2f2bcf
%global enable_tests 0
2f2bcf
2f2bcf
Name:		%{?scl_prefix}nodejs-is-builtin-module
2f2bcf
Version:	1.0.0
55a1c1
Release:	4%{?dist}
2f2bcf
Summary:	Check if a string matches the name of a Node.js builtin module
2f2bcf
Url:		https://github.com/sindresorhus/is-builtin-module
2f2bcf
Source0:	https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
2f2bcf
License:	MIT
2f2bcf
2f2bcf
BuildArch:	noarch
2f2bcf
2f2bcf
%if 0%{?fedora} >= 19
2f2bcf
ExclusiveArch: %{nodejs_arches} noarch
2f2bcf
%else
55a1c1
ExclusiveArch: %{nodejs_arches} noarch
2f2bcf
%endif
2f2bcf
2f2bcf
BuildRequires:  %{?scl_prefix}nodejs-devel
2f2bcf
BuildRequires:  %{?scl_prefix}runtime
2f2bcf
2f2bcf
%if 0%{?enable_tests}
2f2bcf
BuildRequires:	%{?scl_prefix}npm(ava)
2f2bcf
%endif
2f2bcf
2f2bcf
BuildRequires:	%{?scl_prefix}npm(builtin-modules)
2f2bcf
2f2bcf
Requires:	%{?scl_prefix}npm(builtin-modules)
2f2bcf
2f2bcf
%description
2f2bcf
Check if a string matches the name of a Node.js builtin module
2f2bcf
2f2bcf
%prep
2f2bcf
%setup -q -n package
2f2bcf
2f2bcf
rm -rf node_modules
2f2bcf
2f2bcf
%build
2f2bcf
2f2bcf
%install
2f2bcf
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
2f2bcf
2f2bcf
cp -pr package.json *.js \
2f2bcf
%{buildroot}%{nodejs_sitelib}/%{npm_name}
2f2bcf
2f2bcf
%{nodejs_symlink_deps}
2f2bcf
2f2bcf
%if 0%{?enable_tests}
2f2bcf
%check
2f2bcf
%{nodejs_symlink_deps} --check
2f2bcf
node test.js
2f2bcf
%endif
2f2bcf
2f2bcf
%files
2f2bcf
%{nodejs_sitelib}/is-builtin-module
2f2bcf
2f2bcf
%doc readme.md license
2f2bcf
2f2bcf
%changelog
55a1c1
* Mon May 28 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.0-4
55a1c1
- Resolves: RHBZ#1543198, rebuild for multiarch
55a1c1
2f2bcf
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.0-3
2f2bcf
- Use macro in -runtime dependency
2f2bcf
2f2bcf
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.0-2
2f2bcf
- Rebuilt with updated metapackage
2f2bcf
2f2bcf
* Tue Dec 01 2015 Tomas Hrcka <thrcka@redhat.com> - 1.0.0-1
2f2bcf
- Initial build