package init
This commit is contained in:
parent
ab51d8bb30
commit
1509ab25e1
62
nodejs-validate-npm-package-license.spec
Normal file
62
nodejs-validate-npm-package-license.spec
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
%{?nodejs_find_provides_and_requires}
|
||||||
|
|
||||||
|
%global packagename validate-npm-package-license
|
||||||
|
%global enable_tests 1
|
||||||
|
|
||||||
|
Name: nodejs-validate-npm-package-license
|
||||||
|
Version: 3.0.1
|
||||||
|
Release: 1
|
||||||
|
Summary: Validates an npm package license string
|
||||||
|
|
||||||
|
License: ASL 2.0
|
||||||
|
URL: https://github.com/kemitchell/validate-npm-package-license.js.git
|
||||||
|
Source0: https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-%{version}.tgz
|
||||||
|
|
||||||
|
ExclusiveArch: %{nodejs_arches} noarch
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
BuildRequires: nodejs-packaging
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
BuildRequires: npm(defence-cli) npm(replace-require-self) npm(spdx-correct)
|
||||||
|
BuildRequires: npm(spdx-expression-parse)
|
||||||
|
%endif
|
||||||
|
|
||||||
|
Requires: nodejs
|
||||||
|
|
||||||
|
%description
|
||||||
|
Give me a string and I'll tell you if it's a valid npm package license string.
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n package
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
# nothing to do!
|
||||||
|
|
||||||
|
%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}
|
||||||
|
defence README.md | replace-require-self | node
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{!?_licensedir:%global license %doc}
|
||||||
|
%doc *.md
|
||||||
|
%license LICENSE
|
||||||
|
%{nodejs_sitelib}/%{packagename}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Aug 12 2020 wangxiao <wangxiao65@huawei.com> - 3.0.1-1
|
||||||
|
- package init
|
||||||
5
nodejs-validate-npm-package-license.yaml
Normal file
5
nodejs-validate-npm-package-license.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
git_url: https://github.com/kemitchell/validate-npm-package-license.js
|
||||||
|
version_control: github
|
||||||
|
src_repo: kemitchell/validate-npm-package-license.js
|
||||||
|
tag_prefix: "^v"
|
||||||
|
seperator: "."
|
||||||
BIN
validate-npm-package-license-3.0.1.tgz
Normal file
BIN
validate-npm-package-license-3.0.1.tgz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user