diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..5a8e332 --- /dev/null +++ b/LICENSE @@ -0,0 +1,14 @@ + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2004 Sam Hocevar + + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. + diff --git a/inherits-2.0.3.tgz b/inherits-2.0.3.tgz new file mode 100644 index 0000000..c09e405 Binary files /dev/null and b/inherits-2.0.3.tgz differ diff --git a/nodejs-inherits.spec b/nodejs-inherits.spec new file mode 100644 index 0000000..7ce067b --- /dev/null +++ b/nodejs-inherits.spec @@ -0,0 +1,67 @@ +%{?nodejs_find_provides_and_requires} +Name: nodejs-inherits +Version: 2.0.3 +Release: 1 +Summary: A tiny simple way to do classic inheritance in js +License: WTFPL +URL: https://github.com/isaacs/inherits +Source0: https://registry.npmjs.org/inherits/-/inherits-%{version}.tgz +Source1: https://raw.github.com/isaacs/inherits/112807f2670160b6e3bafdf39e395c10ae7d0fac/LICENSE +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +BuildRequires: nodejs-packaging +%description +%{summary}. + +%prep +%setup -q -n package +cp -p %{SOURCE1} LICENSE + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/inherits@2 +cp -pr inherits.js package.json %{buildroot}%{nodejs_sitelib}/inherits@2 +ln -sf inherits@2 %{buildroot}%{nodejs_sitelib}/inherits +%nodejs_symlink_deps + +%check +%nodejs_symlink_deps --check +%triggerun -- nodejs-inherits < 2.0.0-4 +ln -sf inherits@2 %{nodejs_sitelib}/inherits +%{__python} < +if posix.stat("%{nodejs_sitelib}/inherits", "type") == "directory" then + os.rename('%{nodejs_sitelib}/inherits', '%{nodejs_sitelib}/inherits@2') +end + +%files +%doc README.md +%license LICENSE +%{nodejs_sitelib}/inherits@2 +%{nodejs_sitelib}/inherits + +%changelog +* Thu Aug 20 2020 wangxiao - 2.0.3-1 +- Package init diff --git a/nodejs-inherits.yaml b/nodejs-inherits.yaml new file mode 100644 index 0000000..6624886 --- /dev/null +++ b/nodejs-inherits.yaml @@ -0,0 +1,5 @@ +git_url: https://github.com/isaacs/inherits +version_control: github +src_repo: isaacs/inherits +tag_prefix: "^v" +seperator: "."