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

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