Blame SPECS/nodejs-string_decoder.spec

172fc2
# spec file for package nodejs-nodejs-string_decoder
172fc2
%{?scl:%scl_package nodejs-nodejs-string_decoder}
172fc2
%{!?scl:%global pkg_name %{name}}
172fc2
172fc2
%global npm_name string_decoder
172fc2
%{?nodejs_find_provides_and_requires}
172fc2
172fc2
%global enable_tests 0
172fc2
172fc2
Name:		%{?scl_prefix}nodejs-string_decoder
172fc2
Version:	0.10.31
172fc2
Release:	3%{?dist}
172fc2
Summary:	The string_decoder module from Node core
172fc2
Url:		https://github.com/rvagg/string_decoder
172fc2
Source0:	https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
172fc2
License:	MIT
172fc2
172fc2
BuildArch:	noarch
172fc2
ExclusiveArch:	%{ix86} x86_64 %{arm}} noarch
172fc2
172fc2
BuildRequires:	%{?scl_prefix}nodejs-devel
172fc2
#BuildRequires:	nodejs-packaging
172fc2
172fc2
%if 0%{?enable_tests}
172fc2
BuildRequires:	npm(tap)
172fc2
%endif
172fc2
172fc2
%description
172fc2
The string_decoder module from Node core
172fc2
172fc2
%prep
172fc2
%setup -q -n package
172fc2
172fc2
%build
172fc2
#nothing to do
172fc2
172fc2
%install
172fc2
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
172fc2
172fc2
cp -pr package.json *.js \
172fc2
	%{buildroot}%{nodejs_sitelib}/%{npm_name}
172fc2
172fc2
%{nodejs_symlink_deps}
172fc2
172fc2
%if 0%{?enable_tests}
172fc2
%check
172fc2
%{nodejs_symlink_deps} --check
172fc2
tap test/simple/*.js
172fc2
%endif
172fc2
172fc2
%files
172fc2
%{nodejs_sitelib}/string_decoder
172fc2
172fc2
%doc README.md LICENSE
172fc2
172fc2
%changelog
172fc2
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.10.31-3
172fc2
- rebuilt
172fc2
172fc2
* Sat Feb 13 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.10.31-2
172fc2
- rebuilt
172fc2
172fc2
* Thu Aug 13 2015 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.10.31-1
172fc2
- Initial build