[nodejs-mysql] Initial import (#966223).

tdawson tdawson at fedoraproject.org
Mon Oct 7 15:58:38 UTC 2013


commit 81600ece182cc35b3ad87c68240f2c215fa71583
Author: Troy Dawson <tdawson at redhat.com>
Date:   Mon Oct 7 10:58:18 2013 -0500

    Initial import (#966223).

 .gitignore        |    1 +
 nodejs-mysql.spec |   55 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources           |    1 +
 3 files changed, 57 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..7c274e2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/mysql-2.0.0-alpha9.tgz
diff --git a/nodejs-mysql.spec b/nodejs-mysql.spec
new file mode 100644
index 0000000..a161844
--- /dev/null
+++ b/nodejs-mysql.spec
@@ -0,0 +1,55 @@
+%global npm_name mysql
+# Although there are tests
+# the dependancies aren't in Fedora yet
+%global enable_tests 0
+
+Summary:       A node.js driver for mysql
+Name:          nodejs-%{npm_name}
+Version:       2.0.0
+Release:       alpha9.1%{?dist}
+Group:         Development/Languages
+License:       MIT
+URL:           http://github.com/felixge/node-mysql
+# Alpha 9 is marked as stable, but cannot be part of the version
+# Be sure to change this version when updating to something higher
+Source0:       http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-2.0.0-alpha9.tgz
+BuildRequires: nodejs-devel
+%if 0%{?enable_tests}
+BuildRequires:  npm(underscore)
+BuildRequires:  npm(urun)
+BuildRequires:  npm(utest)
+%endif
+BuildArch:     noarch
+
+%description
+This is a node.js driver for mysql.
+It is written in JavaScript, does not require compiling, 
+and is 100% MIT licensed.
+
+%prep
+%setup -q -n package
+%nodejs_fixdep bignumber.js '>=1.0.1'
+
+%build
+#nothing to do
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
+cp -pr benchmark index.js lib Makefile package.json test tool %{buildroot}%{nodejs_sitelib}/%{npm_name}
+
+%if 0%{?enable_tests}
+%check
+make test
+%endif
+
+%files
+%doc Changes.md License Readme.md
+%{nodejs_sitelib}/%{npm_name}
+
+%changelog
+* Thu Oct 03 2013 Troy Dawson <tdawson at redhat.com> - 2.0.0-alpha9.1
+- Updated to version 2.0.0-alpha9
+
+* Tue May 21 2013 Troy Dawson <tdawson at redhat.com> - 2.0.0-alpha8.1
+- Initial build
+
diff --git a/sources b/sources
index e69de29..bb3ffc8 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+66f0abceb05521ea74af569f965f78c3  mysql-2.0.0-alpha9.tgz


More information about the scm-commits mailing list