diff --git a/nodejs-spdx-correct.spec b/nodejs-spdx-correct.spec new file mode 100644 index 0000000..d912d1b --- /dev/null +++ b/nodejs-spdx-correct.spec @@ -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 - 1.0.2-1 +- package init diff --git a/nodejs-spdx-correct.yaml b/nodejs-spdx-correct.yaml new file mode 100644 index 0000000..864fbac --- /dev/null +++ b/nodejs-spdx-correct.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: jslicense/spdx-correct.js +tag_pattern: "^v" +seperator: "." diff --git a/v1.0.2.tar.gz b/v1.0.2.tar.gz new file mode 100644 index 0000000..1cfea05 Binary files /dev/null and b/v1.0.2.tar.gz differ