Blame SPECS/nodejs-assert-plus.spec

fb47a7
%{?scl:%scl_package nodejs-assert-plus}
fb47a7
%{!?scl:%global pkg_name %{name}}
fb47a7
%global enable_tests 0
fb47a7
fb47a7
%{?nodejs_find_provides_and_requires}
fb47a7
fb47a7
Name:           %{?scl_prefix}nodejs-assert-plus
fb47a7
Version:    1.0.0
9a0d9e
Release:    2%{?dist}
fb47a7
Summary:        Extra assertions on top of node's assert module
fb47a7
BuildArch:      noarch
fb47a7
ExclusiveArch: %{nodejs_arches} noarch
fb47a7
fb47a7
# MIT license text in README.md
fb47a7
License:        MIT
fb47a7
URL:            https://github.com/mcavage/node-assert-plus
fb47a7
Source0:        http://registry.npmjs.org/assert-plus/-/assert-plus-%{version}.tgz
fb47a7
fb47a7
BuildRequires:  %{?scl_prefix}nodejs-devel
fb47a7
fb47a7
%if 0%{enable_tests}
fb47a7
BuildRequires:    %{?scl_prefix}npm(tape)
fb47a7
BuildRequires:    %{?scl_prefix}npm(faucet)
fb47a7
%endif
fb47a7
fb47a7
%description
fb47a7
This library is a super small wrapper over node's assert module that has two 
fb47a7
things: (1) the ability to disable assertions with the environment variable 
fb47a7
NODE_NDEBUG, and (2) some API wrappers for argument testing.
fb47a7
fb47a7
%prep
fb47a7
%setup -q -n package
fb47a7
fb47a7
%build
fb47a7
#nothing to do
fb47a7
fb47a7
%install
fb47a7
fb47a7
mkdir -p %{buildroot}%{nodejs_sitelib}/assert-plus
fb47a7
cp -pr package.json assert.js %{buildroot}%{nodejs_sitelib}/assert-plus
fb47a7
fb47a7
%nodejs_symlink_deps
fb47a7
fb47a7
%if 0%{enable_tests}
fb47a7
%check
fb47a7
%nodejs_symlink_deps --check
fb47a7
tape tests/*.js | ./node_modules/.bin/faucet
fb47a7
%endif
fb47a7
fb47a7
%files
fb47a7
%{nodejs_sitelib}/assert-plus
fb47a7
%doc README.md
fb47a7
fb47a7
%changelog
9a0d9e
* Mon May 28 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.0-2
9a0d9e
- Resolves: RHBZ#1543198, rebuild for multiarch
9a0d9e
fb47a7
* Wed Sep 07 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.0-1
fb47a7
- Updated with script
fb47a7
fb47a7
* Wed Sep 07 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.2.0-1
fb47a7
- Updated with script
fb47a7
fb47a7
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.1.4-3.1
fb47a7
- Use macro in -runtime dependency
fb47a7
fb47a7
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.1.4-2.1
fb47a7
- Rebuilt with updated metapackage
fb47a7
fb47a7
* Wed Dec 11 2013 Tomas Hrcka <thrcka@redhat.com> - 0.1.4-1.1
fb47a7
- enable scl support
fb47a7
fb47a7
* Tue Jul 30 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.1.4-1
fb47a7
- new upstream release 0.1.4
fb47a7
fb47a7
* Sun Jun 23 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.1.3-2
fb47a7
- restrict to compatible arches
fb47a7
fb47a7
* Thu Jun 13 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.1.3-1
fb47a7
- initial package