Blame SPECS/nodejs-buffer-shims.spec

9a2e11
%{?scl:%scl_package nodejs-buffer-shims}
9a2e11
%{!?scl:%global pkg_name %{name}}
9a2e11
%{?nodejs_find_provides_and_requires}
9a2e11
9a2e11
%global enable_tests 0
9a2e11
%global npm_name buffer-shims
9a2e11
9a2e11
Name:       %{?scl_prefix}nodejs-%{npm_name}
9a2e11
Version:    1.0.0
9a2e11
Release:    2%{?dist}
9a2e11
Summary:    Some shims for node buffers
9a2e11
License:    MIT
9a2e11
URL:        https://github.com/calvinmetcalf/buffer-shims/issues
9a2e11
Source0:    http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
9a2e11
BuildRequires: %{?scl_prefix}nodejs-devel
9a2e11
BuildArch:  noarch
9a2e11
ExclusiveArch: %{nodejs_arches} noarch
9a2e11
9a2e11
%description
9a2e11
Some shims for node buffers
9a2e11
9a2e11
%prep
9a2e11
%setup -q -n package
9a2e11
9a2e11
rm -rf node_modules
9a2e11
9a2e11
%build
9a2e11
9a2e11
%install
9a2e11
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
9a2e11
cp -pfr index.js package.json %{buildroot}%{nodejs_sitelib}/%{npm_name}
9a2e11
# If any binaries are included, symlink them to bindir here
9a2e11
9a2e11
9a2e11
%nodejs_symlink_deps
9a2e11
9a2e11
%if 0%{?enable_tests}
9a2e11
%check
9a2e11
#not running tests in RHSCL
9a2e11
%endif
9a2e11
9a2e11
%files
9a2e11
%{nodejs_sitelib}/%{npm_name}
9a2e11
9a2e11
%doc license.md
9a2e11
%doc readme.md
9a2e11
9a2e11
%changelog
9a2e11
* Tue Sep 20 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.0-2
9a2e11
- Initial build
9a2e11