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