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