38 lines
1.0 KiB
RPMSpec
38 lines
1.0 KiB
RPMSpec
|
|
Name: nodejs-module-not-found-error
|
||
|
|
Version: 1.0.1
|
||
|
|
Release: 1
|
||
|
|
Summary: Create a module not found error
|
||
|
|
License: MIT
|
||
|
|
URL: https://github.com/bendrucker/module-not-found-error
|
||
|
|
Source0: https://github.com/bendrucker/module-not-found-error/archive/v%{version}.tar.gz#/nodejs-module-not-found-error-%{version}.tar.gz
|
||
|
|
BuildArch: noarch
|
||
|
|
ExclusiveArch: %{nodejs_arches} noarch
|
||
|
|
BuildRequires: nodejs-packaging
|
||
|
|
BuildRequires: npm(tape)
|
||
|
|
%description
|
||
|
|
%{summary}.
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%setup -q -n module-not-found-error-%{version}
|
||
|
|
rm -rf node_modules
|
||
|
|
|
||
|
|
%build
|
||
|
|
|
||
|
|
%install
|
||
|
|
mkdir -p %{buildroot}%{nodejs_sitelib}/module-not-found-error
|
||
|
|
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/module-not-found-error
|
||
|
|
%nodejs_symlink_deps
|
||
|
|
|
||
|
|
%check
|
||
|
|
%nodejs_symlink_deps --check
|
||
|
|
%{nodejs_sitelib}/tape/bin/tape test.js
|
||
|
|
|
||
|
|
%files
|
||
|
|
%doc readme.md
|
||
|
|
%license license
|
||
|
|
%{nodejs_sitelib}/module-not-found-error
|
||
|
|
|
||
|
|
%changelog
|
||
|
|
* Thu Aug 20 2020 yaokai <yaokai13@huawei.com> - 1.0.1-1
|
||
|
|
- Package init
|