2013-07-05 20:10:25 +02:00
|
|
|
# Copyright (c) 2013, StrongLoop, Inc. <callback@strongloop.com>
|
|
|
|
#
|
|
|
|
# Permission to use, copy, modify, and/or distribute this software for any
|
|
|
|
# purpose with or without fee is hereby granted, provided that the above
|
|
|
|
# copyright notice and this permission notice appear in all copies.
|
|
|
|
#
|
|
|
|
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
|
|
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
|
|
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
|
|
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
|
|
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
|
|
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
|
|
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
|
|
|
|
# This is updated by rpmbuild.sh.
|
|
|
|
%define _version 0.10.12
|
|
|
|
|
2015-08-13 18:14:34 +02:00
|
|
|
Name: node
|
2013-07-05 20:10:25 +02:00
|
|
|
Version: %{_version}
|
|
|
|
Release: 1
|
2015-08-13 18:14:34 +02:00
|
|
|
Summary: Node.js is a platform for building fast, scalable network applications.
|
2013-07-05 20:10:25 +02:00
|
|
|
Group: Development/Languages
|
|
|
|
License: MIT
|
2015-08-23 22:40:28 +02:00
|
|
|
URL: https://nodejs.org/
|
2018-07-09 17:01:13 +02:00
|
|
|
Source0: https://nodejs.org/dist/v%{_version}/node-v%{_version}.tar.gz
|
2013-07-05 20:10:25 +02:00
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: python
|
|
|
|
|
|
|
|
# Conflicts with the HAM radio package.
|
|
|
|
Conflicts: node <= 0.3.2-11
|
|
|
|
|
|
|
|
# Conflicts with the Fedora node.js package.
|
|
|
|
Conflicts: nodejs
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
2015-08-13 18:14:34 +02:00
|
|
|
Node.js is a platform built on Chrome's JavaScript runtime for easily
|
2013-07-05 20:10:25 +02:00
|
|
|
building fast, scalable network applications.
|
|
|
|
|
2015-08-13 18:14:34 +02:00
|
|
|
Node.js uses an event-driven, non-blocking I/O model that makes it
|
2013-07-05 20:10:25 +02:00
|
|
|
lightweight and efficient, perfect for data-intensive real-time
|
|
|
|
applications that run across distributed devices.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%ifarch arm
|
|
|
|
%define _dest_cpu arm
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%ifarch i386 i686
|
|
|
|
%define _dest_cpu ia32
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%ifarch x86_64
|
|
|
|
%define _dest_cpu x64
|
|
|
|
%endif
|
|
|
|
|
|
|
|
./configure --prefix=/usr --dest-cpu=%{_dest_cpu}
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
#make test
|
|
|
|
|
|
|
|
|
|
|
|
# Use mildly hard-coded paths in the install and files targets for now.
|
2014-12-04 22:00:55 +01:00
|
|
|
# _libdir is /usr/lib64 on some systems but the installer always installs
|
|
|
|
# to /usr/lib. I have commits sitting in a branch that add --libdir and
|
|
|
|
# --mandir configure switches to the configure script but it's debatable
|
|
|
|
# if it's worth the extra complexity.
|
2013-07-05 20:10:25 +02:00
|
|
|
%install
|
|
|
|
export DONT_STRIP=1 # Don't strip debug symbols for now.
|
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
rm -fr %{buildroot}/usr/lib/dtrace/ # No systemtap support.
|
|
|
|
install -m 755 -d %{buildroot}/usr/lib/node_modules/
|
|
|
|
install -m 755 -d %{buildroot}%{_datadir}/%{name}
|
|
|
|
|
|
|
|
# Remove junk files from node_modules/ - we should probably take care of
|
|
|
|
# this in the installer.
|
|
|
|
for FILE in .gitmodules .gitignore .npmignore .travis.yml \*.py[co]; do
|
|
|
|
find %{buildroot}/usr/lib/node_modules/ -name "$FILE" -delete
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
/usr/bin/*
|
|
|
|
/usr/include/*
|
|
|
|
/usr/lib/node_modules/
|
2015-07-06 18:41:04 +02:00
|
|
|
/usr/share/doc/node/gdbinit
|
2015-08-13 18:14:34 +02:00
|
|
|
/usr/share/man/man1/node.1.gz
|
2013-07-05 20:10:25 +02:00
|
|
|
/usr/share/systemtap/tapset/node.stp
|
|
|
|
%{_datadir}/%{name}/
|
2015-04-13 16:05:03 +02:00
|
|
|
%doc CHANGELOG.md LICENSE README.md
|
2013-07-05 20:10:25 +02:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2015-07-06 18:41:04 +02:00
|
|
|
* Tue Jul 7 2015 Ali Ijaz Sheikh <ofrobots@google.com>
|
|
|
|
- Added gdbinit.
|
|
|
|
|
2015-04-13 16:05:03 +02:00
|
|
|
* Mon Apr 13 2015 Dan Varga <danvarga@gmail.com>
|
|
|
|
- Fix paths for changelog and manpage
|
|
|
|
|
2014-12-04 22:00:55 +01:00
|
|
|
* Thu Dec 4 2014 Ben Noordhuis <info@bnoordhuis.nl>
|
|
|
|
- Rename to iojs.
|
|
|
|
|
2013-07-05 20:10:25 +02:00
|
|
|
* Fri Jul 5 2013 Ben Noordhuis <info@bnoordhuis.nl>
|
|
|
|
- Initial release.
|