Accepting request 285988 from home:deadpoint:nodejs

`basename $PWD`

OBS-URL: https://build.opensuse.org/request/show/285988
OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-compress-commons?expand=0&rev=1
This commit is contained in:
2015-02-15 13:41:19 +00:00
committed by Git OBS Bridge
commit d0633b51a7
5 changed files with 76 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
%define base_name compress-commons
Name: nodejs-%{base_name}
Version: 0.2.5
Release: 0
License: MIT
Summary: a library that defines a common interface for working with archive formats within node
URL: https://github.com/ctalkington/node-compress-commons
Group: Development/Languages/Other
Source0: http://registry.npmjs.org/%{base_name}/-/%{base_name}-%{version}.tgz
Requires: nodejs
Requires: nodejs-buffer-crc32
Requires: nodejs-crc32-stream
Requires: nodejs-node-int64
Requires: nodejs-readable-stream
BuildRequires: nodejs
BuildRequires: nodejs-packaging
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch: noarch
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
%description
Node.js compress-commons module. a library that defines a common interface for working with archive formats within node.
%prep
%setup -q -n package
%build
%install
mkdir -p %{buildroot}%{nodejs_modulesdir}/%{base_name}
cp -pr package.json lib \
%{buildroot}%{nodejs_modulesdir}/%{base_name}/
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README.md
%{nodejs_modulesdir}/%{base_name}
%changelog