Name: nodejs-codemirror
Version: 4.8.0
Release: 1%{?dist}
Summary: A versatile JS text editor
License: MIT
URL: http://codemirror.net/
Source0: http://registry.npmjs.org/codemirror/-/codemirror-%{version}.tgz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
%description
CodeMirror is a JavaScript component that provides a code editor in
the browser. When a mode is available for the language you are coding
in, it will color your code, and optionally help with indentation.
%prep
%setup -q -n package
rm -rf node_modules
#Fix shebang warnings:
chmod 644 mode/dylan/index.html addon/hint/html-hint.js
sed -i '1 i\#!/usr/bin/env bash ' bin/authors.sh
%build
#nothing to do
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/codemirror
cp -pr addon bower.json doc lib mode test index.html package.json theme bin demo keymap %{buildroot}%{nodejs_sitelib}/codemirror
%nodejs_symlink_deps
#%%check
#%%tap test/*.js
%files
%{nodejs_sitelib}/codemirror
%doc README.md LICENSE AUTHORS CONTRIBUTING.md
%changelog
* Tue Nov 25 2014 Mosaab Alzoubi <moceap@hotmail.com> - 4.8.0-1
- Update to 4.8.0
* Fri Oct 24 2014 Mosaab Alzoubi <moceap@hotmail.com> - 4.6.0-3
- Fix shebang warnings
* Wed Oct 22 2014 Mosaab Alzoubi <moceap@hotmail.com> - 4.6.0-2
- General revision.
* Thu Sep 25 2014 Mosaab Alzoubi <moceap@hotmail.com> - 4.6.0-1
- Update to 4.6
* Sun Dec 1 2013 Mosaab Alzoubi <moceap@hotmail.com> - 3.20.0-1
- Initial packaging.