Files
nodejs-readdirp/nodejs-readdirp.spec

65 lines
1.8 KiB
RPMSpec

#
# spec file for package nodejs-readdirp
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: nodejs-readdirp
Version: 1.1.0
Release: 0
Summary: Compile time `with` for strict mode JavaScript
License: MIT
Group: Development/Languages/Other
Url: https://github.com/thlorenz/readdirp
Source: readdirp-%{version}.tar.gz
Patch: readdirp-remove-dependency-tag.patch
BuildRequires: nodejs
BuildRequires: nodejs-graceful-fs
BuildRequires: nodejs-minimatch
BuildRequires: nodejs-readable-stream
BuildRequires: npm
Requires: nodejs-graceful-fs
Requires: nodejs-minimatch
Requires: nodejs-readable-stream
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%{nodejs_requires}
%description
Recursive version of fs.readdir with streaming api.
%prep
%setup -q -n readdirp-%{version}
cp -r package.json ..
%patch -p1
pushd ..
tar -czf %{SOURCE0} readdirp-%{version}
popd
%build
%install
%{nodejs_install}
# manual install original package.json
install -m 0644 ../package.json %{buildroot}%{nodejs_modulesdir}/readdirp
%files
%defattr(-,root,root,-)
%doc README.md LICENSE
%{nodejs_modulesdir}/readdirp
%changelog