Blame SPECS/nodejs-d.spec

c9c269
%{?scl:%scl_package nodejs-d}
c9c269
%{!?scl:%global pkg_name %{name}}
c9c269
%{?nodejs_find_provides_and_requires}
c9c269
c9c269
%global enable_tests 0
c9c269
%global npm_name d
c9c269
c9c269
Name:       %{?scl_prefix}nodejs-%{npm_name}
c9c269
Version:    1.0.0
9a1765
Release:    3%{?dist}
c9c269
Summary:    Property descriptor factory
c9c269
License:    MIT
c9c269
URL:        git://github.com/medikoo/d.git
c9c269
Source0:    http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
c9c269
BuildRequires: %{?scl_prefix}nodejs-devel
c9c269
BuildArch:  noarch
c9c269
ExclusiveArch: %{nodejs_arches} noarch
c9c269
c9c269
%description
c9c269
Property descriptor factory
c9c269
c9c269
%prep
c9c269
%setup -q -n package
c9c269
c9c269
rm -rf node_modules
c9c269
c9c269
%build
c9c269
c9c269
%install
c9c269
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
c9c269
cp -pfr auto-bind.js index.js lazy.js package.json %{buildroot}%{nodejs_sitelib}/%{npm_name}
c9c269
# If any binaries are included, symlink them to bindir here
c9c269
c9c269
c9c269
%nodejs_symlink_deps
c9c269
c9c269
%if 0%{?enable_tests}
c9c269
%check
c9c269
#not running tests in RHSCL
c9c269
%endif
c9c269
c9c269
%files
c9c269
%{nodejs_sitelib}/%{npm_name}
c9c269
c9c269
%doc LICENSE
c9c269
%doc README.md
c9c269
c9c269
%changelog
9a1765
* Mon May 28 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.0-3
9a1765
- Resolves: RHBZ#1543198, rebuild for multiarch
9a1765
c9c269
* Tue Sep 20 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.0-2
c9c269
- Initial build
c9c269