nodejs-spdx-expression-parse/nodejs-spdx-expression-parse.spec
wangchong1995924 11e4740918 fix the warning
2020-08-21 16:01:09 +08:00

48 lines
1.1 KiB
RPMSpec

%{?nodejs_find_provides_and_requires}
%global packagename spdx-expression-parse
%global enable_tests 1
Name: nodejs-spdx-expression-parse
Version: 1.0.2
Release: 1
Summary: Parse SPDX license expressions
License: MIT and CC-BY
URL: https://github.com/kemitchell/spdx-expression-parse.js.git
Source0: https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-%{version}.tgz
ExclusiveArch: %{nodejs_arches} noarch
BuildArch: noarch
BuildRequires: nodejs-packaging uglify-js npm(jison) npm(spdx-license-ids)
BuildRequires: npm(spdx-exceptions)
%if 0%{?enable_tests}
%endif
Requires: nodejs
%description
Parse SPDX license expressions
%prep
%setup -q -n package
%build
%nodejs_symlink_deps --check
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
cp -pr package.json *.js \
%{buildroot}%{nodejs_sitelib}/%{packagename}
%nodejs_symlink_deps
%check
%{__nodejs} -e 'require("./")'
%if 0%{?enable_tests}
echo "There are no tests..."
%endif
%files
%{!?_licensedir:%global license %doc}
%doc *.md
%license LICENSE
%{nodejs_sitelib}/%{packagename}
%changelog
* Fri Aug 21 2020 wangchong <wangchong56@huawei.com> - 1.0.2-1
- package init