Blame SPECS/nodejs-readdir-scoped-modules.spec

4377d7
%{?scl:%scl_package nodejs-readdir-scoped-modules}
4377d7
%{!?scl:%global pkg_name %{name}}
4377d7
4377d7
# spec file for package nodejs-nodejs-readdir-scoped-modules
4377d7
4377d7
%global npm_name readdir-scoped-modules
4377d7
%{?nodejs_find_provides_and_requires}
4377d7
4377d7
%global enable_tests 0
4377d7
4377d7
Name:		%{?scl_prefix}nodejs-readdir-scoped-modules
4377d7
Version:	1.0.2
4377d7
Release:	3%{?dist}
4377d7
Summary:	Like `fs.readdir` but handling `@org/module` dirs as if they were a single entry.
4377d7
Url:		https://github.com/npm/readdir-scoped-modules
4377d7
Source0:	https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
4377d7
License:	ISC
4377d7
4377d7
BuildArch:	noarch
4377d7
4377d7
%if 0%{?fedora} >= 19
4377d7
ExclusiveArch: %{nodejs_arches} noarch
4377d7
%else
4377d7
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
4377d7
%endif
4377d7
4377d7
BuildRequires:  %{?scl_prefix}nodejs-devel
4377d7
BuildRequires:  %{?scl_prefix}runtime
4377d7
4377d7
%if 0%{?enable_tests}
4377d7
BuildRequires:	%{?scl_prefix}npm(tap)
4377d7
%endif
4377d7
4377d7
BuildRequires:	%{?scl_prefix}npm(debuglog)
4377d7
BuildRequires:	%{?scl_prefix}npm(dezalgo)
4377d7
BuildRequires:	%{?scl_prefix}npm(graceful-fs)
4377d7
BuildRequires:	%{?scl_prefix}npm(once)
4377d7
4377d7
Requires:	%{?scl_prefix}npm(debuglog)
4377d7
Requires:	%{?scl_prefix}npm(dezalgo)
4377d7
Requires:	%{?scl_prefix}npm(graceful-fs)
4377d7
Requires:	%{?scl_prefix}npm(once)
4377d7
4377d7
%description
4377d7
Like `fs.readdir` but handling `@org/module` dirs as if they were a single entry.
4377d7
4377d7
%prep
4377d7
%setup -q -n package
4377d7
4377d7
rm -rf node_modules
4377d7
4377d7
%build
4377d7
4377d7
%install
4377d7
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
4377d7
4377d7
cp -pr package.json *.js \
4377d7
%{buildroot}%{nodejs_sitelib}/%{npm_name}
4377d7
4377d7
%{nodejs_symlink_deps}
4377d7
4377d7
%if 0%{?enable_tests}
4377d7
4377d7
%check
4377d7
%{nodejs_symlink_deps} --check
4377d7
4377d7
%endif
4377d7
4377d7
%files
4377d7
%{nodejs_sitelib}/readdir-scoped-modules
4377d7
4377d7
%doc README.md LICENSE
4377d7
4377d7
%changelog
4377d7
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.2-3
4377d7
- Use macro in -runtime dependency
4377d7
4377d7
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.2-2
4377d7
- Rebuilt with updated metapackage
4377d7
4377d7
* Mon Nov 30 2015 Tomas Hrcka <thrcka@redhat.com> - 1.0.2-1
4377d7
- Initial build