%{?nodejs_find_provides_and_requires} Name: nodejs-difflet Version: 0.2.3 Release: 4%{?dist} Summary: Colorful diffs for JavaScript objects BuildArch: noarch %if 0%{?fedora} >= 19 ExclusiveArch: %{nodejs_arches} noarch %else ExclusiveArch: %{ix86} x86_64 %{arm} noarch %endif Group: System Environment/Libraries #no license file included; "MIT" indicated in package.json License: MIT URL: https://github.com/substack/difflet Source0: http://registry.npmjs.org/difflet/-/difflet-%{version}.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: nodejs-packaging #BuildRequires: npm(tap) %description Creates colorful diffs for JavaScript objects, %prep %setup -q -n package %nodejs_fixdep charm '~0.1.0' %build #nothing to do %install rm -rf %buildroot mkdir -p %{buildroot}%{nodejs_sitelib}/difflet cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/difflet %nodejs_symlink_deps #recursive deps are recursive #%%check #%%tap test/*.js %clean rm -rf %buildroot %files %defattr(-,root,root,-) %{nodejs_sitelib}/difflet %doc README.markdown example %changelog * Sun Jul 21 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.2.3-4 - restrict to compatible arches * Mon Apr 15 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.2.3-3 - add macro to enable dependency generation on EPEL6 * Wed Feb 13 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.2.3-2 - fix charm dep for newer version already in repos * Tue Jan 08 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.2.3-1 - initial package generated by npm2rpm