2012-12-18 13:51:29 +00:00
|
|
|
Name: nodejs
|
2013-01-02 00:33:10 +00:00
|
|
|
Version: 0.9.5
|
2013-01-22 20:46:01 +00:00
|
|
|
Release: 10%{?dist}
|
2012-12-18 13:51:29 +00:00
|
|
|
Summary: JavaScript runtime
|
|
|
|
License: MIT and ASL 2.0 and ISC and BSD
|
|
|
|
Group: Development/Languages
|
|
|
|
URL: http://nodejs.org/
|
2013-01-10 00:54:20 +00:00
|
|
|
|
|
|
|
# Exclusive archs must match v8
|
|
|
|
ExclusiveArch: %{ix86} x86_64 %{arm}
|
|
|
|
|
2012-12-18 13:51:29 +00:00
|
|
|
Source0: http://nodejs.org/dist/v%{version}/node-v%{version}.tar.gz
|
2012-12-27 23:45:37 +00:00
|
|
|
Source1: macros.nodejs
|
|
|
|
Source2: nodejs.attr
|
|
|
|
Source3: nodejs.prov
|
|
|
|
Source4: nodejs.req
|
|
|
|
Source5: nodejs-symlink-deps
|
2013-01-02 01:01:34 +00:00
|
|
|
Source6: nodejs-fixdep
|
2013-01-10 00:54:20 +00:00
|
|
|
|
2013-01-10 01:01:49 +00:00
|
|
|
# V8 presently breaks ABI at least every x.y release while never bumping SONAME,
|
|
|
|
# so we need to be more explicit until spot fixes that
|
2013-01-10 08:25:01 +00:00
|
|
|
%global v8_ge 1:3.13.7.5
|
|
|
|
%global v8_lt 1:3.14
|
2013-01-10 01:01:49 +00:00
|
|
|
|
|
|
|
BuildRequires: v8-devel >= %{v8_ge}
|
2012-12-18 13:51:29 +00:00
|
|
|
BuildRequires: http-parser-devel >= 2.0
|
2013-01-02 01:11:13 +00:00
|
|
|
BuildRequires: libuv-devel
|
2012-12-18 13:51:29 +00:00
|
|
|
BuildRequires: c-ares-devel
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
# Node.js requires some features from openssl 1.0.1 for SPDY support
|
|
|
|
BuildRequires: openssl-devel >= 1:1.0.1
|
2013-01-10 00:54:20 +00:00
|
|
|
|
2013-01-10 08:25:01 +00:00
|
|
|
Requires: v8%{?isa} >= %{v8_ge}
|
|
|
|
Requires: v8%{?isa} < %{v8_lt}
|
2013-01-10 01:01:49 +00:00
|
|
|
|
2012-12-28 01:49:11 +00:00
|
|
|
#virtual provides for automatic depedency generation
|
|
|
|
Provides: nodejs(engine) = %{version}
|
2012-12-18 13:51:29 +00:00
|
|
|
|
|
|
|
# Node.js currently has a conflict with the 'node' package in Fedora
|
|
|
|
# The ham-radio group has agreed to rename their binary for us, but
|
|
|
|
# in the meantime, we're setting an explicit Conflicts: here
|
|
|
|
Conflicts: node <= 0.3.2-11
|
|
|
|
|
|
|
|
%description
|
|
|
|
Node.js is a platform built on Chrome's JavaScript runtime
|
|
|
|
for easily building fast, scalable network applications.
|
|
|
|
Node.js uses an event-driven, non-blocking I/O model that
|
|
|
|
makes it lightweight and efficient, perfect for data-intensive
|
|
|
|
real-time applications that run across distributed devices.
|
|
|
|
|
2013-01-05 09:55:51 +00:00
|
|
|
%package devel
|
|
|
|
Summary: JavaScript runtime - development headers
|
|
|
|
Group: Development/Languages
|
|
|
|
Requires: %{name} == %{version}-%{release}
|
2013-01-22 20:46:01 +00:00
|
|
|
Requires: libuv-devel http-parser-devel openssl-devel c-ares-devel zlib-devel
|
2013-01-05 09:55:51 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development headers for the Node.js JavaScript runtime.
|
|
|
|
|
2012-12-27 02:57:50 +00:00
|
|
|
%package docs
|
|
|
|
Summary: Node.js API documentation
|
|
|
|
Group: Documentation
|
|
|
|
|
|
|
|
%description docs
|
|
|
|
The API documentation for the Node.js JavaScript runtime.
|
2012-12-18 13:51:29 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n node-v%{version}
|
|
|
|
|
|
|
|
# Make sure nothing gets included from bundled deps:
|
|
|
|
# We only delete the source and header files, because
|
|
|
|
# the remaining build scripts are still used.
|
|
|
|
|
|
|
|
find deps/cares -name "*.c" -exec rm -f {} \;
|
|
|
|
find deps/cares -name "*.h" -exec rm -f {} \;
|
|
|
|
|
|
|
|
find deps/npm -name "*.c" -exec rm -f {} \;
|
|
|
|
find deps/npm -name "*.h" -exec rm -f {} \;
|
|
|
|
|
|
|
|
find deps/zlib -name "*.c" -exec rm -f {} \;
|
|
|
|
find deps/zlib -name "*.h" -exec rm -f {} \;
|
|
|
|
|
|
|
|
find deps/v8 -name "*.c" -exec rm -f {} \;
|
|
|
|
find deps/v8 -name "*.h" -exec rm -f {} \;
|
|
|
|
|
|
|
|
find deps/http_parser -name "*.c" -exec rm -f {} \;
|
|
|
|
find deps/http_parser -name "*.h" -exec rm -f {} \;
|
|
|
|
|
|
|
|
find deps/openssl -name "*.c" -exec rm -f {} \;
|
|
|
|
find deps/openssl -name "*.h" -exec rm -f {} \;
|
|
|
|
|
|
|
|
find deps/uv -name "*.c" -exec rm -f {} \;
|
|
|
|
find deps/uv -name "*.h" -exec rm -f {} \;
|
|
|
|
|
|
|
|
%build
|
2013-01-10 01:12:46 +00:00
|
|
|
# build with debugging symbols and add defines from libuv (#892601)
|
|
|
|
export CFLAGS='%{optflags} -g -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
|
|
|
|
export CXXFLAGS='%{optflags} -g -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
|
|
|
|
|
2012-12-18 13:51:29 +00:00
|
|
|
./configure --prefix=%{_prefix} \
|
|
|
|
--shared-v8 \
|
|
|
|
--shared-openssl \
|
|
|
|
--shared-zlib \
|
|
|
|
--shared-cares \
|
|
|
|
--shared-libuv \
|
|
|
|
--shared-http-parser \
|
|
|
|
--without-npm \
|
|
|
|
--without-dtrace
|
2013-01-10 13:03:49 +00:00
|
|
|
|
|
|
|
# Setting BUILDTYPE=Debug builds both release and debug binaries
|
|
|
|
make BUILDTYPE=Debug %{?_smp_mflags}
|
2012-12-18 13:51:29 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
2013-01-10 09:15:32 +00:00
|
|
|
./tools/install.py install %{buildroot}
|
2012-12-18 13:51:29 +00:00
|
|
|
|
|
|
|
# and remove dtrace file again
|
|
|
|
rm -rf %{buildroot}/%{_prefix}/lib/dtrace
|
|
|
|
|
|
|
|
# Set the binary permissions properly
|
|
|
|
chmod 0755 %{buildroot}/%{_bindir}/node
|
|
|
|
|
2013-01-10 13:03:49 +00:00
|
|
|
# Install the debug binary and set its permissions
|
|
|
|
install -Dpm0755 out/Debug/node %{buildroot}/%{_bindir}/node_g
|
|
|
|
|
2012-12-27 23:45:37 +00:00
|
|
|
# own the sitelib directory
|
|
|
|
mkdir -p %{buildroot}%{_prefix}/lib/node_modules
|
|
|
|
|
|
|
|
# install rpm magic
|
|
|
|
install -Dpm0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/rpm/macros.nodejs
|
|
|
|
install -Dpm0644 %{SOURCE2} %{buildroot}%{_rpmconfigdir}/fileattrs/nodejs.attr
|
|
|
|
install -pm0755 %{SOURCE3} %{buildroot}%{_rpmconfigdir}/nodejs.prov
|
|
|
|
install -pm0755 %{SOURCE4} %{buildroot}%{_rpmconfigdir}/nodejs.req
|
2013-01-23 19:50:13 +00:00
|
|
|
install -pm0755 %{SOURCE5} %{buildroot}%{_rpmconfigdir}/nodejs-symlink-deps
|
|
|
|
install -pm0755 %{SOURCE6} %{buildroot}%{_rpmconfigdir}/nodejs-fixdep
|
2012-12-27 23:45:37 +00:00
|
|
|
|
2012-12-27 02:57:50 +00:00
|
|
|
#install documentation
|
2012-12-28 00:12:19 +00:00
|
|
|
mkdir -p %{buildroot}%{_defaultdocdir}/%{name}-docs-%{version}/html
|
|
|
|
cp -pr doc/* %{buildroot}%{_defaultdocdir}/%{name}-docs-%{version}/html
|
2012-12-27 02:57:50 +00:00
|
|
|
rm -f %{_defaultdocdir}/%{name}-docs-%{version}/html/nodejs.1
|
|
|
|
|
2013-01-05 09:55:51 +00:00
|
|
|
#install development headers
|
|
|
|
#FIXME: we probably don't really need *.h but node-gyp downloads the whole
|
|
|
|
#freaking source tree so I can't be sure ATM
|
|
|
|
mkdir -p %{buildroot}%{_includedir}/node
|
|
|
|
cp -p src/*.h %{buildroot}%{_includedir}/node
|
|
|
|
|
2013-01-05 10:15:29 +00:00
|
|
|
#node-gyp needs common.gypi too
|
2013-01-05 10:19:17 +00:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/node
|
|
|
|
cp -p common.gypi %{buildroot}%{_datadir}/node
|
2013-01-05 10:15:29 +00:00
|
|
|
|
2012-12-18 13:51:29 +00:00
|
|
|
%files
|
|
|
|
%doc ChangeLog LICENSE README.md AUTHORS
|
|
|
|
%{_bindir}/node
|
|
|
|
%{_mandir}/man1/node.*
|
2012-12-28 01:49:11 +00:00
|
|
|
%{_sysconfdir}/rpm/macros.nodejs
|
2012-12-27 23:45:37 +00:00
|
|
|
%{_rpmconfigdir}/fileattrs/nodejs.attr
|
|
|
|
%{_rpmconfigdir}/nodejs*
|
|
|
|
%dir %{_prefix}/lib/node_modules
|
2012-12-18 13:51:29 +00:00
|
|
|
|
2013-01-05 09:55:51 +00:00
|
|
|
%files devel
|
2013-01-10 13:03:49 +00:00
|
|
|
%{_bindir}/node_g
|
2013-01-05 09:55:51 +00:00
|
|
|
%{_includedir}/node
|
2013-01-05 10:15:29 +00:00
|
|
|
%{_datadir}/node
|
2013-01-05 09:55:51 +00:00
|
|
|
|
2012-12-27 02:57:50 +00:00
|
|
|
%files docs
|
|
|
|
%{_defaultdocdir}/%{name}-docs-%{version}
|
|
|
|
%doc LICENSE
|
|
|
|
|
2012-12-18 13:51:29 +00:00
|
|
|
%changelog
|
2013-01-22 20:46:01 +00:00
|
|
|
* Tue Jan 22 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.5-10
|
|
|
|
- minor bugfixes to RPM magic
|
|
|
|
- nodejs-symlink-deps: don't create an empty node_modules dir when a module
|
|
|
|
has no dependencies
|
|
|
|
- nodes-fixdep: support adding deps when none exist
|
|
|
|
- Add the full set of headers usually bundled with node as deps to nodejs-devel.
|
|
|
|
This way `npm install` for native modules that assume the stuff bundled with
|
|
|
|
node exists will usually "just work".
|
|
|
|
|
2013-01-12 23:16:50 +00:00
|
|
|
* Sat Jan 12 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.5-9
|
|
|
|
- fix brown paper bag bug in requires generation script
|
|
|
|
|
2013-01-10 13:03:49 +00:00
|
|
|
* Thu Jan 10 2013 Stephen Gallagher <sgallagh@redhat.com> - 0.9.5-8
|
|
|
|
- Build debug binary and install it in the nodejs-devel subpackage
|
|
|
|
|
2013-01-10 09:10:39 +00:00
|
|
|
* Thu Jan 10 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.5-7
|
|
|
|
- don't use make install since it rebuilds everything
|
|
|
|
|
2013-01-10 08:25:01 +00:00
|
|
|
* Thu Jan 10 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.5-6
|
|
|
|
- add %%{?isa}, epoch to v8 deps
|
|
|
|
|
2013-01-10 00:47:55 +00:00
|
|
|
* Wed Jan 09 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.5-5
|
|
|
|
- add defines to match libuv (#892601)
|
2013-01-10 01:01:49 +00:00
|
|
|
- make v8 dependency explicit (and thus more accurate)
|
2013-01-10 01:12:46 +00:00
|
|
|
- add -g to $C(XX)FLAGS instead of patching configure to add it
|
2013-01-10 01:44:46 +00:00
|
|
|
- don't write pointless 'npm(foo) > 0' deps
|
2013-01-10 00:47:55 +00:00
|
|
|
|
2013-01-05 09:55:51 +00:00
|
|
|
* Sat Jan 05 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.5-4
|
|
|
|
- install development headers
|
2013-01-05 10:26:47 +00:00
|
|
|
- add nodejs_sitearch macro
|
2013-01-05 09:55:51 +00:00
|
|
|
|
2013-01-02 07:05:33 +00:00
|
|
|
* Wed Jan 02 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.5-3
|
|
|
|
- make nodejs-symlink-deps actually work
|
|
|
|
|
2013-01-02 01:54:12 +00:00
|
|
|
* Tue Jan 01 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.5-2
|
|
|
|
- provide nodejs-devel so modules can BuildRequire it (and be consistent
|
|
|
|
with other interpreted languages in the distro)
|
|
|
|
|
2013-01-02 00:33:10 +00:00
|
|
|
* Tue Jan 01 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.5-1
|
|
|
|
- new upstream release 0.9.5
|
2013-01-02 00:46:31 +00:00
|
|
|
- provide nodejs-devel for the moment
|
|
|
|
- fix minor bugs in RPM magic
|
2013-01-02 01:01:34 +00:00
|
|
|
- add nodejs_fixdep macro so packagers can easily adjust dependencies in
|
|
|
|
package.json files
|
2013-01-02 00:33:10 +00:00
|
|
|
|
2012-12-27 02:57:50 +00:00
|
|
|
* Wed Dec 26 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.4-1
|
|
|
|
- new upstream release 0.9.4
|
|
|
|
- system library patches are now upstream
|
|
|
|
- respect optflags
|
|
|
|
- include documentation in subpackage
|
2012-12-27 23:45:37 +00:00
|
|
|
- add RPM dependency generation and related magic
|
2012-12-27 23:48:09 +00:00
|
|
|
- guard libuv depedency so it always gets bumped when nodejs does
|
2013-01-05 09:55:51 +00:00
|
|
|
- add -devel subpackage with enough to make node-gyp happy
|
2012-12-27 02:57:50 +00:00
|
|
|
|
2012-12-19 11:18:24 +00:00
|
|
|
* Wed Dec 19 2012 Dan Horák <dan[at]danny.cz> - 0.9.3-8
|
|
|
|
- set exclusive arch list to match v8
|
|
|
|
|
2012-12-18 13:55:24 +00:00
|
|
|
* Tue Dec 18 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.9.3-7
|
|
|
|
- Add remaining changes from code review
|
|
|
|
- Remove unnecessary BuildRequires on findutils
|
|
|
|
- Remove %%clean section
|
2012-12-18 13:51:29 +00:00
|
|
|
|
2012-12-18 13:55:24 +00:00
|
|
|
* Fri Dec 14 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.9.3-6
|
|
|
|
- Fixes from code review
|
|
|
|
- Fix executable permissions
|
|
|
|
- Correct the License field
|
|
|
|
- Build debuginfo properly
|
2012-12-18 13:51:29 +00:00
|
|
|
|
|
|
|
* Thu Dec 13 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.9.3-5
|
|
|
|
- Return back to using the standard binary name
|
|
|
|
- Temporarily adding a conflict against the ham radio node package until they
|
|
|
|
complete an agreed rename of their binary.
|
|
|
|
|
|
|
|
* Wed Nov 28 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.9.3-4
|
|
|
|
- Rename binary and manpage to nodejs
|
|
|
|
|
|
|
|
* Mon Nov 19 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.9.3-3
|
|
|
|
- Update to latest upstream development release 0.9.3
|
|
|
|
- Include upstreamed patches to unbundle dependent libraries
|
|
|
|
|
|
|
|
* Tue Oct 23 2012 Adrian Alves <alvesadrian@fedoraproject.org> 0.8.12-1
|
|
|
|
- Fixes and Patches suggested by Matthias Runge
|
|
|
|
|
|
|
|
* Mon Apr 09 2012 Adrian Alves <alvesadrian@fedoraproject.org> 0.6.5
|
|
|
|
- First build.
|
|
|
|
|