Blame SPECS/nodejs-undefsafe.spec

397542
%{?scl:%scl_package nodejs-%{npm_name}}
397542
%{!?scl:%global pkg_name %{name}}
397542
397542
%{?nodejs_find_provides_and_requires}
397542
%global npm_name undefsafe
397542
397542
# Tests disabled due to dependencies not in brew yet
397542
%global enable_tests 0
397542
397542
Summary:       Undefined safe way of extracting object properties
397542
Name:          %{?scl_prefix}nodejs-%{npm_name}
397542
Version:       0.0.3
d700c6
Release:       6%{?dist}
397542
License:       MIT
397542
URL:           https://github.com/remy/undefsafe
397542
Source0:       http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
397542
Source1:       https://raw.githubusercontent.com/kasicka/undefsafe/454e910123b1c24d5af2e0acc151591fc6c1d4dc/LICENSE
397542
# https://github.com/remy/undefsafe/pull/3
397542
BuildRequires: %{?scl_prefix}nodejs-devel
397542
ExclusiveArch: %{nodejs_arches} noarch
397542
BuildArch:     noarch
397542
397542
%if 0%{?enable_tests}
397542
BuildRequires: %{?scl_prefix}nodejs(mocha)
397542
%endif
397542
397542
%description
397542
Undefined safe way of extracting object properties
397542
397542
Simple function for retrieving deep object properties 
397542
without getting "Cannot read property 'X' of undefined"
397542
397542
%prep
397542
%setup -q -n package
397542
cp -p %{SOURCE1} .
397542
397542
%build
397542
397542
%install
397542
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
397542
cp -pr lib package.json %{buildroot}%{nodejs_sitelib}/%{npm_name}
397542
397542
%nodejs_symlink_deps
397542
397542
%if 0%{?enable_tests}
397542
397542
%check
397542
%nodejs_symlink_deps --check
397542
mocha --ui bdd test/**/*.test.js
397542
%endif
397542
397542
%files
397542
%doc README.md LICENSE
397542
%{nodejs_sitelib}/%{npm_name}
397542
397542
%changelog
d700c6
* Mon May 28 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.0.3-6
d700c6
- Resolves: RHBZ#1543198, rebuild for multiarch
d700c6
397542
* Thu Jun 09 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.0.3-5
397542
- Resolves: rhbz#1334856 , fixes wrong license
397542
397542
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.0.3-4
397542
- Use macro in -runtime dependency
397542
397542
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.0.3-3
397542
- Rebuilt with updated metapackage
397542
397542
* Wed Jan 06 2016 Tomas Hrcka <thrcka@redhat.com> - 0.0.3-2
397542
- Enable scl macros
397542
397542
* Mon Dec 14 2015 Troy Dawson <tdawson@redhat.com> - 0.0.3-1
397542
- Initial package