diff --git a/nodejs-wrappy.spec b/nodejs-wrappy.spec new file mode 100644 index 0000000..ffd6c95 --- /dev/null +++ b/nodejs-wrappy.spec @@ -0,0 +1,44 @@ +%{?nodejs_find_provides_and_requires} +%global enable_tests 1 +%global module_name wrappy +Name: nodejs-wrappy +Version: 1.0.2 +Release: 1 +Summary: Callback wrapping utility +License: ISC +URL: https://github.com/npm/wrappy +Source0: https://github.com/npm/wrappy/archive/v%{version}.tar.gz +BuildArch: noarch +BuildRequires: nodejs-packaging +%if 0%{?enable_tests} +BuildRequires: npm(tap) +%endif +ExclusiveArch: %{nodejs_arches} noarch +%description +Callback wrapping utility for node.js + +%prep +%setup -q -n wrappy-%{version} + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name} +cp -pr wrappy.js package.json \ + %{buildroot}%{nodejs_sitelib}/%{module_name} +%{nodejs_symlink_deps} +%if 0%{?enable_tests} + +%check +%{nodejs_symlink_deps} --check +tap test/*.js +%endif + +%files +%doc README.md +%license LICENSE +%{nodejs_sitelib}/%{module_name} + +%changelog +* Wed Aug 12 2020 wangyue - 1.0.2-1 +- package init diff --git a/nodejs-wrappy.yaml b/nodejs-wrappy.yaml new file mode 100644 index 0000000..4d9d781 --- /dev/null +++ b/nodejs-wrappy.yaml @@ -0,0 +1,5 @@ +git_url: https://github.com/npm/wrappy +version_control: github +src_repo: npm/wrappy +tag_prefix: "^v" +seperator: "." diff --git a/v1.0.2.tar.gz b/v1.0.2.tar.gz new file mode 100644 index 0000000..fee47ca Binary files /dev/null and b/v1.0.2.tar.gz differ