Blame SPECS/nodejs-ignore-by-default.spec

2f26b0
%{?scl:%scl_package nodejs-ignore-by-default}
2f26b0
%{!?scl:%global pkg_name %{name}}
2f26b0
%{?nodejs_find_provides_and_requires}
2f26b0
2f26b0
%global enable_tests 0
2f26b0
%global npm_name ignore-by-default
2f26b0
2f26b0
Name:       %{?scl_prefix}nodejs-%{npm_name}
2f26b0
Version:    1.0.1
2f26b0
Release:    3%{?dist}
2f26b0
Summary:    A list of directories you should ignore by default
2f26b0
License:    ISC
2f26b0
URL:        https://github.com/novemberborn/ignore-by-default#readme
2f26b0
Source0:    http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
2f26b0
BuildRequires: %{?scl_prefix}nodejs-devel
2f26b0
BuildArch:  noarch
2f26b0
ExclusiveArch: %{nodejs_arches} noarch
2f26b0
2f26b0
%description
2f26b0
A list of directories you should ignore by default
2f26b0
2f26b0
%prep
2f26b0
%setup -q -n package
2f26b0
2f26b0
rm -rf node_modules
2f26b0
2f26b0
%build
2f26b0
2f26b0
%install
2f26b0
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
2f26b0
cp -pfr index.js package.json %{buildroot}%{nodejs_sitelib}/%{npm_name}
2f26b0
2f26b0
%nodejs_symlink_deps
2f26b0
2f26b0
%if 0%{?enable_tests}
2f26b0
%check
2f26b0
#not running tests in RHSCL
2f26b0
%endif
2f26b0
2f26b0
%files
2f26b0
%{nodejs_sitelib}/%{npm_name}
2f26b0
2f26b0
%doc LICENSE
2f26b0
%doc README.md
2f26b0
2f26b0
%changelog
2f26b0
* Mon Jul 03 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.1-3
2f26b0
- rh-nodejs8 rebuild
2f26b0
2f26b0
* Tue Nov 01 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.1-2
2f26b0
- Initial build
2f26b0