[nodejs-markdown] Initial import

Jamie Nguyen jamielinux at fedoraproject.org
Tue Mar 19 13:46:22 UTC 2013


commit cf27205d671f19531a5f990b474cd576efdb51f5
Author: Jamie Nguyen <j at jamielinux.com>
Date:   Tue Mar 19 13:46:15 2013 +0000

    Initial import

 .gitignore           |    1 +
 md2html.1            |   13 +++++++++
 nodejs-markdown.spec |   69 ++++++++++++++++++++++++++++++++++++++++++++++++++
 sources              |    1 +
 4 files changed, 84 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..0e76554 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/markdown-0.4.0.tgz
diff --git a/md2html.1 b/md2html.1
new file mode 100644
index 0000000..89013f1
--- /dev/null
+++ b/md2html.1
@@ -0,0 +1,13 @@
+.TH MD2HTML "1" "February 2013" "md2html 0.4.0" "User Commands"
+.SH NAME
+md2html \-  Convert markdown to HTML
+.SH SYNOPSIS
+Usage: md2html [options] <file>
+.SH OPTIONS
+.TP
+\fB\-\-dialect=DIALECT\fR
+Valid dialects are Gruber (the default) or Maruku
+Enable growl notifications
+.SH REPORTING BUGS
+Please report bugs on the GitHub issue tracker:
+<\fBhttps://github.com/evilstreak/markdown-js/issues\fR>
diff --git a/nodejs-markdown.spec b/nodejs-markdown.spec
new file mode 100644
index 0000000..7fd8d91
--- /dev/null
+++ b/nodejs-markdown.spec
@@ -0,0 +1,69 @@
+%global enable_tests 0
+
+Name:       nodejs-markdown
+Version:    0.4.0
+Release:    1%{?dist}
+Summary:    A sensible Markdown parser for JavaScript
+# Upstream have been informed about missing LICENSE file:
+# https://github.com/evilstreak/markdown-js/issues/74
+License:    MIT
+Group:      System Environment/Libraries
+URL:        https://github.com/evilstreak/markdown-js
+Source0:    http://registry.npmjs.org/markdown/-/markdown-%{version}.tgz
+# Include a custom man page.
+Source1:    md2html.1
+BuildArch:  noarch
+
+BuildRequires:  nodejs-devel
+
+%if 0%{?enable_tests}
+BuildRequires:  npm(tap)
+%endif
+
+%description
+%summary
+
+
+%prep
+%setup -q -n package
+%nodejs_fixdep nopt '~2.0'
+
+
+%build
+#nothing to do
+
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/markdown
+cp -pr package.json lib/ \
+    %{buildroot}%{nodejs_sitelib}/markdown
+mkdir -p %{buildroot}%{nodejs_sitelib}/markdown/bin
+
+install -p -D -m0755 bin/md2html.js \
+    %{buildroot}%{nodejs_sitelib}/markdown/bin/md2html.js
+mkdir -p %{buildroot}%{_bindir}
+ln -sf %{nodejs_sitelib}/markdown/bin/md2html.js \
+    %{buildroot}%{_bindir}/md2html
+
+mkdir -p %{buildroot}%{_mandir}/man1
+install -p -D -m0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/md2html.1
+
+%nodejs_symlink_deps
+
+
+%if 0%{?enable_tests}
+%check
+%tap test/*.t.js
+%endif
+
+
+%files
+%doc Changes.markdown README.markdown
+%{nodejs_sitelib}/markdown
+%{_bindir}/md2html
+%{_mandir}/man1/md2html.1*
+
+
+%changelog
+* Thu Feb 14 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.4.0-1
+- initial package
diff --git a/sources b/sources
index e69de29..f6208da 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+56d2775864e472bb0cf741698b3296f1  markdown-0.4.0.tgz


More information about the scm-commits mailing list