File nodejs-buffer-crc32.spec of Package nodejs-buffer-crc32

%define base_name buffer-crc32

Name:            nodejs-%{base_name}
Version:         0.2.5
Release:         0
License:         MIT
Summary:         A pure javascript CRC32 algorithm that plays nice with binary data
URL:             https://github.com/brianloveswords/buffer-crc32
Group:           Development/Languages/Other
Source0:         http://registry.npmjs.org/%{base_name}/-/%{base_name}-%{version}.tgz
Requires:        nodejs
BuildRequires:   nodejs
BuildRequires:   nodejs-packaging
BuildRoot:       %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch:       noarch
ExclusiveArch:   %{ix86} x86_64 %{arm} noarch


%description
Node.js buffer-crc32 module. A pure javascript CRC32 algorithm that plays nice with binary data.

%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  LICENSE README.md
%{nodejs_modulesdir}/%{base_name}

%changelog
openSUSE Build Service is sponsored by