diff --git a/nodejs-is-property-1.0.1-186608b.tar.gz b/nodejs-is-property-1.0.1-186608b.tar.gz new file mode 100644 index 0000000..45ab10b Binary files /dev/null and b/nodejs-is-property-1.0.1-186608b.tar.gz differ diff --git a/nodejs-is-property.spec b/nodejs-is-property.spec new file mode 100644 index 0000000..6da358a --- /dev/null +++ b/nodejs-is-property.spec @@ -0,0 +1,40 @@ +%global srcname is-property +%global commit 186608bb4904de827ac78f7a12eab67b35187561 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) +Name: nodejs-%{srcname} +Version: 1.0.1 +Release: 1 +Summary: Tests if a json property can be safely accessed using the .syntax +License: MIT +URL: https://github.com/mikolalysenko/is-property +Source0: https://github.com/mikolalysenko/is-property/archive/%{commit}/nodejs-%{srcname}-%{version}-%{shortcommit}.tar.gz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +BuildRequires: nodejs-packaging npm(tap) npm(tape) +%description +%{summary}. + +%prep +%autosetup -n %{srcname}-%{commit} +rm -rf node_modules + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname} +cp -pr package.json is-property.js \ + %{buildroot}%{nodejs_sitelib}/%{srcname} +%nodejs_symlink_deps + +%check +%nodejs_symlink_deps --check +tap test/*.js + +%files +%doc README.md +%license LICENSE +%{nodejs_sitelib}/%{srcname} + +%changelog +* Thu Aug 20 2020 wangxiao - 1.0.1-1 +- Package init diff --git a/nodejs-is-property.yaml b/nodejs-is-property.yaml new file mode 100644 index 0000000..561d8a4 --- /dev/null +++ b/nodejs-is-property.yaml @@ -0,0 +1,5 @@ +git_url: https://github.com/mikolalysenko/is-property +version_control: github +src_repo: mikolalysenko/is-property +tag_prefix: "^v" +seperator: "."