nodejs-module-not-found-error/nodejs-module-not-found-error.spec
2020-12-29 14:18:45 +08:00

42 lines
1.2 KiB
RPMSpec

Name: nodejs-module-not-found-error
Version: 1.0.1
Release: 2
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
Patch0: nodejs-module-not-found-error-node12.patch
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
BuildRequires: npm(tape)
%description
%{summary}.
%prep
%autosetup -p 1 -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
* Tue Dec 29 2020 Ge Wang <wangge20@huawei.com> - 1.0.1-2
- Fix compile failure
* Thu Aug 20 2020 yaokai <yaokai13@huawei.com> - 1.0.1-1
- Package init