nodejs-jsonpointer/nodejs-jsonpointer.spec

48 lines
1.1 KiB
RPMSpec
Raw Normal View History

2020-08-24 16:16:18 +08:00
%{?nodejs_find_provides_and_requires}
%global enable_tests 1
%global srcname jsonpointer
%global owner janl
Name: nodejs-%{srcname}
2022-06-29 10:05:40 +08:00
Version: 5.0.0
2020-08-24 16:16:18 +08:00
Release: 1
Summary: Simple JSON Addressing
License: MIT
URL: https://github.com/janl/node-jsonpointer
2022-06-29 10:05:40 +08:00
Source0: https://github.com/janl/node-jsonpointer/archive/refs/tags/v5.0.0.tar.gz
2020-08-24 16:16:18 +08:00
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
%description
%{summary}.
%prep
2022-06-29 10:05:40 +08:00
%autosetup -n node-jsonpointer-5.0.0
2020-08-24 16:16:18 +08:00
rm -rf node_modules
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname}
cp -pr package.json jsonpointer.js \
%{buildroot}%{nodejs_sitelib}/%{srcname}
%nodejs_symlink_deps
%if 0%{?enable_tests}
%check
%nodejs_symlink_deps --check
node test.js
%endif
%files
%{!?_licensedir:%global license %doc}
%doc README.md
%license LICENSE.md
%{nodejs_sitelib}/%{srcname}
%changelog
2022-06-29 10:05:40 +08:00
* Wed Jun 29 2022 houyingchao <houyingchao@h-partners.com> - 5.0.0-1
- Upgrade to version 5.0.0
2020-08-24 16:16:18 +08:00
* Mon Aug 17 2020 wutao <wutao61@huawei.com> - 3.0.0-1
- Package init