nodejs-object-inspect/nodejs-object-inspect.spec
2020-08-21 14:11:04 +08:00

38 lines
1008 B
RPMSpec

Name: nodejs-object-inspect
Version: 1.6.0
Release: 1
Summary: String representations of objects in node and the browser
License: MIT
URL: https://github.com/substack/object-inspect
Source0: https://registry.npmjs.org/object-inspect/-/object-inspect-%{version}.tgz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
BuildRequires: npm(tape)
%description
%{summary}.
%prep
%autosetup -p 1 -n package
rm -rf node_modules
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/object-inspect
cp -pr package.json index.js util.inspect.js %{buildroot}%{nodejs_sitelib}/object-inspect
%nodejs_symlink_deps
%check
%nodejs_symlink_deps --check
%{nodejs_sitelib}/tape/bin/tape test/*.js
%files
%doc readme.markdown example
%license LICENSE
%{nodejs_sitelib}/object-inspect
%changelog
* Mon Aug 17 2020 wutao <wutao61@huawei.com> - 1.6.0-1
- Package init