File nodejs-string_decoder.spec of Package nodejs-string_decoder

%define base_name string_decoder

%nodejs_find_provides_and_requires
Name:            nodejs-%{base_name}
Version:         0.10.31
Release:         0
License:         MIT
Summary:         Node.js string decoder
URL:             https://github.com/rvagg/string_decoder
Group:           Development/Languages/Other
Source0:         http://registry.npmjs.org/%{base_name}/-/%{base_name}-%{version}.tgz
BuildRequires:   nodejs-packaging
BuildRoot:       %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch:       noarch
ExclusiveArch:   %{ix86} x86_64 %{arm} noarch


%description
The string_decoder module from Node.js core.

%prep
%setup -q -n package

%build

%install
mkdir -p %{buildroot}%{nodejs_modulesdir}/%{base_name}
cp -pr package.json index.js \
        %{buildroot}%{nodejs_modulesdir}/%{base_name}/

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc  README.md LICENSE
%{nodejs_modulesdir}/%{base_name}

%changelog