Blob Blame History Raw
%{?nodejs_find_provides_and_requires}

%global module_name jsonparse

Name:       nodejs-%{module_name}
Version:    1.2.0
Release:    1%{?dist}
Summary:    Pure-js JSON streaming parser for node.js
License:    MIT
Group:      System Environment/Libraries
URL:        https://github.com/creationix/jsonparse
Source:     http://registry.npmjs.org/jsonparse/-/jsonparse-%{version}.tgz


BuildArch:  noarch

BuildRequires:  nodejs-packaging
BuildRequires:  npm(tap)
BuildRequires:  npm(tape)

ExclusiveArch:  %{ix86} x86_64 %{arm} noarch

%description
This is a streaming JSON parser for Node.js

%prep
%setup -q -n package

%build
#nothing to do

%install
mkdir -p %{buildroot}%{nodejs_sitelib}/jsonparse
cp -pr jsonparse.js package.json \
    %{buildroot}%{nodejs_sitelib}/jsonparse

%check
%nodejs_symlink_deps --check
/usr/bin/tap  test/*.js

%files
%{!?_licensedir:%global license %doc}
%doc README.markdown examples
%license LICENSE
%{nodejs_sitelib}/%{module_name}

%changelog
* Mon Oct 17 2016 Anish Patil <anish.developer@gmail.com> - 1.2.0-1
- Upstream has released new version

* Wed Dec 30 2015 Parag Nemade <pnemade AT redhat DOT com> - 1.0.0-2
- Specify exclusively arch list as per nodejs packaging guidelines

* Fri Feb 06 2015 Anish Patil <apatil@redhat.com> - 1.0.0-1
- Upstream has released new version

* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.6-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Wed Jun 4 2014 Anish Patil <apatil@redhat.com> - 0.0.6-4
- Incorporated package review comments

* Wed May 28 2014 Anish Patil <apatil@redhat.com> - 0.0.6-3
- Incorporated package review comments

* Wed May 7 2014 Anish Patil <apatil@redhat.com> - 0.0.6-2
- Incorporated package review comments

* Thu Apr 10 2014 Anish Patil <apatil@redhat.com> - 0.0.6-1
- Initial package