diff --git a/ansi-0.3.0.tgz b/ansi-0.3.0.tgz new file mode 100644 index 0000000..0a174e6 Binary files /dev/null and b/ansi-0.3.0.tgz differ diff --git a/nodejs-ansi.spec b/nodejs-ansi.spec new file mode 100644 index 0000000..abac11e --- /dev/null +++ b/nodejs-ansi.spec @@ -0,0 +1,39 @@ +%{?nodejs_find_provides_and_requires} +Name: nodejs-ansi +Version: 0.3.0 +Release: 1 +Summary: ANSI escape codes for Node.js +License: MIT +URL: https://github.com/TooTallNate/ansi.js +Source0: https://registry.npmjs.org/ansi/-/ansi-%{version}.tgz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +BuildRequires: nodejs-packaging +%description +ansi.js is a module for Node.js that provides an easy-to-use API for writing +ANSI escape codes to Stream instances. ANSI escape codes are used to do fancy +things in a terminal window, like render text in colors, delete characters, +lines, the entire window, or hide and show the cursor, and lots more! + +%prep +%setup -q -n package +chmod a-x examples/*.js examples/*/* + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/ansi +cp -pr package.json lib %{buildroot}%{nodejs_sitelib}/ansi +%nodejs_symlink_deps + +%check +%nodejs_symlink_deps --check +%__nodejs -e "require('./')" + +%files +%doc README.md History.md examples +%{nodejs_sitelib}/ansi + +%changelog +* Sat Aug 8 2020 wutao - 0.3.0-1 +- package init diff --git a/nodejs-ansi.yaml b/nodejs-ansi.yaml new file mode 100644 index 0000000..123de6a --- /dev/null +++ b/nodejs-ansi.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: TooTallNate/ansi.js +tag_prefix: "^v" +seperator: "."