commit
8988a12dbc
18
LICENSE
Normal file
18
LICENSE
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of this software and associated documentation files (the
|
||||||
|
"Software"), to deal in the Software without restriction, including
|
||||||
|
without limitation the rights to use, copy, modify, merge, publish,
|
||||||
|
distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
|
permit persons to whom the Software is furnished to do so, subject to
|
||||||
|
the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be
|
||||||
|
included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||||
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||||
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
47
nodejs-has-color.spec
Normal file
47
nodejs-has-color.spec
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
%{?nodejs_find_provides_and_requires}
|
||||||
|
%global enable_tests 1
|
||||||
|
%global packagename supports-color
|
||||||
|
|
||||||
|
Name: nodejs-has-color
|
||||||
|
Version: 0.1.7
|
||||||
|
Release: 1
|
||||||
|
Summary: Detects whether a terminal supports color
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/chalk/supports-color
|
||||||
|
Source0: https://github.com/chalk/supports-color/archive/v%{version}.tar.gz
|
||||||
|
#https://opensource.org.licenses/MIT
|
||||||
|
Source1: LICENSE
|
||||||
|
BuildArch: noarch
|
||||||
|
ExclusiveArch: %{nodejs_arches} noarch
|
||||||
|
BuildRequires: nodejs-packaging
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
BuildRequires: npm(mocha)
|
||||||
|
%endif
|
||||||
|
%description
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{packagename}-%{version}
|
||||||
|
cp -p %{SOURCE1} .
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{nodejs_sitelib}/has-color
|
||||||
|
cp -pr package.json index.js \
|
||||||
|
%{buildroot}%{nodejs_sitelib}/has-color
|
||||||
|
%nodejs_symlink_deps
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
|
||||||
|
%check
|
||||||
|
%nodejs_symlink_deps --check
|
||||||
|
/usr/bin/mocha
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc LICENSE readme.md
|
||||||
|
%{nodejs_sitelib}/has-color
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Aug 20 2020 wangxiao <wangxiao65@huawei.com> - 0.1.7-1
|
||||||
|
- Package init
|
||||||
5
nodejs-has-color.yaml
Normal file
5
nodejs-has-color.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
git_url: https://github.com/sindresorhus/has-color
|
||||||
|
version_control: github
|
||||||
|
src_repo: sindresorhus/has-color
|
||||||
|
tag_prefix: "^v"
|
||||||
|
seperator: "."
|
||||||
BIN
v0.1.7.tar.gz
Normal file
BIN
v0.1.7.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user