%{?nodejs_find_provides_and_requires} %global packagename testdata-w3c-json-form %global enable_tests 1 Name: nodejs-testdata-w3c-json-form Version: 0.2.1 Release: 1%{?dist} Summary: Test data intended to be used by people building query parsers License: MIT URL: http://github.com/LinusU/testdata-w3c-json-form.git Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz # license requested upstream at https://github.com/LinusU/testdata-w3c-json-form/issues/1 Source1: LICENSE-MIT.txt ExclusiveArch: %{nodejs_arches} noarch BuildArch: noarch BuildRequires: nodejs-packaging %if 0%{?enable_tests} #BuildRequires: %endif %description This repository contains test data intended to be used by people building query parsers that follows [the W3C JSON form spec](http://www.w3.org/TR/html-json-forms/). %prep %autosetup -n package cp -p %{SOURCE1} LICENSE %build # nothing to do! %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename} cp -pr package.json *.js \ %{buildroot}%{nodejs_sitelib}/%{packagename} %nodejs_symlink_deps %check %nodejs_symlink_deps --check %{__nodejs} -e 'require("./")' %files %doc *.md %license LICENSE %{nodejs_sitelib}/%{packagename} %changelog * Wed Oct 04 2017 Jared Smith - 0.2.1-1 - Update to upstream 0.2.1 release, with an MIT license * Tue Oct 3 2017 Jared Smith - 0.2.0-1 - Initial packaging