install development headers

This commit is contained in:
T.C. Hollingsworth 2013-01-05 02:55:51 -07:00
parent e69a9d539d
commit 3a234dfcc8

View File

@ -1,6 +1,6 @@
Name: nodejs Name: nodejs
Version: 0.9.5 Version: 0.9.5
Release: 3%{?dist} Release: 4%{?dist}
Summary: JavaScript runtime Summary: JavaScript runtime
License: MIT and ASL 2.0 and ISC and BSD License: MIT and ASL 2.0 and ISC and BSD
Group: Development/Languages Group: Development/Languages
@ -21,8 +21,6 @@ BuildRequires: zlib-devel
BuildRequires: openssl-devel >= 1:1.0.1 BuildRequires: openssl-devel >= 1:1.0.1
#virtual provides for automatic depedency generation #virtual provides for automatic depedency generation
Provides: nodejs(engine) = %{version} Provides: nodejs(engine) = %{version}
#provide nodejs-devel until it comes back for real
Provides: nodejs-devel = %{version}-%{release}
# Exclusive archs must match v8 # Exclusive archs must match v8
ExclusiveArch: %{ix86} x86_64 %{arm} ExclusiveArch: %{ix86} x86_64 %{arm}
@ -45,6 +43,14 @@ Node.js uses an event-driven, non-blocking I/O model that
makes it lightweight and efficient, perfect for data-intensive makes it lightweight and efficient, perfect for data-intensive
real-time applications that run across distributed devices. real-time applications that run across distributed devices.
%package devel
Summary: JavaScript runtime - development headers
Group: Development/Languages
Requires: %{name} == %{version}-%{release}
%description devel
Development headers for the Node.js JavaScript runtime.
%package docs %package docs
Summary: Node.js API documentation Summary: Node.js API documentation
Group: Documentation Group: Documentation
@ -124,6 +130,12 @@ mkdir -p %{buildroot}%{_defaultdocdir}/%{name}-docs-%{version}/html
cp -pr doc/* %{buildroot}%{_defaultdocdir}/%{name}-docs-%{version}/html cp -pr doc/* %{buildroot}%{_defaultdocdir}/%{name}-docs-%{version}/html
rm -f %{_defaultdocdir}/%{name}-docs-%{version}/html/nodejs.1 rm -f %{_defaultdocdir}/%{name}-docs-%{version}/html/nodejs.1
#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
%files %files
%doc ChangeLog LICENSE README.md AUTHORS %doc ChangeLog LICENSE README.md AUTHORS
%{_bindir}/node %{_bindir}/node
@ -133,11 +145,17 @@ rm -f %{_defaultdocdir}/%{name}-docs-%{version}/html/nodejs.1
%{_rpmconfigdir}/nodejs* %{_rpmconfigdir}/nodejs*
%dir %{_prefix}/lib/node_modules %dir %{_prefix}/lib/node_modules
%files devel
%{_includedir}/node
%files docs %files docs
%{_defaultdocdir}/%{name}-docs-%{version} %{_defaultdocdir}/%{name}-docs-%{version}
%doc LICENSE %doc LICENSE
%changelog %changelog
* Sat Jan 05 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.5-4
- install development headers
* Wed Jan 02 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.5-3 * Wed Jan 02 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.5-3
- make nodejs-symlink-deps actually work - make nodejs-symlink-deps actually work
@ -159,6 +177,7 @@ rm -f %{_defaultdocdir}/%{name}-docs-%{version}/html/nodejs.1
- include documentation in subpackage - include documentation in subpackage
- add RPM dependency generation and related magic - add RPM dependency generation and related magic
- guard libuv depedency so it always gets bumped when nodejs does - guard libuv depedency so it always gets bumped when nodejs does
- add -devel subpackage with enough to make node-gyp happy
* Wed Dec 19 2012 Dan Horák <dan[at]danny.cz> - 0.9.3-8 * Wed Dec 19 2012 Dan Horák <dan[at]danny.cz> - 0.9.3-8
- set exclusive arch list to match v8 - set exclusive arch list to match v8