%{?nodejs_find_provides_and_requires} %global enable_tests 0 # tests disabled due to a metric ton of missing dependencies Name: nodejs-transformers Version: 3.1.0 Release: 3%{?dist} Summary: String/Data transformations for Node.js License: MIT Group: System Environment/Libraries URL: https://github.com/ForbesLindesay/transformers Source0: http://registry.npmjs.org/transformers/-/transformers-%{version}.tgz # The test files are not included in the npm tarball. # Source1 is generated by running Source10, which pulls from the upstream # version control repository. Source1: tests-%{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: mocha BuildRequires: npm(css) BuildRequires: npm(expect.js) BuildRequires: npm(promise) BuildRequires: uglify-js # A lot (>30) of missing devDependencies not listed here. %endif %description String/Data transformations for use in templating libraries, static site generators and web frameworks. This gathers the most useful transformations you can apply to text or data into one library with a consistent API. Transformations can be pretty much anything but most are either compilers or templating engines. %prep %setup -q -n package %setup -q -T -D -a 1 -n package # Fix wrong-file-end-of-line-encoding for i in history.md LICENSE README.md; do sed -i -e 's/\r$//' "${i}" done %nodejs_fixdep css %nodejs_fixdep promise %nodejs_fixdep uglify-js %nodejs_fixdep clone %build #nothing to do %install mkdir -p %{buildroot}%{nodejs_sitelib}/transformers cp -pr package.json lib/ \ %{buildroot}%{nodejs_sitelib}/transformers %nodejs_symlink_deps %if 0%{?enable_tests} %check %nodejs_symlink_deps --check /usr/bin/mocha %endif %files %doc history.md LICENSE README.md %{nodejs_sitelib}/transformers %changelog * Fri Oct 23 2015 Jared Smith - 3.1.0-3 - Fix dependency on npm(css) * Thu Oct 22 2015 Jared Smith - 3.1.0-2 - Update dependency on npm(clone) * Thu Oct 22 2015 Jared Smith - 3.1.0-1 - Update to upstream 3.1.0 release * Wed Jun 17 2015 Fedora Release Engineering - 3.0.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Jun 29 2014 Jamie Nguyen - 3.0.0-5 - fix version of uglify-js dependency * Sat Jun 07 2014 Fedora Release Engineering - 3.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Thu Mar 06 2014 Jamie Nguyen - 3.0.0-3 - disable tests * Mon Mar 03 2014 Jamie Nguyen - 3.0.0-2 - add patch for failing tests * Sun Mar 02 2014 Jamie Nguyen - 3.0.0-1 - initial package