%{?nodejs_find_provides_and_requires}
%global enable_tests 0
Name: nodejs-temporary
Version: 0.0.8
Release: 3%{?dist}
Summary: An easy way to create temporary files and directories
# The license text is contained within Readme.md
License: MIT
Group: System Environment/Libraries
URL: https://github.com/vesln/temporary
Source0: http://registry.npmjs.org/temporary/-/temporary-%{version}.tgz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
%if 0%{?enable_tests}
BuildRequires: npm(chai)
BuildRequires: npm(mocha)
BuildRequires: npm(sinon)
%endif
%description
%{summary}.
%prep
%setup -q -n package
%build
#nothing to do
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/temporary
cp -pr package.json index.js lib/ \
%{buildroot}%{nodejs_sitelib}/temporary
%nodejs_symlink_deps
%if 0%{?enable_tests}
%check
%nodejs_symlink_deps --check
NODE_ENV=test %{nodejs_sitelib}/mocha/bin/mocha -R spec test/*.test.js
%endif
%files
%doc History.md Readme.md examples/
%{nodejs_sitelib}/temporary
%changelog
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.8-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Fri Apr 18 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.0.8-1
- update to upstream release 0.0.8
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Fri Jun 21 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.0.5-1
- initial package