7 Group: Development/Libraries
8 Source0: http://registry.npmjs.org/%{pkg}/-/%{pkg}-%{version}.tgz
9 # Source0-md5: c53f4ecca854ba617b00b9eaef2b26c5
10 URL: https://github.com/isaacs/tar
11 BuildRequires: rpmbuild(macros) >= 1.634
13 Requires: nodejs-block-stream
14 Requires: nodejs-fstream < 2
15 Requires: nodejs-fstream >= 1.0.2
16 Requires: nodejs-inherits < 3
17 Requires: nodejs-inherits >= 2
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 rm -rf $RPM_BUILD_ROOT
31 install -d $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
32 cp -pr lib %{pkg}.js package.json $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
34 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
35 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
38 rm -rf $RPM_BUILD_ROOT
41 %defattr(644,root,root,755)
43 %{nodejs_libdir}/%{pkg}
44 %{_examplesdir}/%{name}-%{version}