From a0924ff5dc632c72962731f00087cbd338cb1be4 Mon Sep 17 00:00:00 2001 From: Zuzana Svetlikova Date: Jul 03 2015 07:25:54 +0000 Subject: Initial import (#1221540). --- diff --git a/.gitignore b/.gitignore index e69de29..4bd56f1 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/write-file-atomic-1.1.2.tgz diff --git a/nodejs-write-file-atomic.spec b/nodejs-write-file-atomic.spec new file mode 100644 index 0000000..eb9b4c1 --- /dev/null +++ b/nodejs-write-file-atomic.spec @@ -0,0 +1,74 @@ +# spec file for package nodejs-nodejs-write-file-atomic + +%global npm_name write-file-atomic +%{?nodejs_find_provides_and_requires} + +%global enable_tests 0 + +Name: nodejs-write-file-atomic +Version: 1.1.2 +Release: 2%{?dist} +Summary: Write files in an atomic fashion w/configurable ownership +Url: https://github.com/iarna/write-file-atomic +Source0: https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz +License: ISC + +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +BuildRequires: nodejs-devel +BuildRequires: nodejs-packaging + +%if 0%{?enable_tests} +#BuildRequires: npm(require-inject) +BuildRequires: npm(tap) +%endif + +BuildRequires: npm(graceful-fs) +BuildRequires: npm(slide) + +Requires: npm(graceful-fs) +Requires: npm(slide) + +%description +Write files in an atomic fashion w/configurable ownership + +%prep +%setup -q -n package + +%{nodejs_fixdep} graceful-fs +%{nodejs_fixdep} slide + +%build +#nothing to do + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name} + +cp -pr package.json index.js \ + %{buildroot}%{nodejs_sitelib}/%{npm_name} + +%{nodejs_symlink_deps} + +%if 0%{?enable_tests} +%check +%{nodejs_symlink_deps} --check +tap test/*.js +%endif + +%files +%{nodejs_sitelib}/write-file-atomic + +%doc README.md +%license LICENSE + +%changelog +* Sat May 23 2015 Zuzana Svetlikova - 1.1.2-2 +- Added %%nodejs_fixdep macro + +* Fri May 22 2015 Zuzana Svetlikova - 1.1.2-1 +- Rebuilt with new upstream release +- minor changes + +* Thu May 14 2015 Zuzana Svetlikova - 1.1.0-1 +- Initial build diff --git a/sources b/sources index e69de29..a3a1946 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +6b771fd2fa7d526345b47f570070db3c write-file-atomic-1.1.2.tgz