[nodejs-alter] Initial import (#1122209)
Ralph Bean
ralph at fedoraproject.org
Fri Jul 25 15:16:45 UTC 2014
commit bbda67735740b48bc9fbb3ff4888306248314dea
Author: Ralph Bean <rbean at redhat.com>
Date: Fri Jul 25 11:16:32 2014 -0400
Initial import (#1122209)
.gitignore | 1 +
nodejs-alter.spec | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 73 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..fed6592 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/alter-0.2.0.tgz
diff --git a/nodejs-alter.spec b/nodejs-alter.spec
new file mode 100644
index 0000000..3af4725
--- /dev/null
+++ b/nodejs-alter.spec
@@ -0,0 +1,71 @@
+# This macro is needed at the start for building on EL6
+%{?nodejs_find_provides_and_requires}
+
+%global enable_tests 0
+
+%global barename alter
+
+Name: nodejs-alter
+Version: 0.2.0
+Release: 1%{?dist}
+Summary: Alters a string
+
+Group: Development/Libraries
+License: MIT
+URL: https://www.npmjs.org/package/alter
+Source0: http://registry.npmjs.org/%{barename}/-/%{barename}-%{version}.tgz
+BuildArch: noarch
+%if 0%{?fedora} >= 19
+ExclusiveArch: %{nodejs_arches} noarch
+%else
+ExclusiveArch: %{ix86} x86_64 %{arm} noarch
+%endif
+
+BuildRequires: nodejs-packaging >= 6
+
+BuildRequires: npm(stable)
+
+Requires: npm(stable)
+
+%if 0%{?enable_tests}
+BuildRequires: npm(tap)
+%endif
+
+
+%description
+Alters a string by replacing multiple range fragments in one fast pass. Works
+in node and browsers.
+
+%prep
+%setup -q -n package
+
+# Remove bundled node_modules if there are any..
+rm -rf node_modules/
+
+%nodejs_fixdep --caret
+
+%build
+%nodejs_symlink_deps --build
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/alter
+cp -pr package.json alter.js \
+ %{buildroot}%{nodejs_sitelib}/alter
+
+%nodejs_symlink_deps
+
+
+%check
+%if 0%{?enable_tests}
+%nodejs_symlink_deps --check
+tap test/*.js
+%endif
+
+
+%files
+%doc LICENSE README.md
+%{nodejs_sitelib}/alter/
+
+%changelog
+* Tue Jul 22 2014 Ralph Bean <rbean at redhat.com> - 0.2.0-1
+- Initial packaging for Fedora.
diff --git a/sources b/sources
index e69de29..bfeef64 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+ed0249ab22de78b5d2835a4ac511fd50 alter-0.2.0.tgz
More information about the scm-commits
mailing list