|
%global npm_name moment
|
|
%global enable_tests 1
|
|
|
|
%{?nodejs_find_provides_and_requires}
|
|
|
|
Name: nodejs-%{npm_name}
|
|
Version: 2.17.1
|
|
Release: 1%{?dist}
|
|
Summary: Parse, validate, manipulate, and display dates
|
|
License: MIT
|
|
URL: http://momentjs.com
|
|
Source0: http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
|
|
BuildRequires: nodejs-packaging
|
|
BuildArch: noarch
|
|
|
|
%if 0%{?fedora} >= 19
|
|
ExclusiveArch: %{nodejs_arches} noarch
|
|
%else
|
|
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
|
|
%endif
|
|
|
|
%{?nodejs_find_provides_and_requires}
|
|
|
|
%description
|
|
%{summary}
|
|
|
|
%prep
|
|
%setup -q -n package
|
|
|
|
%build
|
|
%nodejs_symlink_deps --build
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
|
|
cp -pfr CHANGELOG.md LICENSE README.md ender.js locale min moment.d.ts moment.js package.js package.json src %{buildroot}%{nodejs_sitelib}/%{npm_name}
|
|
|
|
%nodejs_symlink_deps
|
|
|
|
%if 0%{?enable_tests}
|
|
%check
|
|
%{nodejs_symlink_deps} --check
|
|
%endif
|
|
|
|
%files
|
|
%{nodejs_sitelib}/%{npm_name}
|
|
|
|
%doc LICENSE
|
|
%doc CHANGELOG.md
|
|
%doc README.md
|
|
|
|
%changelog
|