Blob Blame History Raw
Name:           nodejs-type-detect
Version:        0.1.2
Release:        2%{?dist}
Summary:        Improved typeof detection for Node.js and the browser

License:        MIT
URL:            https://github.com/chaijs/type-detect
Source0:        http://registry.npmjs.org/type-detect/-/type-detect-%{version}.tgz
# The test files are not included in the npm tarball.
# Source1 is generated using Source10, which pulls from the upstream
# version control repository.
Source1:        type-detect-tests-%{version}.tar.bz2
Source10:       type-detect-dl-tests.sh
BuildArch:      noarch
ExclusiveArch:  %{nodejs_arches} noarch

BuildRequires:  nodejs-packaging

BuildRequires:  npm(mocha)
BuildRequires:  npm(simple-assert)

%description
Improved typeof detection for Node.js and the browser.


%prep
%setup -q -n package
%setup -T -D -a 1 -q -n package
rm -rf node_modules


%build


%install
mkdir -p %{buildroot}%{nodejs_sitelib}/type-detect
cp -pr package.json index.js lib %{buildroot}%{nodejs_sitelib}/type-detect
%nodejs_symlink_deps


%check
%nodejs_symlink_deps --check
%{nodejs_sitelib}/mocha/bin/mocha --require test/bootstrap --reporter spec test/*.js


%files
%doc README.md History.md 
%{nodejs_sitelib}/type-detect



%changelog
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Fri Jan 31 2014 Tom Hughes <tom@compton.nu> - 0.1.2-1
- Initial build of 0.1.2