diff --git a/nodejs-once.spec b/nodejs-once.spec new file mode 100644 index 0000000..366d1cd --- /dev/null +++ b/nodejs-once.spec @@ -0,0 +1,32 @@ +%{?nodejs_find_provides_and_requires} +Name: nodejs-once +Version: 1.3.3 +Release: 1 +Summary: Run a function exactly one time +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +License: BSD +URL: https://github.com/isaacs/once +Source0: https://registry.npmjs.org/once/-/once-%{version}.tgz +BuildRequires: nodejs-packaging +%description +Run a function exactly one time. + +%prep +%setup -q -n package + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/once +cp -pr package.json once.js %{buildroot}%{nodejs_sitelib}/once +%nodejs_symlink_deps + +%files +%{nodejs_sitelib}/once +%doc README.md +%license LICENSE + +%changelog +* Mon Aug 17 2020 wutao - 1.3.3-1 +- Package init diff --git a/nodejs-once.yaml b/nodejs-once.yaml new file mode 100644 index 0000000..4f99883 --- /dev/null +++ b/nodejs-once.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: isaacs/once +tag_prefix: "^" +seperator: "." diff --git a/once-1.3.3.tgz b/once-1.3.3.tgz new file mode 100644 index 0000000..33c7614 Binary files /dev/null and b/once-1.3.3.tgz differ