From 29c6b2740c08d97ce8f02b3e2184cd707a726ff3 Mon Sep 17 00:00:00 2001 From: Jared K. Smith Date: Mar 04 2017 21:55:36 +0000 Subject: Initial packaging --- diff --git a/.gitignore b/.gitignore index e69de29..70215d3 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/vasync-1.6.4.tgz diff --git a/nodejs-vasync.spec b/nodejs-vasync.spec new file mode 100644 index 0000000..90a842e --- /dev/null +++ b/nodejs-vasync.spec @@ -0,0 +1,81 @@ +%{?nodejs_find_provides_and_requires} + +%global packagename vasync +%global enable_tests 1 + +Name: nodejs-vasync +Version: 1.6.4 +Release: 3%{?dist} +Summary: Utilities for observable asynchronous control flow + +License: MIT +URL: https://github.com/davepacheco/node-vasync.git +Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz + +BuildArch: noarch +%if 0%{?fedora} >= 19 +ExclusiveArch: %{nodejs_arches} noarch +%else +ExclusiveArch: %{ix86} x86_64 %{arm} noarch +%endif + +BuildRequires: nodejs-packaging +BuildRequires: npm(verror) + +%if 0%{?enable_tests} +BuildRequires: npm(nodeunit) +BuildRequires: npm(tap) +%endif + +Requires: nodejs + +%description +Utilities for observable asynchronous control flow + + +%prep +%setup -q -n package + +%nodejs_fixdep verror + +%build +# nothing to do! + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename} +cp -pr package.json lib/ \ + %{buildroot}%{nodejs_sitelib}/%{packagename} + +%nodejs_symlink_deps + +%check +%nodejs_symlink_deps --check +%{__nodejs} -e 'require("./")' +%if 0%{?enable_tests} +%{_bindir}/tap tests/ && %{_bindir}/nodeunit tests/compat.js +%else +%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m" +%endif + + + +%files +%{!?_licensedir:%global license %doc} +%doc *.md +%license LICENSE +%{nodejs_sitelib}/%{packagename} + + + +%changelog +* Sat Feb 25 2017 Jared Smith - 1.6.4-3 +- Remove jsl.node.conf, and fix the tests + +* Sun Jan 22 2017 Jared Smith - 1.6.4-2 +- Relax dependency on npm(verror) + +* Sun Jan 22 2017 Jared Smith - 1.6.4-1 +- Update to upstream 1.6.4 release + +* Fri Nov 6 2015 Jared Smith - 1.6.3-1 +- Initial packaging diff --git a/sources b/sources index e69de29..fc9b7fd 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (vasync-1.6.4.tgz) = de840ca265604201f335ee622ae4fc3c63a130241c835c1f874d0d87f2a5dfd111753970fee352ee46eb844ada0cc0ca58774375cd220456a13c477f16dd9bf8