commit
5b543520c2
44
nodejs-normalize-package-data.spec
Normal file
44
nodejs-normalize-package-data.spec
Normal file
@ -0,0 +1,44 @@
|
||||
%{?nodejs_find_provides_and_requires}
|
||||
Name: nodejs-normalize-package-data
|
||||
Version: 2.3.5
|
||||
Release: 1
|
||||
Summary: Normalizes npm/package.json metadata
|
||||
BuildArch: noarch
|
||||
ExclusiveArch: %{nodejs_arches} noarch
|
||||
License: BSD
|
||||
URL: https://github.com/meryn/normalize-package-data
|
||||
Source0: https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-%{version}.tgz
|
||||
BuildRequires: nodejs-packaging
|
||||
BuildRequires: npm(async) npm(underscore) npm(semver) npm(github-url-from-git)
|
||||
BuildRequires: npm(hosted-git-info) npm(is-builtin-module) npm(tap)
|
||||
BuildRequires: npm(validate-npm-package-license)
|
||||
%description
|
||||
normalize-package-data exports a function that normalizes package metadata. This
|
||||
data is typically found in a package.json file, but in principle could come from
|
||||
any source - for example the npm registry.
|
||||
normalize-package-data is used by read-package-json to normalize the data it
|
||||
reads from a package.json file. In turn, read-package-json is used by npm and
|
||||
various npm-related tools.
|
||||
|
||||
%prep
|
||||
%setup -q -n package
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{nodejs_sitelib}/normalize-package-data
|
||||
cp -pr lib package.json %{buildroot}%{nodejs_sitelib}/normalize-package-data
|
||||
%nodejs_symlink_deps
|
||||
|
||||
%check
|
||||
%nodejs_symlink_deps --check
|
||||
%tap test/*.js || :
|
||||
|
||||
%files
|
||||
%{nodejs_sitelib}/normalize-package-data
|
||||
%doc README.md AUTHORS
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
* Thu Aug 20 2020 wangchong <wangchong56@huawei.com> - 2.3.5-1
|
||||
- package init
|
||||
4
nodejs-normalize-package-data.yaml
Normal file
4
nodejs-normalize-package-data.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: meryn/normalize-package-data
|
||||
tag_prefix: ^v
|
||||
seperator: .
|
||||
BIN
normalize-package-data-2.3.5.tgz
Normal file
BIN
normalize-package-data-2.3.5.tgz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user