|
|
01ea28a |
%global enable_tests 1
|
|
|
01ea28a |
%global module_name is-my-json-valid
|
|
|
01ea28a |
|
|
|
01ea28a |
Name: nodejs-%{module_name}
|
|
|
1114ff4 |
Version: 2.12.4
|
|
|
46a11ce |
Release: 7%{?dist}
|
|
|
01ea28a |
Summary: A JSONSchema validator that uses code generation to be extremely fast
|
|
|
01ea28a |
|
|
|
01ea28a |
License: MIT
|
|
|
01ea28a |
URL: https://github.com/mafintosh/is-my-json-valid
|
|
|
01ea28a |
Source0: https://registry.npmjs.org/%{module_name}/-/%{module_name}-%{version}.tgz
|
|
|
01ea28a |
BuildArch: noarch
|
|
|
01ea28a |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
01ea28a |
|
|
|
01ea28a |
BuildRequires: nodejs-packaging
|
|
|
01ea28a |
|
|
|
01ea28a |
%if 0%{?enable_tests}
|
|
|
01ea28a |
BuildRequires: npm(tape)
|
|
|
01ea28a |
BuildRequires: npm(jsonpointer)
|
|
|
01ea28a |
BuildRequires: npm(generate-object-property)
|
|
|
01ea28a |
BuildRequires: npm(generate-function)
|
|
|
01ea28a |
BuildRequires: npm(xtend)
|
|
|
01ea28a |
%endif
|
|
|
01ea28a |
|
|
|
01ea28a |
%description
|
|
|
01ea28a |
%{summary}.
|
|
|
01ea28a |
|
|
|
01ea28a |
%prep
|
|
|
01ea28a |
%setup -q -n package
|
|
|
01ea28a |
rm -rf node_modules
|
|
|
01ea28a |
|
|
|
01ea28a |
%nodejs_fixdep end-of-stream ~1.x
|
|
|
01ea28a |
%nodejs_fixdep jsonpointer
|
|
|
01ea28a |
|
|
|
01ea28a |
%build
|
|
|
01ea28a |
# nothing to build
|
|
|
01ea28a |
|
|
|
01ea28a |
%install
|
|
|
01ea28a |
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
|
|
|
01ea28a |
cp -pr package.json formats.js index.js require.js \
|
|
|
01ea28a |
%{buildroot}%{nodejs_sitelib}/%{module_name}
|
|
|
01ea28a |
|
|
|
01ea28a |
%nodejs_symlink_deps
|
|
|
01ea28a |
|
|
|
01ea28a |
%if 0%{?enable_tests}
|
|
|
01ea28a |
%check
|
|
|
01ea28a |
%nodejs_symlink_deps --check
|
|
|
01ea28a |
tape test/*.js
|
|
|
01ea28a |
%endif
|
|
|
01ea28a |
|
|
|
01ea28a |
%files
|
|
|
01ea28a |
%doc README.md example.js
|
|
|
01ea28a |
%license LICENSE
|
|
|
01ea28a |
%{nodejs_sitelib}/%{module_name}
|
|
|
01ea28a |
|
|
|
01ea28a |
%changelog
|
|
|
46a11ce |
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.12.4-7
|
|
|
46a11ce |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
46a11ce |
|
|
|
cb52d74 |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.12.4-6
|
|
|
cb52d74 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
cb52d74 |
|
|
|
d0cd5c7 |
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.12.4-5
|
|
|
d0cd5c7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
d0cd5c7 |
|
|
|
3d20e2c |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.12.4-4
|
|
|
3d20e2c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
3d20e2c |
|
|
|
ab074a7 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.12.4-3
|
|
|
ab074a7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
ab074a7 |
|
|
|
1c1e23c |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.12.4-2
|
|
|
1c1e23c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
1c1e23c |
|
|
|
1114ff4 |
* Tue Jan 26 2016 Piotr Popieluch <piotr1212@gmail.com> - 2.12.4-1
|
|
|
1114ff4 |
- Update to 2.12.4
|
|
|
1114ff4 |
|
|
|
01ea28a |
* Tue Nov 24 2015 Piotr Popieluch <piotr1212@gmail.com> - 2.12.3-1
|
|
|
01ea28a |
- Update to 2.12.3
|
|
|
01ea28a |
|
|
|
01ea28a |
* Wed Nov 11 2015 Piotr Popieluch <piotr1212@gmail.com> - 2.12.2-1
|
|
|
01ea28a |
- Initial packaging
|
|
|
01ea28a |
|