package init

This commit is contained in:
wangxiao65 2020-08-20 09:28:17 +08:00
parent 0ed20f0d23
commit bf57ac2034
3 changed files with 62 additions and 0 deletions

57
nodejs-util.spec Normal file
View File

@ -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 <wangxiao65@huawei.com> - 0.10.3-1
- package init

5
nodejs-util.yaml Normal file
View File

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

BIN
util-0.10.3.tgz Normal file

Binary file not shown.