Project

General

Profile

Download (1.9 KB) Statistics
| Branch: | Tag: | Revision:
%global npm_name redux-logger

Name: nodejs-%{npm_name}
Version: 2.10.2
Release: 1%{?dist}
Summary: Logger for Redux
License: MIT
Group: Development/Libraries
URL: https://github.com/theaqua/redux-logger#readme
Source0: https://registry.npmjs.org/redux-logger/-/redux-logger-2.10.2.tgz
Source1: https://registry.npmjs.org/deep-diff/-/deep-diff-0.3.4.tgz
Source2: %{npm_name}-%{version}-registry.npmjs.org.tgz
BuildRequires: nodejs-packaging
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch

Provides: npm(%{npm_name}) = %{version}
Provides: bundled(npm(deep-diff)) = 0.3.4
Provides: bundled(npm(redux-logger)) = 2.10.2
AutoReq: no
AutoProv: no

%define npm_cache_dir /tmp/npm_cache_%{name}-%{version}-%{release}

%description
%{summary}

%prep
mkdir -p %{npm_cache_dir}
for tgz in %{sources}; do
echo $tgz | grep -q registry.npmjs.org || npm cache add --cache %{npm_cache_dir} $tgz
done
%setup -T -q -a 2 -D -n %{npm_cache_dir}

%build
npm install --cache-min Infinity --cache %{npm_cache_dir} --no-shrinkwrap --no-optional --global-style true %{npm_name}@%{version}

%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
cp -pfr node_modules/%{npm_name}/node_modules %{buildroot}%{nodejs_sitelib}/%{npm_name}
cp -pfr node_modules/%{npm_name}/dist %{buildroot}%{nodejs_sitelib}/%{npm_name}
cp -pfr node_modules/%{npm_name}/lib %{buildroot}%{nodejs_sitelib}/%{npm_name}
cp -pfr node_modules/%{npm_name}/package.json %{buildroot}%{nodejs_sitelib}/%{npm_name}
cp -pfr node_modules/%{npm_name}/src %{buildroot}%{nodejs_sitelib}/%{npm_name}

%clean
rm -rf %{buildroot} %{npm_cache_dir}

%files
%{nodejs_sitelib}/%{npm_name}
%license node_modules/%{npm_name}/LICENSE
%doc node_modules/%{npm_name}/CHANGELOG.md
%doc node_modules/%{npm_name}/README.md

%changelog
* Wed Jun 06 2018 Eric D. Helms <ericdhelms@gmail.com> 2.10.2-1
- Update to 2.10.2

* Thu Feb 16 2017 Dominic Cleal <dominic@cleal.org> 2.8.1-1
- new package built with tito

(2-2/4)