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

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