35 lines
984 B
RPMSpec
35 lines
984 B
RPMSpec
%{?nodejs_find_provides_and_requires}
|
|
Name: nodejs-read-package-json
|
|
Version: 2.0.3
|
|
Release: 1
|
|
Summary: npm's package.json parser
|
|
License: ISC
|
|
URL: https://github.com/isaacs/read-package-json
|
|
Source0: https://registry.npmjs.org/read-package-json/-/read-package-json-%{version}.tgz
|
|
BuildArch: noarch
|
|
ExclusiveArch: %{nodejs_arches} noarch
|
|
BuildRequires: nodejs-packaging
|
|
%description
|
|
The thing npm uses to read package.json files, with semantics, defaults and
|
|
validation.
|
|
|
|
%prep
|
|
%setup -q -n package
|
|
%nodejs_fixdep glob "^6.0.3"
|
|
|
|
%build
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{nodejs_sitelib}/read-package-json
|
|
cp -pr package.json read-json.js %{buildroot}%{nodejs_sitelib}/read-package-json
|
|
%nodejs_symlink_deps
|
|
|
|
%files
|
|
%{nodejs_sitelib}/read-package-json
|
|
%doc README.md
|
|
%license LICENSE
|
|
|
|
%changelog
|
|
* Fri Aug 21 2020 wangchong <wangchong56@huawei.com> - 2.0.3-1
|
|
- package init
|