[nodejs-onetime] Initial import (#1194927).

Piotr Popieluch piotrp at fedoraproject.org
Thu Mar 5 11:16:12 UTC 2015


commit ac81c26ee4c325affbccc0f7f7e0723b4fac97ef
Author: Piotr Popieluch <piotr1212 at gmail.com>
Date:   Thu Mar 5 12:15:55 2015 +0100

    Initial import (#1194927).

 .gitignore          |  1 +
 nodejs-onetime.spec | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources             |  1 +
 3 files changed, 64 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..7a03f24 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/onetime-a4aa1ce5291cc5f32ecb8f4b0a918b12cb47ea5e.tar.gz
diff --git a/nodejs-onetime.spec b/nodejs-onetime.spec
new file mode 100644
index 0000000..5faebc0
--- /dev/null
+++ b/nodejs-onetime.spec
@@ -0,0 +1,62 @@
+# This macro is needed at the start for building on EL6
+%{?nodejs_find_provides_and_requires}
+
+%global enable_tests 1
+%global srcname onetime
+%global commit a4aa1ce5291cc5f32ecb8f4b0a918b12cb47ea5e
+
+Name:           nodejs-%{srcname}
+Version:        1.0.0
+Release:        1%{?dist}
+Summary:        Only call a function once
+License:        MIT
+URL:            https://github.com/sindresorhus/%{srcname}
+Source0:        https://github.com/sindresorhus/%{srcname}/archive/%{commit}/%{srcname}-%{commit}.tar.gz
+
+BuildArch:      noarch
+ExclusiveArch:  %{nodejs_arches} noarch
+
+BuildRequires:  nodejs-packaging
+
+%if 0%{?enable_tests}
+BuildRequires:  mocha
+%endif
+
+
+%description
+Only call a function once. Unlike the module `once`, this one isn't naughty 
+extending `Function.prototype`.
+
+
+%prep
+%setup -q -n %{srcname}-%{commit}
+rm -rf node_modules/
+
+
+%build
+#nothing to do
+
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname}
+cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/%{srcname}
+
+%nodejs_symlink_deps
+
+
+%if 0%{?enable_tests}
+%check
+%nodejs_symlink_deps --check
+mocha
+%endif
+
+
+%files
+%doc readme.md
+%license license
+%{nodejs_sitelib}/%{srcname}
+
+
+%changelog
+* Wed Dec 31 2014 Piotr Popieluch <piotr1212 at gmail.com> - 1.0.0-1
+- Initial package
diff --git a/sources b/sources
index e69de29..a53a4f0 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+3dcc7db6d34c12190d83ca0055400387  onetime-a4aa1ce5291cc5f32ecb8f4b0a918b12cb47ea5e.tar.gz


More information about the scm-commits mailing list