commit
afbb50ad1f
46
nodejs-spdx-correct.spec
Normal file
46
nodejs-spdx-correct.spec
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
%{?nodejs_find_provides_and_requires}
|
||||||
|
%global packagename spdx-correct
|
||||||
|
%global enable_tests 1
|
||||||
|
Name: nodejs-spdx-correct
|
||||||
|
Version: 1.0.2
|
||||||
|
Release: 1
|
||||||
|
Summary: Correct invalid SPDX identifiers
|
||||||
|
License: ASL 2.0
|
||||||
|
URL: https://github.com/jslicense/spdx-correct.js
|
||||||
|
Source0: https://github.com/jslicense/spdx-correct.js/archive/v%{version}.tar.gz
|
||||||
|
ExclusiveArch: %{nodejs_arches} noarch
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: nodejs-packaging
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
BuildRequires: npm(tape) npm(spdx-expression-parse)
|
||||||
|
%endif
|
||||||
|
%description
|
||||||
|
correct invalid SPDX identifiers
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n spdx-correct.js-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
|
||||||
|
cp -pr package.json *.js \
|
||||||
|
%{buildroot}%{nodejs_sitelib}/%{packagename}
|
||||||
|
%nodejs_symlink_deps
|
||||||
|
|
||||||
|
%check
|
||||||
|
%nodejs_symlink_deps --check
|
||||||
|
%{__nodejs} -e 'require("./")'
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
%__nodejs examples.test.js
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{!?_licensedir:%global license %doc}
|
||||||
|
%doc *.md
|
||||||
|
%license LICENSE
|
||||||
|
%{nodejs_sitelib}/%{packagename}
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Aug 12 2020 zhanghua <zhanghua40@huawei.com> - 1.0.2-1
|
||||||
|
- package init
|
||||||
4
nodejs-spdx-correct.yaml
Normal file
4
nodejs-spdx-correct.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: jslicense/spdx-correct.js
|
||||||
|
tag_pattern: "^v"
|
||||||
|
seperator: "."
|
||||||
BIN
v1.0.2.tar.gz
Normal file
BIN
v1.0.2.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user