Blob Blame History Raw
%global module_name strscanner

Name:           nodejs-%{module_name}
Version:        0.0.8
Release:        3%{?dist}
Summary:        Lexical string analysis for javascript

#reported: https://github.com/crcn/strscan.js/pull/2
License:        MIT
URL:            https://github.com/crcn/strscan.js
Source0:        http://registry.npmjs.org/%{module_name}/-/%{module_name}-%{version}.tgz
Source1:        https://raw.githubusercontent.com/crcn/strscan.js/master/MIT-LICENSE.txt
BuildArch:      noarch
ExclusiveArch:  %{nodejs_arches} noarch

BuildRequires:  nodejs-packaging

%description
%{summary}.

%prep
%setup -q -n package
rm -rf node_modules

cp -p %{SOURCE1} .

chmod 644 README.md package.json lib/index.js examples/ex1.js

%build
#nothing to build

%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
cp -pr package.json lib %{buildroot}%{nodejs_sitelib}/%{module_name}
%nodejs_symlink_deps


%check
%nodejs_symlink_deps --check

%files
%doc README.md examples MIT-LICENSE.txt
%{nodejs_sitelib}/%{module_name}


%changelog
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.8-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Tue Oct 28 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.0.8-2
- Fix Source URL link

* Fri Sep 19 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.0.8-1
- Initial packaging