Name: nodejs-markdown Version: 0.4.0 Release: 1%{?dist} Summary: A sensible Markdown parser for JavaScript # License included in README.markdown License: MIT Group: System Environment/Libraries URL: https://github.com/evilstreak/markdown-js Source0: http://registry.npmjs.org/markdown/-/markdown-%{version}.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: nodejs-devel %description Yet another markdown parser, this time for JavaScript. %prep %setup -q -n package %build #nothing to do %install rm -rf %{buildroot} mkdir -p %{buildroot}%{nodejs_sitelib}/markdown cp -pr bin lib package.json %{buildroot}%{nodejs_sitelib}/markdown mkdir -p %{buildroot}%{_bindir} ln -sf ../lib/node_modules/markdown/bin/md2html.js %{buildroot}%{_bindir}/md2html %nodejs_symlink_deps %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %{nodejs_sitelib}/markdown %{_bindir}/md2html %doc README.markdown Changes.markdown %changelog * Sat Mar 16 2013 T.C. Hollingsworth - 0.4.0-1 - initial package