|
|
82e4aa |
%{?scl:%scl_package nodejs-%{module_name}}
|
|
|
82e4aa |
%{!?scl:%global pkg_name %{name}}
|
|
|
82e4aa |
|
|
|
82e4aa |
%{?nodejs_find_provides_and_requires}
|
|
|
82e4aa |
|
|
|
82e4aa |
%global enable_tests 0
|
|
|
82e4aa |
%global module_name typedarray
|
|
|
82e4aa |
|
|
|
82e4aa |
Name: %{?scl_prefix}nodejs-%{module_name}
|
|
|
82e4aa |
Version: 0.0.6
|
|
|
e12b59 |
Release: 5%{?dist}
|
|
|
82e4aa |
Summary: TypedArray polyfill for old browsers
|
|
|
82e4aa |
|
|
|
82e4aa |
License: MIT
|
|
|
82e4aa |
URL: https://github.com/substack/typedarray
|
|
|
82e4aa |
Source0: http://registry.npmjs.org/%{module_name}/-/%{module_name}-%{version}.tgz
|
|
|
82e4aa |
BuildArch: noarch
|
|
|
82e4aa |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
82e4aa |
|
|
|
82e4aa |
BuildRequires: %{?scl_prefix}nodejs-devel
|
|
|
82e4aa |
|
|
|
82e4aa |
%if 0%{?enable_tests}
|
|
|
82e4aa |
BuildRequires: %{?scl_prefix}npm(tape)
|
|
|
82e4aa |
%endif
|
|
|
82e4aa |
|
|
|
82e4aa |
%description
|
|
|
82e4aa |
%{summary}.
|
|
|
82e4aa |
|
|
|
82e4aa |
%prep
|
|
|
82e4aa |
%setup -q -n package
|
|
|
82e4aa |
rm -rf node_modules
|
|
|
82e4aa |
|
|
|
82e4aa |
%build
|
|
|
82e4aa |
# nothing to build
|
|
|
82e4aa |
|
|
|
82e4aa |
%install
|
|
|
82e4aa |
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
|
|
|
82e4aa |
cp -pr package.json *.js %{buildroot}%{nodejs_sitelib}/%{module_name}
|
|
|
82e4aa |
%nodejs_symlink_deps
|
|
|
82e4aa |
|
|
|
82e4aa |
%if 0%{?enable_tests}
|
|
|
82e4aa |
|
|
|
82e4aa |
%check
|
|
|
82e4aa |
%nodejs_symlink_deps --check
|
|
|
82e4aa |
tape test/*.js test/server/*.js
|
|
|
82e4aa |
%endif
|
|
|
82e4aa |
|
|
|
82e4aa |
%files
|
|
|
82e4aa |
%doc readme.markdown LICENSE example
|
|
|
82e4aa |
%{nodejs_sitelib}/%{module_name}
|
|
|
82e4aa |
|
|
|
82e4aa |
%changelog
|
|
|
e12b59 |
* Mon May 28 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.0.6-5
|
|
|
e12b59 |
- Resolves: RHBZ#1543198, rebuild for multiarch
|
|
|
e12b59 |
|
|
|
82e4aa |
* Thu Sep 15 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.0.6-4
|
|
|
82e4aa |
- Built for RHSCL
|
|
|
82e4aa |
|
|
|
82e4aa |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.6-3
|
|
|
82e4aa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
82e4aa |
|
|
|
82e4aa |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.6-2
|
|
|
82e4aa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
82e4aa |
|
|
|
82e4aa |
* Mon Dec 22 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.0.6-1
|
|
|
82e4aa |
- Initial packaging
|