nodejs-ansi/nodejs-ansi.spec
2023-10-30 16:44:04 +08:00

43 lines
1.3 KiB
RPMSpec

%{?nodejs_find_provides_and_requires}
Name: nodejs-ansi
Version: 0.3.1
Release: 1
Summary: ANSI escape codes for Node.js
License: MIT
URL: https://github.com/TooTallNate/ansi.js
Source0: https://github.com/TooTallNate/ansi.js/archive/refs/tags/v0.3.1.tar.gz
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 ansi.js-%{version}
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
* Mon Oct 30 2023 Ge Wang <wang__ge@126.com> - 0.3.1-1
- Update to version 0.3.1
* Sat Aug 8 2020 wutao <wutao61@huawei.com> - 0.3.0-1
- package init