[nodejs-highlight-js] Initial import

Jamie Nguyen jamielinux at fedoraproject.org
Fri Mar 15 19:58:42 UTC 2013


commit ccaa00a5b1d5d0b4b32ce55d20a0806722a0aff3
Author: Jamie Nguyen <j at jamielinux.com>
Date:   Fri Mar 15 19:58:35 2013 +0000

    Initial import

 .gitignore               |    1 +
 LICENSE                  |   24 +++++++++++++++++++++++
 nodejs-highlight-js.spec |   48 ++++++++++++++++++++++++++++++++++++++++++++++
 sources                  |    1 +
 4 files changed, 74 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..de34c90 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/highlight.js-7.3.0.tgz
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..422deb7
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,24 @@
+Copyright (c) 2006, Ivan Sagalaev
+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/nodejs-highlight-js.spec b/nodejs-highlight-js.spec
new file mode 100644
index 0000000..b1d91c2
--- /dev/null
+++ b/nodejs-highlight-js.spec
@@ -0,0 +1,48 @@
+Name:       nodejs-highlight-js
+Version:    7.3.0
+Release:    1%{?dist}
+Summary:    Syntax highlighting with language auto-detection for Node.js
+License:    BSD
+Group:      System Environment/Libraries
+URL:        https://github.com/isagalaev/highlight.js
+Source0:    http://registry.npmjs.org/highlight.js/-/highlight.js-%{version}.tgz
+# Upstream do not include the LICENSE file in the npm tarball, so include a
+# copy from the upstream version control repository for now.
+# A request has been sent to include the LICENSE file in the npm tarball:
+# https://github.com/isagalaev/highlight.js/issues/192
+Source20:   LICENSE
+BuildArch:  noarch
+
+BuildRequires:  nodejs-devel
+
+%description
+Highlight.js highlights syntax in code examples on blogs, forums and, in fact,
+on any web page. It's very easy to use because it works automatically: finds
+blocks of code, detects a language, and highlights it.
+
+
+%prep
+%setup -q -n package
+cp -p %{SOURCE20} .
+
+
+%build
+#nothing to do
+
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/highlight.js
+cp -pr package.json *.js \
+    %{buildroot}%{nodejs_sitelib}/highlight.js
+
+%nodejs_symlink_deps
+
+
+%files
+%doc LICENSE
+%{nodejs_sitelib}/highlight.js
+
+
+%changelog
+* Fri Mar 15 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 7.3.0-1
+- initial package
diff --git a/sources b/sources
index e69de29..1116911 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+6186d1945c815471142fdd61c7eb6960  highlight.js-7.3.0.tgz


More information about the scm-commits mailing list