!1 Package init

Merge pull request !1 from 雷炬/master
This commit is contained in:
openeuler-ci-bot 2020-09-08 18:25:42 +08:00 committed by Gitee
commit 2a6b989a45
3 changed files with 52 additions and 0 deletions

BIN
0.6.2.tar.gz Normal file

Binary file not shown.

48
nodejs-docopt.spec Normal file
View File

@ -0,0 +1,48 @@
%{?nodejs_find_provides_and_requires}
%global packagename docopt
%global enable_tests 1
Name: nodejs-docopt
Version: 0.6.2
Release: 1
Summary: A command line option parser that will make you smile
License: MIT
URL: https://github.com/scarnie/docopt.coffee
Source0: https://github.com/scarnie/docopt.coffee/archive/%{version}.tar.gz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
%if 0%{?enable_tests}
BuildRequires: coffee-script mocha npm(chai)
%endif
%description
A command line option parser that will make you smile
%prep
%autosetup -n docopt.coffee-%{version}
%build
%{_bindir}/coffee -c docopt.coffee
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
cp -pr package.json *.js \
%{buildroot}%{nodejs_sitelib}/%{packagename}
%nodejs_symlink_deps
%if 0%{?enable_tests}
%check
%nodejs_symlink_deps --check
%{__nodejs} -e 'require("./")'
%{_bindir}/mocha --compilers coffee:coffee-script/register -R spec
%endif
%files
%{!?_licensedir:%global license %doc}
%doc *.md examples/
%license LICENSE-MIT
%{nodejs_sitelib}/%{packagename}
%changelog
* Fri Aug 21 2020 leiju <leiju4@huawei.com> - 0.6.2-1
- Package init

4
nodejs-docopt.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: stuartcarnie/docopt.coffee
tag_prefix: "^"
seperator: "."