Blame SPECS/nodejs-tap-stream.spec

69804c
%{?scl:%scl_package nodejs-tap-stream}
69804c
%{!?scl:%global pkg_name %{name}}
69804c
69804c
# spec file for package nodejs-nodejs-tap-stream
69804c
69804c
%global npm_name tap-stream
69804c
%{?nodejs_find_provides_and_requires}
69804c
69804c
%global enable_tests 0
69804c
69804c
Name:		%{?scl_prefix}nodejs-tap-stream
69804c
Version:	0.2.0
69804c
Release:	4%{?dist}
69804c
Summary:	Taps a nodejs stream and logs the data that's coming through.
69804c
Url:		http://registry.npmjs.org/tap-stream/-/tap-stream-0.2.0.tgz
69804c
Source0:	https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
69804c
License:	BSD
69804c
69804c
BuildArch:	noarch
69804c
69804c
%if 0%{?fedora} >= 19
69804c
ExclusiveArch: %{nodejs_arches} noarch
69804c
%else
69804c
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
69804c
%endif
69804c
69804c
BuildRequires:  %{?scl_prefix}nodejs-devel
69804c
BuildRequires:  %{?scl_prefix}runtime
69804c
69804c
%if 0%{?enable_tests}
69804c
BuildRequires:	%{?scl_prefix}npm(tap)
69804c
%endif
69804c
69804c
BuildRequires:	%{?scl_prefix}npm(through)
69804c
69804c
Requires:	%{?scl_prefix}npm(through)
69804c
69804c
%description
69804c
Taps a nodejs stream and logs the data that's coming through.
69804c
69804c
%prep
69804c
%setup -q -n package
69804c
69804c
rm -rf node_modules
69804c
69804c
%build
69804c
69804c
%install
69804c
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
69804c
69804c
cp -pr package.json *.js \
69804c
%{buildroot}%{nodejs_sitelib}/%{npm_name}
69804c
69804c
%{nodejs_symlink_deps}
69804c
69804c
%if 0%{?enable_tests}
69804c
69804c
%check
69804c
%{nodejs_symlink_deps} --check
69804c
69804c
%endif
69804c
69804c
%files
69804c
%doc README.md
69804c
%{nodejs_sitelib}/tap-stream
69804c
69804c
%changelog
69804c
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.2.0-4
69804c
- Use macro in -runtime dependency
69804c
69804c
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.2.0-2
69804c
- Rebuilt with updated metapackage
69804c
69804c
* Fri Jan 08 2016 Tomas Hrcka <thrcka@redhat.com> - 0.2.0-1
69804c
- Initial build