nodejs-spdx-license-ids/nodejs-spdx-license-ids.spec
2023-10-31 15:32:56 +08:00

51 lines
1.2 KiB
RPMSpec

%global npm_name spdx-license-ids
%{?nodejs_find_provides_and_requires}
%global enable_tests 0
Name: nodejs-spdx-license-ids
Version: 2.0.1
Release: 1
Summary: A list of SPDX license identifiers
Url: https://github.com/shinnn/spdx-license-ids
Source0: https://github.com/jslicense/spdx-license-ids/archive/v2.0.1.tar.gz
License: Unlicense
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: jq nodejs-packaging
%if 0%{?enable_tests}
BuildRequires: npm(rimraf) npm(tape)
%endif
%description
A list of SPDX license identifiers
%prep
%setup -q -n spdx-license-ids-%{version}
chmod -x README.md
chmod -x build.js bower.json
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
cp -pr package.json bower.json build.js index.json module.js \
%{buildroot}%{nodejs_sitelib}/%{npm_name}
%{nodejs_symlink_deps}
%check
%{nodejs_symlink_deps} --check
%{__nodejs} -e 'require("./")'
%if 0%{?enable_tests}
%{__nodejs} --harmony_arrow_functions test.js
%endif
%files
%{!?_licensedir:%global license %doc}
%{nodejs_sitelib}/spdx-license-ids
%doc README.md
%changelog
* Mon Oct 30 2023 wulei <wu_lei@hoperun.com> - 2.0.1-1
- Update to 2.0.1
* Fri Aug 21 2020 wangchong <wangchong56@huawei.com> - 1.2.0-1
- package init