package init
This commit is contained in:
parent
0adbfeaf3e
commit
1e453b82e3
47
nodejs-replace-require-self.spec
Normal file
47
nodejs-replace-require-self.spec
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
%{?nodejs_find_provides_and_requires}
|
||||||
|
%global packagename replace-require-self
|
||||||
|
%global enable_tests 1
|
||||||
|
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://registry.npmjs.org/replace-require-self/-/replace-require-self-%{version}.tgz
|
||||||
|
BuildArch: noarch
|
||||||
|
ExclusiveArch: %{nodejs_arches} noarch
|
||||||
|
BuildRequires: nodejs-packaging npm(stream-replace)
|
||||||
|
%description
|
||||||
|
Require($THIS_PACKAGE) -> require('./')
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n package
|
||||||
|
|
||||||
|
%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
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
%{_bindir}/echo -e "\e[102m -=#=- No test suite -=#=- \e[0m"
|
||||||
|
%else
|
||||||
|
%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{!?_licensedir:%global license %doc}
|
||||||
|
%license LICENSE
|
||||||
|
%{nodejs_sitelib}/%{packagename}
|
||||||
|
%{_bindir}/replace-require-self
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Aug 21 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
replace-require-self-1.1.1.tgz
Normal file
BIN
replace-require-self-1.1.1.tgz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user