!1 add package

Merge pull request !1 from 付安安/master
This commit is contained in:
openeuler-ci-bot 2020-08-24 17:31:52 +08:00 committed by Gitee
commit 33cbc8175e
3 changed files with 47 additions and 0 deletions

BIN
getobject-0.1.0.tgz Normal file

Binary file not shown.

43
nodejs-getobject.spec Normal file
View File

@ -0,0 +1,43 @@
%{?nodejs_find_provides_and_requires}
%global enable_tests 0
Name: nodejs-getobject
Version: 0.1.0
Release: 1
Summary: Get and set deep objects easily
License: MIT
URL: https://github.com/cowboy/node-getobject
Source0: http://registry.npmjs.org/getobject/-/getobject-%{version}.tgz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
BuildRequires: nodejs-packaging
%if 0%{?enable_tests}
BuildRequires: npm(grunt-cli) npm(grunt-contrib-nodeunit) npm(grunt-contrib-watch)
%endif
%description
%{summary}.
%prep
%setup -q -n package
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/getobject
cp -pr package.json lib/ \
%{buildroot}%{nodejs_sitelib}/getobject
%nodejs_symlink_deps
%if 0%{?enable_tests}
%check
%nodejs_symlink_deps --check
/usr/bin/grunt nodeunit -v
%endif
%files
%doc LICENSE-MIT README.md
%{nodejs_sitelib}/getobject
%changelog
* Thu Aug 20 2020 Anan Fu <fuanan3@huawei.com> - 0.1.0-1
- package init

4
nodejs-getobject.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: cowboy/node-getobject
tag_prefix: "^v"
seperator: "."