Blame SPECS/nodejs-aws4.spec

1d92a7
%{?scl:%scl_package nodejs-aws4}
1d92a7
%{!?scl:%global pkg_name %{name}}
1d92a7
%{?nodejs_find_provides_and_requires}
1d92a7
1d92a7
%global enable_tests 0
1d92a7
%global npm_name aws4
1d92a7
1d92a7
Name:       %{?scl_prefix}nodejs-%{npm_name}
1d92a7
Version:        1.4.1
3edeb8
Release:        3%{?dist}
1d92a7
Summary:    Signs and prepares requests using AWS Signature Version 4
1d92a7
License:    MIT
1d92a7
URL:        https://github.com/mhart/aws4.git
1d92a7
Source0:    http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
1d92a7
BuildRequires: %{?scl_prefix}nodejs-devel
1d92a7
BuildArch:  noarch
1d92a7
ExclusiveArch: %{nodejs_arches} noarch
1d92a7
1d92a7
%description
1d92a7
Signs and prepares requests using AWS Signature Version 4
1d92a7
1d92a7
%prep
1d92a7
%setup -q -n package
1d92a7
1d92a7
rm -rf node_modules
1d92a7
1d92a7
%build
1d92a7
1d92a7
%install
1d92a7
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
1d92a7
cp -pfr *.js package.json %{buildroot}%{nodejs_sitelib}/%{npm_name}
1d92a7
# If any binaries are included, symlink them to bindir here
1d92a7
1d92a7
1d92a7
%nodejs_symlink_deps
1d92a7
1d92a7
%if 0%{?enable_tests}
1d92a7
%check
1d92a7
#not running tests in RHSCL
1d92a7
%endif
1d92a7
1d92a7
%files
1d92a7
%{nodejs_sitelib}/%{npm_name}
1d92a7
1d92a7
%doc LICENSE
1d92a7
%doc README.md
1d92a7
1d92a7
%changelog
3edeb8
* Mon May 28 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.4.1-3
3edeb8
- Resolves: RHBZ#1543198, rebuild for multiarch
3edeb8
1d92a7
* Wed Jan 18 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.4.1-2
1d92a7
- Copy all js files in %%install
1d92a7
1d92a7
* Thu Jan 05 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.4.1-1
1d92a7
- Updated with script
1d92a7
1d92a7
* Tue Sep 20 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.3.2-2
1d92a7
- Initial build
1d92a7