commit
586ac400bf
41
nodejs-replace-require-self.spec
Normal file
41
nodejs-replace-require-self.spec
Normal file
@ -0,0 +1,41 @@
|
||||
%{?nodejs_find_provides_and_requires}
|
||||
%global packagename replace-require-self
|
||||
Name: nodejs-replace-require-self
|
||||
Version: 1.1.1
|
||||
Release: 1
|
||||
Summary: Require($THIS_PACKAGE) -> require('./')
|
||||
License: MIT
|
||||
URL: https://github.com/kemitchell/replace-require-self.js.git
|
||||
Source0: https://github.com/kemitchell/replace-require-self.js/archive/v%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
ExclusiveArch: %{nodejs_arches} noarch
|
||||
BuildRequires: nodejs-packaging npm(stream-replace)
|
||||
%description
|
||||
Require($THIS_PACKAGE) -> require('./')
|
||||
|
||||
%prep
|
||||
%autosetup -n replace-require-self.js-%{version}
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
|
||||
cp -pr package.json *.js \
|
||||
%{buildroot}%{nodejs_sitelib}/%{packagename}
|
||||
mkdir -p %{buildroot}%{_bindir}
|
||||
ln -sf %{nodejs_sitelib}/%{packagename}/cli.js \
|
||||
%{buildroot}%{_bindir}/replace-require-self
|
||||
%nodejs_symlink_deps
|
||||
|
||||
%check
|
||||
%nodejs_symlink_deps --check
|
||||
|
||||
%files
|
||||
%{!?_licensedir:%global license %doc}
|
||||
%license LICENSE
|
||||
%{nodejs_sitelib}/%{packagename}
|
||||
%{_bindir}/replace-require-self
|
||||
|
||||
%changelog
|
||||
* Mon Sep 7 2020 wangchong <wangchong56@huawei.com> - 1.1.1-1
|
||||
- package init
|
||||
4
nodejs-replace-require-self.yaml
Normal file
4
nodejs-replace-require-self.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: kemitchell/replace-require-self.js
|
||||
tag_prefix: "^v"
|
||||
seperator: "."
|
||||
BIN
v1.1.1.tar.gz
Normal file
BIN
v1.1.1.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user