Separate npm tools to nodejs-npm package
authorWonYoung Choi <wy80.choi@samsung.com>
Fri, 18 Dec 2015 06:54:43 +0000 (15:54 +0900)
committerWonYoung Choi <wy80.choi@samsung.com>
Thu, 28 Apr 2016 05:40:54 +0000 (14:40 +0900)
In general, the npm tool is not needed in runtime. If someone needs
to use npm tool, install nodejs-npm package manually.

Change-Id: Idcae9f40a56ed3887f280a72cd3bd2f85ea78e39

packaging/nodejs.spec

index 6ec029a..f66c6e7 100644 (file)
@@ -27,6 +27,14 @@ Requires:      %{name}
 %description devel
 Development libraries for Node.js
 
+%package npm
+Summary:       npm tools for %{name}
+Group:         Development/Libraries
+Requires:      %{name}
+
+%description npm
+npm tools for Node.js
+
 %prep
 %setup -q
 
@@ -64,10 +72,12 @@ rm -fr %{buildroot}/usr/share/man
 %manifest %{name}.manifest
 %defattr(-,root,root)
 %{_bindir}/node
-%{_bindir}/npm
-/usr/lib/node_modules/npm/
 
 %files devel
 %{_includedir}/node/
 %{_libdir}/pkgconfig/*.pc
 
+%files npm
+%{_bindir}/npm
+/usr/lib/node_modules/npm/
+