package init
This commit is contained in:
parent
1e453b82e3
commit
a3bc5485aa
@ -1,28 +1,28 @@
|
|||||||
%{?nodejs_find_provides_and_requires}
|
%{?nodejs_find_provides_and_requires}
|
||||||
%global packagename replace-require-self
|
%global packagename replace-require-self
|
||||||
%global enable_tests 1
|
%global enable_tests 1
|
||||||
Name: nodejs-replace-require-self
|
Name: nodejs-replace-require-self
|
||||||
Version: 1.1.1
|
Version: 1.1.1
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: Require($THIS_PACKAGE) -> require('./')
|
Summary: Require($THIS_PACKAGE) -> require('./')
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/kemitchell/replace-require-self.js.git
|
URL: https://github.com/kemitchell/replace-require-self.js.git
|
||||||
Source0: https://registry.npmjs.org/replace-require-self/-/replace-require-self-%{version}.tgz
|
Source0: https://github.com/kemitchell/replace-require-self.js/archive/v%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
ExclusiveArch: %{nodejs_arches} noarch
|
ExclusiveArch: %{nodejs_arches} noarch
|
||||||
BuildRequires: nodejs-packaging npm(stream-replace)
|
BuildRequires: nodejs-packaging npm(stream-replace)
|
||||||
%description
|
%description
|
||||||
Require($THIS_PACKAGE) -> require('./')
|
Require($THIS_PACKAGE) -> require('./')
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n package
|
%autosetup -n replace-require-self.js-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
|
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
|
||||||
cp -pr package.json *.js \
|
cp -pr package.json *.js \
|
||||||
%{buildroot}%{nodejs_sitelib}/%{packagename}
|
%{buildroot}%{nodejs_sitelib}/%{packagename}
|
||||||
mkdir -p %{buildroot}%{_bindir}
|
mkdir -p %{buildroot}%{_bindir}
|
||||||
ln -sf %{nodejs_sitelib}/%{packagename}/cli.js \
|
ln -sf %{nodejs_sitelib}/%{packagename}/cli.js \
|
||||||
%{buildroot}%{_bindir}/replace-require-self
|
%{buildroot}%{_bindir}/replace-require-self
|
||||||
@ -43,5 +43,5 @@ ln -sf %{nodejs_sitelib}/%{packagename}/cli.js \
|
|||||||
%{_bindir}/replace-require-self
|
%{_bindir}/replace-require-self
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri Aug 21 2020 wangchong <wangchong56@huawei.com> - 1.1.1-1
|
* Mon Sep 7 2020 wangchong <wangchong56@huawei.com> - 1.1.1-1
|
||||||
- package init
|
- package init
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
version-control: github
|
version_control: github
|
||||||
src_repo: kemitchell/replace-require-self.js
|
src_repo: kemitchell/replace-require-self.js
|
||||||
tag_prefix: ^v
|
tag_prefix: "^v"
|
||||||
seperator: .
|
seperator: "."
|
||||||
|
|||||||
Binary file not shown.
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