[packages/coffee-script] new, version 1.6.2

glen glen at pld-linux.org
Thu Apr 4 23:26:06 CEST 2013


commit 1c231ca79fbc2eab60383f83485082024260a578
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Fri Apr 5 00:25:51 2013 +0300

    new, version 1.6.2

 coffee-script.spec | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)
---
diff --git a/coffee-script.spec b/coffee-script.spec
new file mode 100644
index 0000000..dacb917
--- /dev/null
+++ b/coffee-script.spec
@@ -0,0 +1,50 @@
+%define		pkg	coffee-script
+Summary:	The CoffeeScript Compiler
+Name:		coffee-script
+Version:	1.6.2
+Release:	1
+License:	MIT
+Group:		Development/Libraries
+URL:		http://jashkenas.github.com/coffee-script/
+Source0:	http://registry.npmjs.org/coffee-script/-/%{pkg}-%{version}.tgz
+# Source0-md5:	3fd785ef72ecb6b69cfa425a2d13e4fd
+BuildRequires:	rpmbuild(macros) >= 1.634
+BuildRequires:	sed >= 4.0
+Requires:	nodejs >= 0.6
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+CoffeeScript is a little language that compiles into JavaScript.
+Underneath all of those embarrassing braces and semicolons, JavaScript
+has always had a gorgeous object model at its heart. CoffeeScript is
+an attempt to expose the good parts of JavaScript in a simple way.
+
+%prep
+%setup -qc
+mv package/* .
+
+%{__sed} -i -e '1s,^#!.*node,#!/usr/bin/node,' bin/*
+chmod a+rx bin/*
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
+cp -a bin lib $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
+
+install -d $RPM_BUILD_ROOT%{_bindir}
+ln -s %{nodejs_libdir}/%{pkg}/bin/cake $RPM_BUILD_ROOT%{_bindir}/cake.coffeescript
+ln -s %{nodejs_libdir}/%{pkg}/bin/coffee $RPM_BUILD_ROOT%{_bindir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README LICENSE CONTRIBUTING.md
+%attr(755,root,root) %{_bindir}/cake.coffeescript
+%attr(755,root,root) %{_bindir}/coffee
+%dir %{nodejs_libdir}/%{pkg}
+%{nodejs_libdir}/%{pkg}/lib
+%dir %{nodejs_libdir}/%{pkg}/bin
+%attr(755,root,root) %{nodejs_libdir}/%{pkg}/bin/*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/coffee-script.git/commitdiff/1c231ca79fbc2eab60383f83485082024260a578



More information about the pld-cvs-commit mailing list