From 0a5763d2b7e1003cf9a829352b73830958796f1b Mon Sep 17 00:00:00 2001 From: Piotr Popieluch Date: Dec 15 2015 17:40:04 +0000 Subject: Initial import (#1258222). --- diff --git a/.gitignore b/.gitignore index e69de29..8abb405 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/fd-0.0.2.tgz diff --git a/nodejs-fd.spec b/nodejs-fd.spec new file mode 100644 index 0000000..9fc1a36 --- /dev/null +++ b/nodejs-fd.spec @@ -0,0 +1,53 @@ +%global enable_tests 1 +%global srcname fd + +Name: nodejs-%{srcname} +Version: 0.0.2 +Release: 1%{?dist} +Summary: File descriptor manager for Node.js +License: MIT +URL: https://github.com/rvagg/node-fd +Source0: https://registry.npmjs.org/%{srcname}/-/%{srcname}-%{version}.tgz + +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +BuildRequires: nodejs-packaging + +%if 0%{?enable_tests} +BuildRequires: npm(tap) +BuildRequires: npm(sinon) +BuildRequires: npm(mkfiletree) +%endif + +%description +%{summary}. + +%prep +%setup -q -n package +rm -rf node_modules + +%build +#nothing to do + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname} +cp -pr package.json index.js \ + %{buildroot}%{nodejs_sitelib}/%{srcname} + +%nodejs_symlink_deps + +%if 0%{?enable_tests} +%check +%nodejs_symlink_deps --check +tap --timeout 300 test.js +%endif + +%files +%doc README.md +%license LICENSE +%{nodejs_sitelib}/%{srcname} + +%changelog +* Sat Aug 29 2015 Piotr Popieluch - 0.0.2-1 +- Initial package diff --git a/sources b/sources index e69de29..1f32bff 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +b568e476c7fd1a4d0304e9faa6f57d0e fd-0.0.2.tgz