%global module_name node-print
Name: nodejs-%{module_name}
Version: 0.0.4
Release: 2%{?dist}
Summary: Printf in JavaScript Node.js module
License: MIT
URL: https://github.com/nuysoft/%{module_name}
Source0: http://registry.npmjs.org/%{module_name}/-/%{module_name}-%{version}.tgz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
%description
This module provides:
1) printf in JavaScript
2) Prettify log's color
3) Prettify JSONArray to table
4) Simple date format
%prep
%setup -q -n package
rm -rf node_modules
%build
#nothing to build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
cp -pr package.json print.js %{buildroot}%{nodejs_sitelib}/%{module_name}
%nodejs_symlink_deps
%check
%nodejs_symlink_deps --check
node test.js
%files
%doc LICENSE.md README.md
%{nodejs_sitelib}/%{module_name}
%changelog
* Fri Oct 24 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.0.4-2
- fix some minor changes as suggested in package review
* Fri Sep 19 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.0.4-1
- Initial packaging