[nodejs-rc] Initial import (#1171229)
Parag Nemade
pnemade at fedoraproject.org
Wed Dec 10 16:05:50 UTC 2014
commit bc28c25abae6832d74fbcc6482ab26afc3b1f5bb
Author: Parag Nemade <pnemade at redhat.com>
Date: Wed Dec 10 21:35:50 2014 +0530
Initial import (#1171229)
.gitignore | 1 +
nodejs-rc.spec | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 66 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..9c29c73 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/rc-0.5.4.tgz
diff --git a/nodejs-rc.spec b/nodejs-rc.spec
new file mode 100644
index 0000000..90792e0
--- /dev/null
+++ b/nodejs-rc.spec
@@ -0,0 +1,64 @@
+%global enable_tests 1
+%global module_name rc
+
+Name: nodejs-%{module_name}
+Version: 0.5.4
+Release: 2%{?dist}
+Summary: Hardwired configuration loader
+
+License: MIT or BSD or ASL 2.0
+URL: https://github.com/dominictarr/rc
+Source0: http://registry.npmjs.org/%{module_name}/-/%{module_name}-%{version}.tgz
+BuildArch: noarch
+ExclusiveArch: %{nodejs_arches} noarch
+
+BuildRequires: nodejs-packaging
+
+%if 0%{?enable_tests}
+BuildRequires: npm(ini)
+BuildRequires: npm(strip-json-comments)
+BuildRequires: npm(minimist)
+BuildRequires: npm(deep-extend)
+%endif
+
+Requires: npm(minimist)
+Requires: npm(deep-extend)
+Requires: npm(strip-json-comments)
+Requires: npm(ini)
+
+%description
+The non-configurable configuration loader for lazy people.
+
+%prep
+%setup -q -n package
+rm -rf node_modules
+
+%nodejs_fixdep deep-extend ~0.x
+%nodejs_fixdep minimist ~0.x
+%nodejs_fixdep strip-json-comments ~1.x
+
+%build
+# nothing to build
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
+cp -pr package.json *.js lib %{buildroot}%{nodejs_sitelib}/%{module_name}
+%nodejs_symlink_deps
+
+%if 0%{?enable_tests}
+%check
+%nodejs_symlink_deps --check
+set -e; node test/test.js; node test/ini.js; node test/nested-env-vars.js
+%endif
+
+%files
+%doc README.md LICENSE.MIT LICENSE.APACHE2 LICENSE.BSD
+%{nodejs_sitelib}/%{module_name}
+
+%changelog
+* Mon Dec 08 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.5.4-2
+- Add missing multilicense tag and its text
+
+* Thu Dec 04 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.5.4-1
+- Initial packaging
+
diff --git a/sources b/sources
index e69de29..b8174c0 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+d8ed0eb9b6191ed752df6df82ce45f5d rc-0.5.4.tgz
More information about the scm-commits
mailing list