diff --git a/nodejs-util.spec b/nodejs-util.spec new file mode 100644 index 0000000..8f761fb --- /dev/null +++ b/nodejs-util.spec @@ -0,0 +1,57 @@ +%global enable_tests 1 +%global srcname util + +Name: nodejs-%{srcname} +Version: 0.10.3 +Release: 1 +Summary: Node.JS util module +License: MIT +URL: https://github.com/defunctzombie/node-util +Source0: http://registry.npmjs.org/util/-/util-%{version}.tgz + +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +BuildRequires: nodejs-packaging + +%if 0%{?enable_tests} +BuildRequires: npm(inherits) +%endif + + +%description +%{summary}. + + +%prep +%setup -q -n package +rm -rf node_modules/ +%nodejs_fixdep inherits '2.x' + + +%build +#nothing to do + + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname} +cp -pr package.json util.js support/ %{buildroot}%{nodejs_sitelib}/%{srcname} + +%nodejs_symlink_deps + + +%if 0%{?enable_tests} +%check +%nodejs_symlink_deps --check +%{__nodejs} test/node/*.js +%endif + + +%files +%doc README.md LICENSE +%{nodejs_sitelib}/%{srcname} + + +%changelog +* Wed Aug 12 2020 wangxiao - 0.10.3-1 +- package init diff --git a/nodejs-util.yaml b/nodejs-util.yaml new file mode 100644 index 0000000..4cbf8d7 --- /dev/null +++ b/nodejs-util.yaml @@ -0,0 +1,5 @@ +git_url: https://github.com/defunctzombie/node-util +version_control: github +src_repo: defunctzombie/node-util +tag_prefix: "^v" +seperator: "." diff --git a/util-0.10.3.tgz b/util-0.10.3.tgz new file mode 100644 index 0000000..a2b1c6c Binary files /dev/null and b/util-0.10.3.tgz differ