61 lines
1.5 KiB
RPMSpec
61 lines
1.5 KiB
RPMSpec
%{?nodejs_find_provides_and_requires}
|
|
%global packagename es5-ext
|
|
%global enable_tests 0
|
|
Name: nodejs-es5-ext
|
|
Version: 0.10.56
|
|
Release: 2
|
|
Summary: ECMAScript 5 extensions and ES6 shims
|
|
License: MIT
|
|
URL: https://github.com/medikoo/es5-ext.git
|
|
Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
|
|
Patch0: 0001-Revert-Give-Peace-a-Chance.patch
|
|
BuildArch: noarch
|
|
ExclusiveArch: %{nodejs_arches} noarch
|
|
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
|
|
BuildRequires: nodejs-packaging
|
|
%if 0%{?enable_tests}
|
|
BuildRequires: npm(tad)
|
|
%endif
|
|
Requires: nodejs
|
|
%description
|
|
ECMAScript 5 extensions and ES6 shims
|
|
|
|
%prep
|
|
%setup -q -n package
|
|
%patch0 -p1
|
|
%nodejs_fixdep es6-symbol ^3.1.1
|
|
|
|
%build
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
|
|
cp -pr package.json *.js array/ boolean/ date/ error/ function/ \
|
|
iterable/ math/ number/ object reg-exp string \
|
|
%{buildroot}%{nodejs_sitelib}/%{packagename}
|
|
%nodejs_symlink_deps
|
|
|
|
%check
|
|
%nodejs_symlink_deps --check
|
|
%if 0%{?enable_tests}
|
|
%{__nodejs} -e 'require("./")'
|
|
%{__nodejs} %{nodejs_sitelib}/tad/bin/tad
|
|
%else
|
|
echo "Tests are disabled..."
|
|
%endif
|
|
|
|
%files
|
|
%{!?_licensedir:%global license %doc}
|
|
%doc *.md
|
|
%license LICENSE
|
|
%{nodejs_sitelib}/%{packagename}
|
|
|
|
%changelog
|
|
* Fri Mar 10 2023 Ge Wang <wangge20@h-partners.com> - 0.10.56-2
|
|
- Revert Give Peace a Chance
|
|
|
|
* Wed Jul 06 2022 xigaoxinyan <xigaoxinyan@h-partners.com> - 0.10.56-1
|
|
- Upgrade to 0.10.56
|
|
|
|
* Tue Aug 18 2020 Anan Fu <fuanan3@huawei.com> - 0.10.12-1
|
|
- package init
|