Blame SPECS/nodejs-for-own.spec

5480a2
%{?scl:%scl_package nodejs-%{npm_name}}
5480a2
%{!?scl:%global pkg_name %{name}}
5480a2
5480a2
%{?nodejs_find_provides_and_requires}
5480a2
%global npm_name for-own
5480a2
5480a2
Summary:       return an object with properties that evaluate to true from the callback
5480a2
Name:          %{?scl_prefix}nodejs-%{npm_name}
5480a2
Version:       0.1.3
5480a2
Release:       3%{?dist}
5480a2
License:       MIT
5480a2
URL:           https://github.com/jonschlinkert/for-own
5480a2
Source0:       http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
5480a2
BuildRequires: nodejs010-runtime
5480a2
ExclusiveArch: %{nodejs_arches} noarch
5480a2
BuildArch:     noarch
5480a2
Provides:      %{?scl_prefix}nodejs-%{npm_name} = %{version}
5480a2
5480a2
%description
5480a2
Iterate over the own enumerable properties of an object, and return 
5480a2
an object with properties that evaluate to true from the callback. 
5480a2
Exit early by returning false.
5480a2
5480a2
%prep
5480a2
%setup -q -n package
5480a2
5480a2
%build
5480a2
5480a2
%install
5480a2
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
5480a2
cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/%{npm_name}
5480a2
5480a2
%nodejs_symlink_deps
5480a2
5480a2
%files
5480a2
%{!?_licensedir:%global license %doc}
5480a2
%doc README.md
5480a2
%license LICENSE
5480a2
%{nodejs_sitelib}/%{npm_name}
5480a2
5480a2
%changelog
5480a2
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.1.3-3
5480a2
- rebuilt
5480a2
5480a2
* Tue Jan 12 2016 Tomas Hrcka <thrcka@redhat.com> - 0.1.3-2
5480a2
- Enable scl macros, fix license macro for el6
5480a2
5480a2
* Wed Dec 16 2015 Troy Dawson <tdawson@redhat.com> - 0.1.3-1
5480a2
- Initial package