Blame SPECS/nodejs-lazy-cache.spec

0789a6
%{?scl:%scl_package nodejs-%{npm_name}}
0789a6
%{!?scl:%global pkg_name %{name}}
0789a6
0789a6
%{?nodejs_find_provides_and_requires}
0789a6
%global npm_name lazy-cache
0789a6
0789a6
Summary:       Cache requires to be lazy-loaded when needed
0789a6
Name:          %{?scl_prefix}nodejs-%{npm_name}
0789a6
Version:       1.0.2
0789a6
Release:       2%{?dist}
0789a6
License:       MIT
0789a6
URL:           https://github.com/jonschlinkert/lazy-cache
0789a6
Source0:       http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
0789a6
BuildRequires: nodejs010-runtime
0789a6
ExclusiveArch: %{nodejs_arches} noarch
0789a6
BuildArch:     noarch
0789a6
Provides:      %{?scl_prefix}nodejs-%{npm_name} = %{version}
0789a6
0789a6
%description
0789a6
Cache requires to be lazy-loaded when needed
0789a6
0789a6
%prep
0789a6
%setup -q -n package
0789a6
0789a6
%build
0789a6
0789a6
%install
0789a6
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
0789a6
cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/%{npm_name}
0789a6
0789a6
%nodejs_symlink_deps
0789a6
0789a6
%files
0789a6
%{!?_licensedir:%global license %doc}
0789a6
%doc README.md
0789a6
%license LICENSE
0789a6
%{nodejs_sitelib}/%{npm_name}
0789a6
0789a6
%changelog
0789a6
* Mon Jan 11 2016 Tomas Hrcka <thrcka@redhat.com> - 1.0.2-2
0789a6
- Enable scl macros
0789a6
0789a6
* Mon Dec 14 2015 Troy Dawson <tdawson@redhat.com> - 1.0.2-1
0789a6
- Initial package