Skip to content

Instantly share code, notes, and snippets.

@kazuhisya
Created July 19, 2011 02:51
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kazuhisya/1091210 to your computer and use it in GitHub Desktop.
Save kazuhisya/1091210 to your computer and use it in GitHub Desktop.
node.js rpm spec
%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 <kazuhisya@gmail.com>
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 <kazuhisya@gmail.com>
- Updated to node.js version 0.5.8
* Sat Sep 18 2011 Kazuhisa Hara <kazuhisya@gmail.com>
- Updated to node.js version 0.5.7
* Sat Sep 10 2011 Kazuhisa Hara <kazuhisya@gmail.com>
- Updated to node.js version 0.5.6
* Mon Aug 29 2011 Kazuhisa Hara <kazuhisya@gmail.com>
- Updated to node.js version 0.5.5
* Fri Aug 12 2011 Kazuhisa Hara <kazuhisya@gmail.com>
- Updated to node.js version 0.5.4
* Wed Aug 3 2011 Kazuhisa Hara <kazuhisya@gmail.com>
- Updated to node.js version 0.5.3
* Tue Jul 19 2011 Kazuhisa Hara <kazuhisya@gmail.com>
- Initial version
@kazuhisya
Copy link
Author

This is initial node.js rpm spec codes. Current codes are moved to https://github.com/kazuhisya/nodejs-rpm .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment