commit
3700ed5076
38
nodejs-spdx-exceptions.spec
Normal file
38
nodejs-spdx-exceptions.spec
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
%{?nodejs_find_provides_and_requires}
|
||||||
|
%global packagename spdx-exceptions
|
||||||
|
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://github.com/jslicense/spdx-exceptions.json/archive/v%{version}.tar.gz
|
||||||
|
ExclusiveArch: %{nodejs_arches} noarch
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: nodejs-packaging
|
||||||
|
%description
|
||||||
|
List of SPDX standard license exceptions
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n spdx-exceptions.json-%{version}
|
||||||
|
|
||||||
|
%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("./")'
|
||||||
|
|
||||||
|
%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
|
||||||
4
nodejs-spdx-exceptions.yaml
Normal file
4
nodejs-spdx-exceptions.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: jslicense/spdx-exceptions.json
|
||||||
|
tag_pattern: "^v"
|
||||||
|
seperator: "."
|
||||||
BIN
v1.0.5.tar.gz
Normal file
BIN
v1.0.5.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user