commit
2a6b989a45
BIN
0.6.2.tar.gz
Normal file
BIN
0.6.2.tar.gz
Normal file
Binary file not shown.
48
nodejs-docopt.spec
Normal file
48
nodejs-docopt.spec
Normal 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
4
nodejs-docopt.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: stuartcarnie/docopt.coffee
|
||||
tag_prefix: "^"
|
||||
seperator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user