diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..6deecea --- /dev/null +++ b/LICENSE @@ -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. diff --git a/dreamopt-0.8.0.tgz b/dreamopt-0.8.0.tgz new file mode 100644 index 0000000..7e27c70 Binary files /dev/null and b/dreamopt-0.8.0.tgz differ diff --git a/nodejs-dreamopt.spec b/nodejs-dreamopt.spec new file mode 100644 index 0000000..24fe22c --- /dev/null +++ b/nodejs-dreamopt.spec @@ -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://registry.npmjs.org/dreamopt/-/dreamopt-%{version}.tgz +Source1: https://raw.githubusercontent.com/andreyvit/dreamopt.js/090bbef47c7d93d4e51f9ed346260f05cc40135f/LICENSE +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +BuildRequires: nodejs-packaging coffee-script npm(mocha) + +%description +%{summary}. + +%prep +%setup -qn package +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 - 0.8.0-1 +- Package init diff --git a/nodejs-dreamopt.yaml b/nodejs-dreamopt.yaml new file mode 100644 index 0000000..bca5ffa --- /dev/null +++ b/nodejs-dreamopt.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: andreyvit/dreamopt.js +tag_prefix: "^v" +seperator: "."