%{?nodejs_find_provides_and_requires} %global packagename spdx-expression-parse %global enable_tests 1 Name: nodejs-spdx-expression-parse Version: 2.0.2 Release: 1 Summary: Parse SPDX license expressions License: MIT and CC-BY-3.0 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 * Mon Oct 30 2023 wulei - 2.0.2-1 - Update to 2.0.2 * Tue May 10 2022 liyanan - 1.0.2-2 - License compliance rectification * Fri Aug 21 2020 wangchong - 1.0.2-1 - package init