!2 Package init
From: @chengzihan2 Reviewed-by: @solarhu Signed-off-by: @solarhu
This commit is contained in:
commit
3bd1f2a910
50
nodejs-es6-symbol.spec
Normal file
50
nodejs-es6-symbol.spec
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
%{?nodejs_find_provides_and_requires}
|
||||||
|
%global packagename es6-symbol
|
||||||
|
%global enable_tests 0
|
||||||
|
Name: nodejs-es6-symbol
|
||||||
|
Version: 3.1.0
|
||||||
|
Release: 1
|
||||||
|
Summary: ECMAScript 6 Symbol polyfill
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/medikoo/es6-symbol.git
|
||||||
|
Source0: https://github.com/medikoo/es6-symbol/archive/v%{version}.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
ExclusiveArch: %{nodejs_arches} noarch
|
||||||
|
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
|
||||||
|
BuildRequires: nodejs-packaging
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
BuildRequires: npm(tad)
|
||||||
|
%endif
|
||||||
|
%description
|
||||||
|
ECMAScript 6 Symbol polyfill
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n es6-symbol-%{version}
|
||||||
|
%nodejs_fixdep d "<=2.0.0"
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
%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("./")'
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
%{__nodejs} %{nodejs_sitelib}/tad/bin/tad
|
||||||
|
%else
|
||||||
|
echo "Tests have been disabled..."
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{!?_licensedir:%global license %doc}
|
||||||
|
%doc *.md CHANGES
|
||||||
|
%license LICENSE
|
||||||
|
%{nodejs_sitelib}/%{packagename}
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Aug 20 2020 Anan Fu <fuanan3@huawei.com> - 3.1.0-1
|
||||||
|
- package init
|
||||||
4
nodejs-es6-symbol.yaml
Normal file
4
nodejs-es6-symbol.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: medikoo/es6-symbol.git
|
||||||
|
tag_prefix: "^v"
|
||||||
|
seperator: "."
|
||||||
BIN
v3.1.0.tar.gz
Normal file
BIN
v3.1.0.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user