39 lines
1002 B
RPMSpec
39 lines
1002 B
RPMSpec
|
|
%{?nodejs_find_provides_and_requires}
|
||
|
|
Name: nodejs-has-unicode
|
||
|
|
Version: 2.0.1
|
||
|
|
Release: 1
|
||
|
|
Summary: Try to guess if your terminal supports unicode
|
||
|
|
License: ISC
|
||
|
|
URL: https://github.com/iarna/has-unicode
|
||
|
|
Source0: https://registry.npmjs.org/has-unicode/-/has-unicode-%{version}.tgz
|
||
|
|
BuildArch: noarch
|
||
|
|
ExclusiveArch: %{nodejs_arches} noarch
|
||
|
|
BuildRequires: nodejs-packaging
|
||
|
|
BuildRequires: npm(tap) npm(require-inject)
|
||
|
|
%description
|
||
|
|
Try to guess if your terminal supports unicode.
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%autosetup -n package
|
||
|
|
rm -rf node_modules
|
||
|
|
|
||
|
|
%build
|
||
|
|
|
||
|
|
%install
|
||
|
|
mkdir -p %{buildroot}%{nodejs_sitelib}/has-unicode
|
||
|
|
cp -pr package.json *.js %{buildroot}%{nodejs_sitelib}/has-unicode
|
||
|
|
%nodejs_symlink_deps
|
||
|
|
|
||
|
|
%check
|
||
|
|
%nodejs_symlink_deps --check
|
||
|
|
%tap test/*.js
|
||
|
|
|
||
|
|
%files
|
||
|
|
%doc README.md
|
||
|
|
%license LICENSE
|
||
|
|
%{nodejs_sitelib}/has-unicode
|
||
|
|
|
||
|
|
%changelog
|
||
|
|
* Thu Aug 20 2020 yaokai <yaokai13@huawei.com> - 2.0.1-1
|
||
|
|
- Package init
|