From d46eff9f818d2efe8d936bd78cd74c302176f2c1 Mon Sep 17 00:00:00 2001 From: "T.C. Hollingsworth" Date: Tue, 18 Jun 2013 20:05:21 -0700 Subject: [PATCH] split off a -packaging subpackage with RPM macros, etc. This way nodejs-packaging can be approved and imported without forcing a nodejs update at the same time. --- nodejs.spec | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/nodejs.spec b/nodejs.spec index 967e76f..a41f773 100644 --- a/nodejs.spec +++ b/nodejs.spec @@ -69,6 +69,7 @@ Summary: JavaScript runtime - development headers Group: Development/Languages Requires: %{name} == %{version}-%{release} Requires: libuv-devel http-parser-devel openssl-devel c-ares-devel zlib-devel +Requires: nodejs-packaging %description devel Development headers for the Node.js JavaScript runtime. @@ -80,6 +81,17 @@ Group: Documentation %description docs The API documentation for the Node.js JavaScript runtime. +%package packaging +Summary: RPM macros and utilities for Node.js packaging +Group: Development/Tools +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description packaging +This package contains RPM macros and other utilities useful for packaging +Node.js modules and applications in RPM-based distributions. + + %prep %setup -q -n node-v%{version} %patch1 -p0 @@ -166,17 +178,20 @@ cp -p common.gypi %{buildroot}%{_datadir}/node %{_bindir}/node_g %{_includedir}/node %{_datadir}/node -%{_sysconfdir}/rpm/macros.nodejs -%{_rpmconfigdir}/fileattrs/nodejs*.attr -%{_rpmconfigdir}/nodejs* %files docs %{_defaultdocdir}/%{name}-docs-%{version} +%files packaging +%{_sysconfdir}/rpm/macros.nodejs +%{_rpmconfigdir}/fileattrs/nodejs*.attr +%{_rpmconfigdir}/nodejs* + %changelog * Wed Jun 19 2013 T.C. Hollingsworth - 0.10.12-1 - new upstream release 0.10.12 http://blog.nodejs.org/2013/06/18/node-v0-10-12-stable/ +- split off a -packaging subpackage with RPM macros, etc. * Fri May 31 2013 T.C. Hollingsworth - 0.10.9-1 - new upstream release 0.10.9