|
%define _base node |
|
|
|
Name: %{_base}js |
|
Version: 0.5.8 |
|
Release: 1%{?dist} |
|
Summary: Node.js is a server-side JavaScript environment that uses an asynchronous event-driven model. |
|
Packager: Kazuhisa Hara <[email protected]> |
|
Group: Development/Libraries |
|
License: MIT License |
|
URL: http://nodejs.org |
|
Source0: %{_base}-v%{version}.tar.gz |
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
|
|
|
BuildRequires: gcc |
|
BuildRequires: gcc-c++ |
|
BuildRequires: make |
|
BuildRequires: openssl-devel |
|
BuildRequires: libstdc++-devel |
|
|
|
%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 %{_base}-v%{version} |
|
|
|
|
|
%build |
|
./configure --prefix=/usr |
|
make %{?_smp_mflags} |
|
|
|
%install |
|
rm -rf $RPM_BUILD_ROOT |
|
make install DESTDIR=$RPM_BUILD_ROOT |
|
|
|
%clean |
|
rm -rf $RPM_BUILD_ROOT |
|
|
|
%files |
|
%defattr(-,root,root,-) |
|
%dir %{_includedir}/node |
|
%{_includedir}/node/*.h |
|
%{_includedir}/node/c-ares/*.h |
|
%{_includedir}/node/uv-private/*.h |
|
#%{_includedir}/node/ev/*.h |
|
#%{_prefix}/lib/pkgconfig/nodejs.pc |
|
%attr(755,root,root) %{_bindir}/node-waf |
|
%dir %{_prefix}/lib/node |
|
%dir %{_prefix}/lib/node/wafadmin |
|
%dir %{_prefix}/lib/node/wafadmin/Tools |
|
%{_prefix}/lib/node/wafadmin/* |
|
%attr(755,root,root) %{_bindir}/node |
|
|
|
%doc |
|
/usr/share/man/man1/node.1.gz |
|
|
|
%changelog |
|
* Sun Oct 2 2011 Kazuhisa Hara <[email protected]> |
|
- Updated to node.js version 0.5.8 |
|
* Sat Sep 18 2011 Kazuhisa Hara <[email protected]> |
|
- Updated to node.js version 0.5.7 |
|
* Sat Sep 10 2011 Kazuhisa Hara <[email protected]> |
|
- Updated to node.js version 0.5.6 |
|
* Mon Aug 29 2011 Kazuhisa Hara <[email protected]> |
|
- Updated to node.js version 0.5.5 |
|
* Fri Aug 12 2011 Kazuhisa Hara <[email protected]> |
|
- Updated to node.js version 0.5.4 |
|
* Wed Aug 3 2011 Kazuhisa Hara <[email protected]> |
|
- Updated to node.js version 0.5.3 |
|
* Tue Jul 19 2011 Kazuhisa Hara <[email protected]> |
|
- Initial version |
This is initial node.js rpm spec codes. Current codes are moved to https://github.com/kazuhisya/nodejs-rpm .