Blame nodejs-typedarray.spec

6c7b402
%global enable_tests 1
6c7b402
%global module_name typedarray
6c7b402
6c7b402
Name:           nodejs-%{module_name}
6c7b402
Version:        0.0.6
19ff05a
Release:        4%{?dist}
6c7b402
Summary:        TypedArray polyfill for old browsers
6c7b402
6c7b402
License:        MIT
6c7b402
URL:            https://github.com/substack/typedarray
6c7b402
Source0:        http://registry.npmjs.org/%{module_name}/-/%{module_name}-%{version}.tgz
6c7b402
BuildArch:      noarch
6c7b402
ExclusiveArch:  %{nodejs_arches} noarch
6c7b402
6c7b402
BuildRequires:  nodejs-packaging
6c7b402
6c7b402
%if 0%{?enable_tests}
6c7b402
BuildRequires:  npm(tape)
6c7b402
%endif
6c7b402
6c7b402
%description
6c7b402
%{summary}.
6c7b402
6c7b402
%prep
6c7b402
%setup -q -n package
6c7b402
rm -rf node_modules
6c7b402
6c7b402
%build
6c7b402
# nothing to build
6c7b402
6c7b402
%install
6c7b402
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
6c7b402
cp -pr package.json *.js %{buildroot}%{nodejs_sitelib}/%{module_name}
6c7b402
%nodejs_symlink_deps
6c7b402
6c7b402
%if 0%{?enable_tests}
6c7b402
%check
6c7b402
%nodejs_symlink_deps --check
6c7b402
tape test/*.js test/server/*.js
6c7b402
%endif
6c7b402
6c7b402
%files
6c7b402
%doc readme.markdown LICENSE example
6c7b402
%{nodejs_sitelib}/%{module_name}
6c7b402
6c7b402
%changelog
19ff05a
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.6-4
19ff05a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
19ff05a
84cfcc2
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.6-3
84cfcc2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
84cfcc2
6d9b4ab
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.6-2
6d9b4ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
6d9b4ab
6c7b402
* Mon Dec 22 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.0.6-1
6c7b402
- Initial packaging
6c7b402