Blob Blame History Raw
%global enable_tests 1

Name:       nodejs-fs-extra
Version:    0.30.0
Release:    1%{?dist}
Summary:    A drop-in replacement for Node's native fs module with a few extra methods
License:    MIT
URL:        https://github.com/jprichardson/node-fs-extra
Source0:    https://github.com/jprichardson/node-fs-extra/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz

BuildArch:  noarch
ExclusiveArch: %{nodejs_arches} noarch

BuildRequires:  nodejs-packaging

BuildRequires:  npm(jsonfile)
BuildRequires:  npm(klaw)
BuildRequires:  npm(mkdirp)
BuildRequires:  npm(ncp)
BuildRequires:  npm(read-dir-files)
BuildRequires:  npm(rimraf)
BuildRequires:  npm(secure-random)
BuildRequires:  npm(semver)
%if 0%{?enable_tests}
BuildRequires:  mocha
%endif

%description
%{summary}.


%prep
%autosetup -n node-fs-extra-%{version}
#chmod 644 package.json

%build
#nothing to do


%install
mkdir -p %{buildroot}%{nodejs_sitelib}/fs-extra
cp -pr package.json lib/ \
    %{buildroot}%{nodejs_sitelib}/fs-extra

%nodejs_symlink_deps


%check
%nodejs_symlink_deps --check
%__nodejs -e 'require("./")'
%if 0%{?enable_tests}
cat /proc/mounts
%{__nodejs} test.js
%endif


%files
%doc CHANGELOG.md README.md
%license LICENSE
%{nodejs_sitelib}/fs-extra


%changelog
* Mon Aug 29 2016 Piotr Popieluch <piotr1212@gmail.com> - - 0.30.0-1
- Update to 0.30

* Sat Feb 20 2016 Jared Smith <jsmith@fedoraproject.org> - 0.26.5-1
- Update to upstream 0.26.5 release

* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Sun Jan 17 2016 Tom Hughes <tom@compton.nu> - 0.8.1-7
- Update npm(rimraf) dependency

* Fri Jan  1 2016 Tom Hughes <tom@compton.nu> - 0.8.1-6
- Update npm(mkdirp) dependency

* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

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

* Sat Apr 26 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.8.1-3
- fix version of npm(ncp) dependency

* Wed Apr 23 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.8.1-2
- fix version of npm(ncp) dependency

* Sat Apr 19 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.8.1-1
- initial package