diff --git a/1.0.2.tar.gz b/1.0.2.tar.gz new file mode 100644 index 0000000..6f63a0c Binary files /dev/null and b/1.0.2.tar.gz differ diff --git a/nodejs-util-deprecate.spec b/nodejs-util-deprecate.spec new file mode 100644 index 0000000..283b73b --- /dev/null +++ b/nodejs-util-deprecate.spec @@ -0,0 +1,40 @@ +%global module_name util-deprecate + +Name: nodejs-%{module_name} +Version: 1.0.2 +Release: 1 +Summary: The Node.js `util.deprecate()` function with browser support + +License: MIT +URL: https://github.com/TooTallNate/util-deprecate +Source0: https://github.com/TooTallNate/util-deprecate/archive/%{version}.tar.gz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +BuildRequires: nodejs-packaging + +%description +In Node.js, this module simply re-exports the util.deprecate() function. +In the web browser (i.e. via browserify), a browser-specific implementation +of the util.deprecate() function is used. + +%prep +%setup -q -n %{module_name}-%{version} +rm -rf node_modules + +%build +# nothing to build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name} +cp -pr package.json *.js %{buildroot}%{nodejs_sitelib}/%{module_name} +%nodejs_symlink_deps + +%files +%doc README.md +%license LICENSE +%{nodejs_sitelib}/%{module_name} + +%changelog +* Wed Aug 12 2020 wangxiao - 1.0.2-1 +- package init diff --git a/nodejs-util-deprecate.yaml b/nodejs-util-deprecate.yaml new file mode 100644 index 0000000..9fb2de3 --- /dev/null +++ b/nodejs-util-deprecate.yaml @@ -0,0 +1,5 @@ +git_url: https://github.com/TooTallNate/util-deprecate +version_control: github +src_repo: TooTallNate/util-deprecate +tag_prefix: "" +seperator: "."