diff --git a/nodejs-nomnom.spec b/nodejs-nomnom.spec new file mode 100644 index 0000000..37d4c9d --- /dev/null +++ b/nodejs-nomnom.spec @@ -0,0 +1,38 @@ +%global modname nomnom +Name: nodejs-%{modname} +Version: 1.8.1 +Release: 1 +Summary: Nodejs option parser with generated usage and commands +License: MIT +URL: https://github.com/harthur/nomnom +Source0: http://registry.npmjs.org/nomnom/-/nomnom-%{version}.tgz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +BuildRequires: nodejs-packaging npm(nodeunit) npm(underscore) npm(chalk) +%description +Nomnom is an option parser for Node. It noms your args and gives them back to +you in a hash. + +%prep +%setup -q -n package +%nodejs_fixdep chalk "1 - 2" +%nodejs_fixdep underscore "^1.6" + +%build + +%check +%nodejs_symlink_deps --check +nodeunit test/*.js + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{modname} +cp -p package.json nomnom.js %{buildroot}%{nodejs_sitelib}/%{modname}/ +%nodejs_symlink_deps + +%files +%doc README.md LICENSE +%{nodejs_sitelib}/%{modname} + +%changelog +* Thu Aug 20 2020 wangchong - 1.8.1-1 +- package init diff --git a/nodejs-nomnom.yaml b/nodejs-nomnom.yaml new file mode 100644 index 0000000..5d591c9 --- /dev/null +++ b/nodejs-nomnom.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: harthur/nomnom +tag_prefix: NA +seperator: NA diff --git a/nomnom-1.8.1.tgz b/nomnom-1.8.1.tgz new file mode 100644 index 0000000..118f2be Binary files /dev/null and b/nomnom-1.8.1.tgz differ