!1 package init

Merge pull request !1 from jackie_wu123/master
This commit is contained in:
openeuler-ci-bot 2020-09-01 10:11:31 +08:00 committed by Gitee
commit fd18e2035a
3 changed files with 53 additions and 0 deletions

49
nodejs-test.spec Normal file
View File

@ -0,0 +1,49 @@
# needed for building on el6
%{?nodejs_find_provides_and_requires}
%global enable_tests 1
%global srcname test
%global owner gozala
Name: nodejs-%{srcname}
Version: 0.6.0
Release: 1
Summary: (Un)CommonJS test runner
License: MIT
URL: https://github.com/Gozala/test-commonjs
Source0: https://registry.npmjs.org/test/-/test-%{version}.tgz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
%if 0%{?enable_tests}
BuildRequires: nodejs-ansi-font
%endif
%description
%{summary}.
%prep
%setup -qn package
rm -rf node_modules
%build
#nothing to do
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname}
cp -pr package.json *.js \
%{buildroot}%{nodejs_sitelib}/%{srcname}
%nodejs_symlink_deps
%if 0%{?enable_tests}
%check
%nodejs_symlink_deps --check
%{__nodejs} ./test/index.js
%endif
%files
%{!?_licensedir:%global license %doc}
%doc History.md Readme.md
%license License.md
%{nodejs_sitelib}/%{srcname}
%changelog
* Tue Aug 11 2020 wutao <wutao61@huawei.com> - 0.6.0-1
- package init

4
nodejs-test.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: Gozala/test-commonjs
tag_prefix: "^v"
seperator: "."

BIN
test-0.6.0.tgz Normal file

Binary file not shown.