[nodejs-joose] Initial import

Jamie Nguyen jamielinux at fedoraproject.org
Mon Jul 22 10:18:52 UTC 2013


commit 78c638e178b0b147beeee74c5ea11b9f93e2781e
Author: Jamie Nguyen <j at jamielinux.com>
Date:   Mon Jul 22 11:17:57 2013 +0100

    Initial import

 .gitignore                                   |    1 +
 nodejs-joose-3.50.0-joose-requires.patch     |   22 +++++++
 nodejs-joose-3.50.0-librarian-requires.patch |   44 ++++++++++++++
 nodejs-joose.spec                            |   82 ++++++++++++++++++++++++++
 sources                                      |    1 +
 5 files changed, 150 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..77526ac 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/joose-3.50.0.tgz
diff --git a/nodejs-joose-3.50.0-joose-requires.patch b/nodejs-joose-3.50.0-joose-requires.patch
new file mode 100644
index 0000000..d672e70
--- /dev/null
+++ b/nodejs-joose-3.50.0-joose-requires.patch
@@ -0,0 +1,22 @@
+--- a/bin/joose-nodify.js
++++ b/bin/joose-nodify.js
+@@ -30,7 +30,7 @@
+ 
+ 
+ var path        = require('path')
+-var Librarian   = require('librarian')
++var Librarian   = require('../librarian')
+ 
+ var librarian   = new Librarian({
+     root        : path.resolve(argv.root || './')
+--- a/bin/joose-server.js
++++ b/bin/joose-server.js
+@@ -42,7 +42,7 @@
+ var http        = require('http')
+ var paperboy    = require('paperboy')
+ 
+-var Librarian   = require('librarian')
++var Librarian   = require('../librarian')
+ 
+ var root        = path.resolve(argv.root)
+ 
diff --git a/nodejs-joose-3.50.0-librarian-requires.patch b/nodejs-joose-3.50.0-librarian-requires.patch
new file mode 100644
index 0000000..d20a82c
--- /dev/null
+++ b/nodejs-joose-3.50.0-librarian-requires.patch
@@ -0,0 +1,44 @@
+--- a/node_modules/librarian/lib/File.js
++++ b/node_modules/librarian/lib/File.js
+@@ -3,7 +3,7 @@
+ var path        = require('path')
+ var fs          = require('fs')
+ var detective   = require('detective')
+-var Joose       = require('../../../joose-all')
++var Joose       = require('joose/joose-all')
+ 
+ module.exports = Joose.Class({
+     
+@@ -68,4 +68,4 @@
+         }
+     }
+ 
+-})
+\ No newline at end of file
++})
+--- a/node_modules/librarian/lib/Librarian.js
++++ b/node_modules/librarian/lib/Librarian.js
+@@ -4,7 +4,7 @@
+ var fs          = require('fs')
+ var temp        = require('temp')
+ 
+-var Joose       = require('../../../joose-all')
++var Joose       = require('joose/joose-all')
+ 
+ var File        = require('./File')
+ var Template    = require('./Template')
+@@ -196,4 +196,4 @@
+             }
+         }
+     }
+-})
+\ No newline at end of file
++})
+--- a/node_modules/librarian/lib/Template.js
++++ b/node_modules/librarian/lib/Template.js
+@@ -1,4 +1,4 @@
+-var Joose       = require('../../../joose-all')
++var Joose       = require('joose/joose-all')
+ 
+ module.exports  = Joose.Class({
+     
diff --git a/nodejs-joose.spec b/nodejs-joose.spec
new file mode 100644
index 0000000..9ecbc9b
--- /dev/null
+++ b/nodejs-joose.spec
@@ -0,0 +1,82 @@
+%{?nodejs_find_provides_and_requires}
+%global __provides_exclude_from ^%{nodejs_sitelib}/joose/librarian/.*$
+
+%global enable_tests 0
+
+Name:       nodejs-joose
+Version:    3.50.0
+Release:    2%{?dist}
+Summary:    Post modern self-hosting meta object system for JavaScript
+# License text is included in README.md
+License:    BSD
+Group:      System Environment/Libraries
+URL:        https://github.com/Joose/Joose
+Source0:    http://registry.npmjs.org/joose/-/joose-%{version}.tgz
+
+BuildArch:  noarch
+ExclusiveArch: %{nodejs_arches} noarch
+
+# The requires that librarian uses are relative paths and need to be fixed.
+Patch0:     nodejs-joose-3.50.0-librarian-requires.patch
+# The requires that joose uses need to be fixed after moving librarian to a
+# different location.
+Patch1:     nodejs-joose-3.50.0-joose-requires.patch
+
+BuildRequires:  nodejs-packaging
+
+%if 0%{?enable_tests}
+BuildRequires:  npm(test-run)
+%endif
+
+%description
+Post modern self-hosting meta object system for JavaScript with support
+for classes, inheritance, roles, traits, method modifiers and more.
+
+%prep
+%setup -q -n package
+%patch0 -p1
+%patch1 -p1
+# librarian doesn't appear to be a real module. joose doesn't list librarian
+# as a dependency, and librarian doesn't have a package.json, though both
+# modules 'require' each other. There is also already another module on the
+# npm registry called librarian. To simplify things and reduce confusion, I'm
+# going to treat librarian as part of joose itself rather than separating it
+# into a subpackage.
+mv node_modules/librarian librarian
+rm -rf node_modules
+%nodejs_fixdep paperboy '~0.0.5'
+
+
+%build
+#nothing to do
+
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/joose
+cp -pr package.json \
+    joose-all.js joose-all-min.js joose-all-web.js joose-webseed.js \
+    lib/ librarian/ \
+    %{buildroot}%{nodejs_sitelib}/joose
+
+%nodejs_symlink_deps
+
+
+%if 0%{?enable_tests}
+%check
+%nodejs_symlink_deps --check
+%__nodejs t/index.js
+%__nodejs node_modules/librarian/t/index.js
+%endif
+
+
+%files
+%doc Changes LICENSE README.md doc/
+%{nodejs_sitelib}/joose
+
+
+%changelog
+* Sun Jul 21 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 3.50.0-2
+- filter out incorrect Provides
+
+* Sun Feb 17 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 3.50.0-1
+- initial package
diff --git a/sources b/sources
index e69de29..35c8c61 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+db2672b5ca087de0c70b3f2249bbca5e  joose-3.50.0.tgz


More information about the scm-commits mailing list