Blame SPECS/nodejs-are-we-there-yet.spec

efa2f9
%{?scl:%scl_package nodejs-are-we-there-yet}
efa2f9
%{!?scl:%global pkg_name %{name}}
efa2f9
efa2f9
# spec file for package nodejs-nodejs-are-we-there-yet
efa2f9
efa2f9
%global npm_name are-we-there-yet
efa2f9
%{?nodejs_find_provides_and_requires}
efa2f9
efa2f9
%global enable_tests 0
efa2f9
efa2f9
Name:		%{?scl_prefix}nodejs-are-we-there-yet
efa2f9
Version:	1.0.4
efa2f9
Release:	4%{?dist}
efa2f9
Summary:	Keep track of the overall completion of many dispirate processes
efa2f9
Url:		https://github.com/iarna/are-we-there-yet
efa2f9
Source0:	https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
efa2f9
License:	ISC
efa2f9
efa2f9
BuildArch:	noarch
efa2f9
efa2f9
%if 0%{?fedora} >= 19
efa2f9
ExclusiveArch: %{nodejs_arches} noarch
efa2f9
%else
efa2f9
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
efa2f9
%endif
efa2f9
efa2f9
BuildRequires:  %{?scl_prefix}nodejs-devel
efa2f9
BuildRequires:  %{?scl_prefix}runtime
efa2f9
efa2f9
%if 0%{?enable_tests}
efa2f9
BuildRequires:	%{?scl_prefix}npm(tap)
efa2f9
%endif
efa2f9
efa2f9
BuildRequires:	%{?scl_prefix}nodejs-delegates
efa2f9
BuildRequires:	%{?scl_prefix}nodejs-readable-stream
efa2f9
efa2f9
Requires:	%{?scl_prefix}nodejs-delegates
efa2f9
Requires:	%{?scl_prefix}nodejs-readable-stream
efa2f9
efa2f9
%description
efa2f9
Keep track of the overall completion of many dispirate processes
efa2f9
efa2f9
%prep
efa2f9
%setup -q -n package
efa2f9
efa2f9
rm -rf node_modules
efa2f9
efa2f9
%nodejs_fixdep delegates '<1.0.0'
efa2f9
%nodejs_fixdep readable-stream
efa2f9
efa2f9
%build
efa2f9
efa2f9
%install
efa2f9
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
efa2f9
efa2f9
cp -pr package.json *.js \
efa2f9
%{buildroot}%{nodejs_sitelib}/%{npm_name}
efa2f9
efa2f9
%{nodejs_symlink_deps}
efa2f9
efa2f9
%if 0%{?enable_tests}
efa2f9
efa2f9
%check
efa2f9
%{nodejs_symlink_deps} --check
efa2f9
efa2f9
%endif
efa2f9
efa2f9
%files
efa2f9
%{nodejs_sitelib}/are-we-there-yet
efa2f9
efa2f9
%doc README.md
efa2f9
efa2f9
%changelog
efa2f9
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.4-4
efa2f9
- Add %%nodejs_fixdep macro
efa2f9
efa2f9
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.4-3
efa2f9
- rebuilt
efa2f9
efa2f9
* Sat Feb 13 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.4-2
efa2f9
- Remove unnecessary file
efa2f9
efa2f9
* Tue Dec 01 2015 Tomas Hrcka <thrcka@redhat.com> - 1.0.4-1
efa2f9
- Initial build