commit
6057c0213c
47
nodejs-spdx-expression-parse.spec
Normal file
47
nodejs-spdx-expression-parse.spec
Normal file
@ -0,0 +1,47 @@
|
||||
%{?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
|
||||
4
nodejs-spdx-expression-parse.yaml
Normal file
4
nodejs-spdx-expression-parse.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: kemitchell/spdx-expression-parse.js
|
||||
tag_prefix: ^v
|
||||
seperator: .
|
||||
BIN
spdx-expression-parse-1.0.2.tgz
Normal file
BIN
spdx-expression-parse-1.0.2.tgz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user