diff --git a/nodejs-temporary.spec b/nodejs-temporary.spec new file mode 100644 index 0000000..eb7edf2 --- /dev/null +++ b/nodejs-temporary.spec @@ -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 - 0.0.8-1 +- package init diff --git a/nodejs-temporary.yaml b/nodejs-temporary.yaml new file mode 100644 index 0000000..b89d103 --- /dev/null +++ b/nodejs-temporary.yaml @@ -0,0 +1,5 @@ +git_url: https://github.com/vesln/temporary +version_control: github +src_repo: vesln/temporary +tag_prefix: "^v" +seperator: "." diff --git a/temporary-0.0.8.tgz b/temporary-0.0.8.tgz new file mode 100644 index 0000000..e9141ad Binary files /dev/null and b/temporary-0.0.8.tgz differ