%{?nodejs_find_provides_and_requires} %global enable_tests 0 # tests disabled due to missing dependency npm(babel) Name: nodejs-diff Version: 2.1.3 Release: 1%{?dist} Summary: A JavaScript text diff implementation for Node.js # LICENSE text is included in README.md License: BSD Group: System Environment/Libraries URL: https://github.com/kpdecker/jsdiff Source0: http://registry.npmjs.org/diff/-/diff-%{version}.tgz # Source1 is generated by running Source10, which pulls from the upstream # revision control repository. Source1: tests-%{version}.tar.bz2 # Same with tasks and examples Source2: tasks-%{version}.tar.bz2 Source3: examples-%{version}.tar.bz2 Source10: dl-tests.sh BuildArch: noarch %if 0%{?fedora} >= 19 ExclusiveArch: %{nodejs_arches} noarch %else ExclusiveArch: %{ix86} x86_64 %{arm} noarch %endif BuildRequires: nodejs-packaging %if 0%{?enable_tests} BuildRequires: npm(babel) BuildRequires: npm(colors) BuildRequires: npm(mocha) BuildRequires: npm(should) %endif %description %{summary} %prep %setup -q -n package %setup -q -T -D -a 1 -n package %build #nothing to do %install mkdir -p %{buildroot}%{nodejs_sitelib}/diff cp -pr package.json dist/ lib/ \ %{buildroot}%{nodejs_sitelib}/diff %nodejs_symlink_deps %if 0%{?enable_tests} %check %{nodejs_sitelib}/mocha/bin/mocha test/*.js %endif %files %{!?_licensedir:%global license %doc} %doc README.md examples/ images/ %license LICENSE %{nodejs_sitelib}/diff %changelog * Wed Oct 28 2015 Jared Smith - 2.1.3-1 - Update to upstream 2.1.3 release * Wed Jun 17 2015 Fedora Release Engineering - 1.0.8-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 1.0.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Fri Apr 18 2014 Jamie Nguyen - 1.0.8-1 - update to upstream release 1.0.8 * Tue Sep 03 2013 Jamie Nguyen - 1.0.6-1 - update to upstream release 1.0.6 * Sat Aug 03 2013 Fedora Release Engineering - 1.0.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Sun Jul 21 2013 Jamie Nguyen - 1.0.5-1 - update to upstream release 1.0.5 - restrict to compatible arches - test/ directory has been excluded from the npm tarball, so d/l separately * Wed Jun 19 2013 T.C. Hollingsworth - 1.0.4-2 - rebuild for missing npm(diff) provides on EL6 * Thu Feb 14 2013 Jamie Nguyen - 1.0.4-1 - initial package