public
Created

RPM spec file for node

  • Download Gist
nodejs.spec
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
%define ver 0.6.6
%define rel 1
%define jobs 2
 
Name: nodejs
Version: %{ver}
Release: %{rel}
Summary: Node's goal is to provide an easy way to build scalable network programs.
Group: Applications/Internet
License: Copyright Joyent, Inc. and other Node contributors.
URL: http://nodejs.org
Source0: http://nodejs.org/dist/node-v%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
BuildRequires: python >= 2.4
 
%description
Node.js is a server-side JavaScript environment that uses an asynchronous
event-driven model. This allows Node.js to get excellent performance based on
the architectures of many Internet applications.
 
%prep
%setup -q -n node-v%{version}
 
%build
export JOBS=%{jobs}
./configure --prefix=/usr
make
 
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
 
%clean
rm -rf %{buildroot}
 
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog LICENSE README.md
 
/usr/bin/node
/usr/bin/npm
/usr/bin/node-waf
/usr/include/node
/usr/lib/node
/usr/lib/node_modules
/usr/share/man/man1/node.1.gz
 
%changelog
* Thu Apr 14 2011 Chris Abernethy <cabernet@chrisabernethy.com> 0.4.6-1
- Initial rpm using upstream v0.4.6
 
* Fri Jan 06 2012 Sean Plaice <splaice@gmail.com> 0.6.6-1
- Update spec to use v0.6.6

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.