!1 add package

Merge pull request !1 from 付安安/master
This commit is contained in:
openeuler-ci-bot 2020-08-24 14:44:55 +08:00 committed by Gitee
commit bc5e814a07
3 changed files with 48 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,44 @@
%global enable_tests 1
%global srcname generate-object-property
Name: nodejs-%{srcname}
Version: 1.2.0
Release: 1
Summary: Generate safe JS code that can used to reference a object property
License: MIT
URL: https://github.com/mafintosh/generate-object-property
Source0: https://registry.npmjs.org/%{srcname}/-/%{srcname}-%{version}.tgz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
%if 0%{?enable_tests}
BuildRequires: npm(is-property) npm(tape)
%endif
%description
%{summary}.
%prep
%setup -q -n package
rm -rf node_modules/
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname}
cp -pr package.json index.js \
%{buildroot}%{nodejs_sitelib}/%{srcname}
%nodejs_symlink_deps
%if 0%{?enable_tests}
%check
%nodejs_symlink_deps --check
tape test.js
%endif
%files
%doc README.md
%license LICENSE
%{nodejs_sitelib}/%{srcname}
%changelog
* Thu Aug 20 2020 Anan Fu <fuanan3@huawei.com> - 1.2.0-1
- package init

View File

@ -0,0 +1,4 @@
version_control: github
src_repo: mafintosh/generate-object-property
tag_prefix: "^v"
seperator: "."