Blob Blame History Raw
%{?nodejs_find_provides_and_requires}

Name:           nodejs-pff
Version:        1.0.0
Release:        2%{?dist}
Summary:        Minimal implementation of printf, which is really fast

License:        MIT
URL:            https://www.npmjs.com/package/pff
Source0:        https://github.com/floatdrop/pff/archive/v%{version}/%{name}-%{version}.tar.gz
# https://github.com/floatdrop/pff/pull/2
Source1:        nodejs-pff-license.txt
BuildArch:      noarch
ExclusiveArch:  %{nodejs_arches} noarch

BuildRequires:  nodejs-packaging

BuildRequires:  npm(mocha)
BuildRequires:  npm(should)


%description
%{summary}.


%prep
%autosetup -n pff-%{version}
cp %{SOURCE1} LICENSE
rm -rf node_modules


%build


%install
mkdir -p %{buildroot}%{nodejs_sitelib}/pff
cp -pr package.json benchmark %{buildroot}%{nodejs_sitelib}/pff
%nodejs_symlink_deps


%check
%nodejs_symlink_deps --check
%{nodejs_sitelib}/mocha/bin/mocha


%files
%{!?_licensedir:%global license %doc}
%doc readme.md
%license LICENSE
%{nodejs_sitelib}/pff


%changelog
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Thu Dec  3 2015 Tom Hughes <tom@compton.nu> - 1.0.0-1
- Initial build of 1.0.0