diff --git a/nodejs-inherits1.spec b/nodejs-inherits1.spec new file mode 100644 index 0000000..1b3f186 --- /dev/null +++ b/nodejs-inherits1.spec @@ -0,0 +1,37 @@ +%{?nodejs_find_provides_and_requires} + +Name: nodejs-inherits1 +Version: 1.0.1 +Release: 1 +Summary: A tiny simple way to do classic inheritance in JS - legacy version +License: WTFPL +URL: https://github.com/isaacs/inherits +Source0: https://github.com/isaacs/inherits/archive/v%{version}.tar.gz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +BuildRequires: nodejs-packaging +%description +A tiny simple way to do classic inheritance in JavaScript. +This is the legacy version used by many Node.js modules for many years, and is +retained for backward compatibility. New modules should use the inheritance +functionality available in core Node.js or use the new version of inherits if +they need browser support as well. + +%prep +%setup -q -n inherits-%{version} + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/inherits@1 +cp -pr inherits.js package.json %{buildroot}%{nodejs_sitelib}/inherits@1 +%nodejs_symlink_deps + +%files +%{nodejs_sitelib}/inherits@1 +%doc README.md +%license LICENSE + +%changelog +* Thu Aug 20 2020 wangxiao - 1.0.0-1 +- Package init diff --git a/nodejs-inherits1.yaml b/nodejs-inherits1.yaml new file mode 100644 index 0000000..6624886 --- /dev/null +++ b/nodejs-inherits1.yaml @@ -0,0 +1,5 @@ +git_url: https://github.com/isaacs/inherits +version_control: github +src_repo: isaacs/inherits +tag_prefix: "^v" +seperator: "." diff --git a/v1.0.1.tar.gz b/v1.0.1.tar.gz new file mode 100644 index 0000000..5571f6f Binary files /dev/null and b/v1.0.1.tar.gz differ