45 lines
1.0 KiB
RPMSpec
45 lines
1.0 KiB
RPMSpec
|
|
%{?nodejs_find_provides_and_requires}
|
||
|
|
%global enable_tests 1
|
||
|
|
%global srcname jsonpointer
|
||
|
|
%global owner janl
|
||
|
|
Name: nodejs-%{srcname}
|
||
|
|
Version: 3.0.0
|
||
|
|
Release: 1
|
||
|
|
Summary: Simple JSON Addressing
|
||
|
|
License: MIT
|
||
|
|
URL: https://github.com/janl/node-jsonpointer
|
||
|
|
Source0: https://registry.npmjs.org/jsonpointer/-/jsonpointer-%{version}.tgz
|
||
|
|
BuildArch: noarch
|
||
|
|
ExclusiveArch: %{nodejs_arches} noarch
|
||
|
|
BuildRequires: nodejs-packaging
|
||
|
|
%description
|
||
|
|
%{summary}.
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%setup -qn package
|
||
|
|
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
|
||
|
|
* Mon Aug 17 2020 wutao <wutao61@huawei.com> - 3.0.0-1
|
||
|
|
- Package init
|