commit
13cf00ba24
21
LICENSE
Normal file
21
LICENSE
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2013-2014 Andrey Tarantsov
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
45
nodejs-dreamopt.spec
Normal file
45
nodejs-dreamopt.spec
Normal file
@ -0,0 +1,45 @@
|
||||
%{?nodejs_find_provides_and_requires}
|
||||
%global srcname dreamopt
|
||||
Name: nodejs-%{srcname}
|
||||
Version: 0.8.0
|
||||
Release: 1
|
||||
Summary: Command-line parser with readable syntax from your sweetest dreams
|
||||
License: MIT
|
||||
URL: https://github.com/andreyvit/dreamopt.js
|
||||
Source0: https://github.com/andreyvit/dreamopt.js/archive/v%{version}.tar.gz
|
||||
Source1: https://github.com/andreyvit/dreamopt.js/blob/master/LICENSE
|
||||
BuildArch: noarch
|
||||
ExclusiveArch: %{nodejs_arches} noarch
|
||||
BuildRequires: nodejs-packaging coffee-script npm(mocha)
|
||||
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
%prep
|
||||
%autosetup -n dreamopt.js-%{version}
|
||||
rm -f lib/dreamopt.js
|
||||
rm -rf node_modules
|
||||
cp -p %{SOURCE1} .
|
||||
|
||||
%build
|
||||
%nodejs_symlink_deps --build
|
||||
%{_bindir}/coffee -c -o lib lib/dreamopt.coffee
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname}
|
||||
cp -pr package.json lib/ \
|
||||
%{buildroot}%{nodejs_sitelib}/%{srcname}
|
||||
%nodejs_symlink_deps
|
||||
|
||||
%check
|
||||
%{_bindir}/mocha
|
||||
|
||||
%files
|
||||
%{!?_licensedir:%global license %doc}
|
||||
%doc README.md examples/
|
||||
%license LICENSE
|
||||
%{nodejs_sitelib}/%{srcname}
|
||||
|
||||
%changelog
|
||||
* Fri Aug 21 2020 leiju <leiju4@huawei.com> - 0.8.0-1
|
||||
- Package init
|
||||
4
nodejs-dreamopt.yaml
Normal file
4
nodejs-dreamopt.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: andreyvit/dreamopt.js
|
||||
tag_prefix: "^v"
|
||||
seperator: "."
|
||||
BIN
v0.8.0.tar.gz
Normal file
BIN
v0.8.0.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user