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