package init

This commit is contained in:
zhanghua1831 2020-08-27 14:57:29 +08:00
parent 836ad393b7
commit f9aba1cead
3 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,44 @@
%{?nodejs_find_provides_and_requires}
%global packagename spdx-exceptions
%global enable_tests 1
Name: nodejs-spdx-exceptions
Version: 1.0.5
Release: 1
Summary: A list of SPDX standard license exceptions
License: CC-BY
URL: https://github.com/jslicense/spdx-exceptions.json
Source0: https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-%{version}.tgz
ExclusiveArch: %{nodejs_arches} noarch
BuildArch: noarch
BuildRequires: nodejs-packaging
%if 0%{?enable_tests}
%endif
%description
List of SPDX standard license exceptions
%prep
%setup -q -n package
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
cp -pr *.json \
%{buildroot}%{nodejs_sitelib}/%{packagename}
%nodejs_symlink_deps
%check
%nodejs_symlink_deps --check
%{__nodejs} -e 'require("./")'
%if 0%{?enable_tests}
echo "There are no tests...."
%endif
%files
%{!?_licensedir:%global license %doc}
%doc *.md
%{nodejs_sitelib}/%{packagename}
%changelog
* Wed Aug 12 2020 zhanghua <zhanghua40@huawei.com> - 1.0.5-1
- package init

View File

@ -0,0 +1,4 @@
version_control: github
src_repo: jslicense/spdx-exceptions.json
tag_pattern: "^v"
seperator: "."

BIN
spdx-exceptions-1.0.5.tgz Normal file

Binary file not shown.