nodejs-read-package-json/nodejs-read-package-json.spec

39 lines
1.1 KiB
RPMSpec
Raw Permalink Normal View History

2020-08-21 10:26:40 +08:00
%{?nodejs_find_provides_and_requires}
Name: nodejs-read-package-json
2023-10-31 15:20:30 +08:00
Version: 2.0.10
2020-08-21 10:26:40 +08:00
Release: 1
Summary: npm's package.json parser
License: ISC
URL: https://github.com/isaacs/read-package-json
2023-10-31 15:20:30 +08:00
Source0: https://github.com/npm/read-package-json/archive/refs/tags/read-package-json-%{version}.tar.gz
2020-08-21 10:26:40 +08:00
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
2023-10-31 15:20:30 +08:00
2020-08-21 10:26:40 +08:00
%description
The thing npm uses to read package.json files, with semantics, defaults and
validation.
%prep
2023-10-31 15:20:30 +08:00
%setup -q -n read-package-json-%{version}
2020-08-21 10:26:40 +08:00
%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
2023-10-31 15:20:30 +08:00
* Tue Oct 31 2023 Ge Wang <wang__ge@126.com> - 2.0.10-1
- update to version 2.0.10
2020-08-21 10:26:40 +08:00
* Fri Aug 21 2020 wangchong <wangchong56@huawei.com> - 2.0.3-1
- package init