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

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