package init

This commit is contained in:
wang_yue111 2020-08-21 09:17:50 +08:00
parent 01846997a7
commit 777d9bbc27
3 changed files with 47 additions and 0 deletions

42
nodejs-temporary.spec Normal file
View File

@ -0,0 +1,42 @@
%{?nodejs_find_provides_and_requires}
%global enable_tests 0
Name: nodejs-temporary
Version: 0.0.8
Release: 1
Summary: An easy way to create temporary files and directories
License: MIT
URL: https://github.com/vesln/temporary
Source0: http://registry.npmjs.org/temporary/-/temporary-%{version}.tgz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
%if 0%{?enable_tests}
BuildRequires: npm(chai) npm(mocha) npm(sinon)
%endif
%description
%{summary}.
%prep
%setup -q -n package
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/temporary
cp -pr package.json index.js lib/ \
%{buildroot}%{nodejs_sitelib}/temporary
%nodejs_symlink_deps
%if 0%{?enable_tests}
%check
%nodejs_symlink_deps --check
NODE_ENV=test %{nodejs_sitelib}/mocha/bin/mocha -R spec test/*.test.js
%endif
%files
%doc History.md Readme.md examples/
%{nodejs_sitelib}/temporary
%changelog
* Fri Aug 21 2020 wangyue <wangyue92@huawei.com> - 0.0.8-1
- package init

5
nodejs-temporary.yaml Normal file
View File

@ -0,0 +1,5 @@
git_url: https://github.com/vesln/temporary
version_control: github
src_repo: vesln/temporary
tag_prefix: "^v"
seperator: "."

BIN
temporary-0.0.8.tgz Normal file

Binary file not shown.