Blame SPECS/nodejs-is-equal-shallow.spec

7a69da
%{?scl:%scl_package nodejs-%{npm_name}}
7a69da
%{!?scl:%global pkg_name %{name}}
7a69da
7a69da
%{?nodejs_find_provides_and_requires}
7a69da
%global npm_name is-equal-shallow
7a69da
7a69da
Summary:       Does a shallow comparison of two objects
7a69da
Name:          %{?scl_prefix}nodejs-%{npm_name}
7a69da
Version:       0.1.3
6aeed7
Release:       5%{?dist}
7a69da
License:       MIT
7a69da
URL:           https://github.com/jonschlinkert/is-equal-shallow
7a69da
Source0:       http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
7a69da
BuildRequires: %{?scl_prefix}nodejs-devel
7a69da
ExclusiveArch: %{nodejs_arches} noarch
7a69da
BuildArch:     noarch
7a69da
7a69da
%description
7a69da
Does a shallow comparison of two objects, returning false if 
7a69da
the keys or values differ.
7a69da
7a69da
The purpose of this lib is to do the fastest comparison possible 
7a69da
of two objects when the values will predictably be primitives.
7a69da
7a69da
 - only compares objects.
7a69da
 - only compares the first level of each object
7a69da
 - values must be primitives. 
7a69da
     If a value is not a primitive, even if the values are the same, 
7a69da
     false is returned.
7a69da
7a69da
%prep
7a69da
%setup -q -n package
7a69da
7a69da
%build
7a69da
7a69da
%install
7a69da
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
7a69da
cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/%{npm_name}
7a69da
7a69da
%nodejs_symlink_deps
7a69da
7a69da
%files
7a69da
%{!?_licensedir:%global license %doc}
7a69da
%doc README.md
7a69da
%license LICENSE
7a69da
%{nodejs_sitelib}/%{npm_name}
7a69da
7a69da
%changelog
6aeed7
* Mon May 28 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.1.3-5
6aeed7
- Resolves: RHBZ#1543198, rebuild for multiarch
6aeed7
7a69da
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.1.3-4
7a69da
- Use macro in -runtime dependency
7a69da
7a69da
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.1.3-3
7a69da
- Rebuilt with updated metapackage
7a69da
7a69da
* Tue Jan 12 2016 Tomas Hrcka <thrcka@redhat.com> - 0.1.3-2
7a69da
- Enable scl macros, fix license macro for el6
7a69da
7a69da
* Wed Dec 16 2015 Troy Dawson <tdawson@redhat.com> - 0.1.3-1
7a69da
- Initial package