%global npm_name tinycolor
Summary: A to-the-point color module for node
Name: nodejs-%{npm_name}
Version: 0.0.1
Release: 4%{?dist}
Group: System Environment/Libraries
License: MIT
URL: http://github.com/einaros/tinycolor
Source0: http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
# The readme file has been updated to include the license.
# We are including it here until the next release when it should be
# part of the release.
# https://raw.github.com/einaros/tinycolor/master/README.md
Source1: nodejs-tinycolor-README.md
BuildRequires: nodejs-devel
BuildArch: noarch
%description
This is a no-fuzz, bare bones color module for nodejs.
%prep
%setup -q -n package
rm -f README.md
cp -pr %{SOURCE1} README.md
%build
#nothing to do
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
cp -pr tinycolor.js package.json %{buildroot}%{nodejs_sitelib}/%{npm_name}
%files
%doc README.md example.js
%{nodejs_sitelib}/%{npm_name}
%changelog
* Wed Jun 19 2013 Troy Dawson <tdawson@redhat.com> - 0.0.1-4
- Bump release number up (#975863)
* Tue May 28 2013 Troy Dawson <tdawson@redhat.com> - 0.0.1-3
- Fixed description so words are spelled correctly
- Updated README.md with the latest one that has a license
* Fri Mar 01 2013 Troy Dawson <tdawson@redhat.com> - 0.0.1-2
- Update spec to Fedora nodejs standards
* Wed Nov 14 2012 Troy Dawson <tdawson@redhat.com> - 0.0.1-1
- Initial build using tchor spec template