commit
2adf3d14f4
61
nodejs-istanbul.spec
Normal file
61
nodejs-istanbul.spec
Normal file
@ -0,0 +1,61 @@
|
||||
%{?nodejs_find_provides_and_requires}
|
||||
%global enable_tests 1
|
||||
%global srcname istanbul
|
||||
Name: nodejs-%{srcname}
|
||||
Version: 0.4.5
|
||||
Release: 1
|
||||
Summary: A JS code coverage tool written in JS
|
||||
License: BSD
|
||||
URL: https://github.com/gotwarlost/istanbul
|
||||
Source0: https://github.com/gotwarlost/istanbul/archive/v%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
ExclusiveArch: %{nodejs_arches} noarch
|
||||
BuildRequires: nodejs-packaging
|
||||
%if 0%{?enable_tests}
|
||||
BuildRequires: npm(escodegen) npm(fileset) npm(handlebars) npm(js-yaml) npm(nodeunit)
|
||||
BuildRequires: npm(once) npm(resolve) npm(requirejs) npm(rimraf) npm(supports-color)
|
||||
BuildRequires: npm(which)
|
||||
%endif
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
%prep
|
||||
%autosetup -n istanbul-%{version}
|
||||
%nodejs_fixdep async
|
||||
%nodejs_fixdep escodegen
|
||||
%nodejs_fixdep esprima
|
||||
%nodejs_fixdep fileset
|
||||
%nodejs_fixdep glob
|
||||
%nodejs_fixdep handlebars
|
||||
%nodejs_fixdep js-yaml
|
||||
%nodejs_fixdep mkdirp
|
||||
%nodejs_fixdep nopt
|
||||
%nodejs_fixdep resolve
|
||||
%nodejs_fixdep supports-color
|
||||
%nodejs_fixdep which
|
||||
%nodejs_fixdep wordwrap
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname}
|
||||
cp -pr package.json index.js lib/ %{buildroot}%{nodejs_sitelib}/%{srcname}
|
||||
mkdir -p %{buildroot}%{_bindir}
|
||||
ln -s %{nodejs_sitelib}/%{srcname}/lib/cli.js %{buildroot}%{_bindir}/istanbul-js
|
||||
%nodejs_symlink_deps
|
||||
%if 0%{?enable_tests}
|
||||
|
||||
%check
|
||||
%nodejs_symlink_deps --check
|
||||
test/run.js
|
||||
%endif
|
||||
|
||||
%files
|
||||
%doc README.md CHANGELOG.md
|
||||
%license LICENSE
|
||||
%{nodejs_sitelib}/%{srcname}
|
||||
%{_bindir}/istanbul-js
|
||||
|
||||
%changelog
|
||||
* Thu Aug 20 2020 wangxiao <wangxiao65@huawei.com> - 0.4.5-1
|
||||
- Package init
|
||||
5
nodejs-istanbul.yaml
Normal file
5
nodejs-istanbul.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
git_url: https://github.com/gotwarlost/istanbul
|
||||
version_control: github
|
||||
src_repo: gotwarlost/istanbul
|
||||
tag_prefix: "^v"
|
||||
seperator: "."
|
||||
BIN
v0.4.5.tar.gz
Normal file
BIN
v0.4.5.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user