[nodejs-require-cs] Initial import

Jamie Nguyen jamielinux at fedoraproject.org
Mon Mar 18 18:44:04 UTC 2013


commit 6a11de7dbc696b0af9b614710d7e49adffe9de01
Author: Jamie Nguyen <j at jamielinux.com>
Date:   Mon Mar 18 18:43:56 2013 +0000

    Initial import

 .gitignore                                |    1 +
 LICENSE-BSD                               |   23 +++++++++
 LICENSE-MIT                               |   18 +++++++
 nodejs-require-cs-0.4.3-change-name.patch |    9 +++
 nodejs-require-cs.spec                    |   76 +++++++++++++++++++++++++++++
 sources                                   |    1 +
 6 files changed, 128 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..5e9bf8a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/0.4.3.tar.gz
diff --git a/LICENSE-BSD b/LICENSE-BSD
new file mode 100644
index 0000000..c7ec6c0
--- /dev/null
+++ b/LICENSE-BSD
@@ -0,0 +1,23 @@
+All rights reserved.
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+    * Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+    * Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in the
+      documentation and/or other materials provided with the distribution.
+    * Neither the name of highlight.js nor the names of its contributors 
+      may be used to endorse or promote products derived from this software 
+      without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY
+EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/LICENSE-MIT b/LICENSE-MIT
new file mode 100644
index 0000000..c9b44cb
--- /dev/null
+++ b/LICENSE-MIT
@@ -0,0 +1,18 @@
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/nodejs-require-cs-0.4.3-change-name.patch b/nodejs-require-cs-0.4.3-change-name.patch
new file mode 100644
index 0000000..3ad3b4a
--- /dev/null
+++ b/nodejs-require-cs-0.4.3-change-name.patch
@@ -0,0 +1,9 @@
+--- a/package.json
++++ b/package.json
+@@ -1,5 +1,5 @@
+ {
+-    "name": "cs",
++    "name": "require-cs",
+     "description": "An AMD loader plugin for CoffeeScript",
+     "categories": [
+         "Loader plugins",
diff --git a/nodejs-require-cs.spec b/nodejs-require-cs.spec
new file mode 100644
index 0000000..e431ba9
--- /dev/null
+++ b/nodejs-require-cs.spec
@@ -0,0 +1,76 @@
+Name:       nodejs-require-cs
+Version:    0.4.3
+Release:    2%{?dist}
+Summary:    An AMD loader plugin for CoffeeScript
+# Upstream have been informed of missing licenses:
+# https://github.com/jrburke/require-cs/issues/44
+License:    MIT or BSD
+Group:      System Environment/Libraries
+URL:        https://github.com/jrburke/require-cs
+Source0:    https://github.com/jrburke/require-cs/archive/%{version}.tar.gz
+Source20:   LICENSE-BSD
+Source21:   LICENSE-MIT
+BuildArch:  noarch
+
+# package.json declares the name as 'cs', but this name is already taken in
+# the npm registry so rename to 'require-cs' instead.
+Patch0:     %{name}-0.4.3-change-name.patch
+
+BuildRequires:  nodejs-devel
+# We are symlinking to these files, so explicitly depend on them just in case
+# the packages that own them decide to move them somewhere else.
+Requires:       /usr/share/coffee-script/extras/coffee-script.js
+Requires:       /usr/lib/node_modules/requirejs/bin/r.js
+
+%description
+A CoffeeScript loader plugin that may work with module loaders like
+RequireJS, curl and backdraft.
+
+This loader plugin makes it easy to write your JS functionality in
+CoffeeScript, and easily use it in the browser, Node or Rhino. Plus,
+if you use the RequireJS optimizer, your CoffeeScript files can be
+translated to JavaScript and in-lined into optimized layers for fast
+performance.
+
+
+%prep
+%setup -q -n require-cs-%{version}
+%patch0 -p1
+cp -p %{SOURCE20} .
+cp -p %{SOURCE21} .
+rm -f coffee-script.js
+rm -rf tools/
+
+
+%build
+#nothing to do
+
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/require-cs
+cp -pr package.json cs.js \
+    %{buildroot}%{nodejs_sitelib}/require-cs
+
+# Replace bundled coffee-script.js with symlink.
+ln -sf %{_datadir}/coffee-script/extras/coffee-script.js \
+    %{buildroot}%{nodejs_sitelib}/require-cs/coffee-script.js
+
+# Replace bundled tools/r.js with symlink.
+mkdir -p %{buildroot}%{nodejs_sitelib}/require-cs/tools
+ln -sf %{nodejs_sitelib}/requirejs/bin/r.js \
+    %{buildroot}%{nodejs_sitelib}/require-cs/tools/r.js
+
+%nodejs_symlink_deps
+
+
+%files
+%doc LICENSE-BSD LICENSE-MIT README.md demo/
+%{nodejs_sitelib}/require-cs
+
+
+%changelog
+* Sun Mar 17 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.4.3-2
+- add copies of the MIT and BSD licenses to comply with licensing requirements
+
+* Sun Mar 17 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.4.3-1
+- initial package
diff --git a/sources b/sources
index e69de29..47a424c 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+9983dd71fc0eafbc7788f123f9d306ae  0.4.3.tar.gz


More information about the scm-commits mailing list