Blame nodejs-vasync.spec

Jared K. Smith 29c6b27
%{?nodejs_find_provides_and_requires}
Jared K. Smith 29c6b27
Jared K. Smith 29c6b27
%global packagename vasync
Jared K. Smith 29c6b27
%global enable_tests 1
Jared K. Smith 29c6b27
Jared K. Smith 29c6b27
Name:		nodejs-vasync
Jared K. Smith 29c6b27
Version:	1.6.4
96ef0b0
Release:	4%{?dist}
Jared K. Smith 29c6b27
Summary:	Utilities for observable asynchronous control flow
Jared K. Smith 29c6b27
Jared K. Smith 29c6b27
License:	MIT
Jared K. Smith 29c6b27
URL:		https://github.com/davepacheco/node-vasync.git
Jared K. Smith 29c6b27
Source0:	https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
Jared K. Smith 29c6b27
Jared K. Smith 29c6b27
BuildArch:	noarch
Jared K. Smith 29c6b27
%if 0%{?fedora} >= 19
Jared K. Smith 29c6b27
ExclusiveArch: %{nodejs_arches} noarch
Jared K. Smith 29c6b27
%else
Jared K. Smith 29c6b27
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
Jared K. Smith 29c6b27
%endif
Jared K. Smith 29c6b27
Jared K. Smith 29c6b27
BuildRequires:	nodejs-packaging
Jared K. Smith 29c6b27
BuildRequires:	npm(verror)
Jared K. Smith 29c6b27
Jared K. Smith 29c6b27
%if 0%{?enable_tests}
Jared K. Smith 29c6b27
BuildRequires:	npm(nodeunit)
Jared K. Smith 29c6b27
BuildRequires:	npm(tap)
Jared K. Smith 29c6b27
%endif
Jared K. Smith 29c6b27
Jared K. Smith 29c6b27
Requires:	nodejs
Jared K. Smith 29c6b27
Jared K. Smith 29c6b27
%description
Jared K. Smith 29c6b27
Utilities for observable asynchronous control flow
Jared K. Smith 29c6b27
Jared K. Smith 29c6b27
Jared K. Smith 29c6b27
%prep
Jared K. Smith 29c6b27
%setup -q -n package
Jared K. Smith 29c6b27
Jared K. Smith 29c6b27
%nodejs_fixdep verror
Jared K. Smith 29c6b27
Jared K. Smith 29c6b27
%build
Jared K. Smith 29c6b27
# nothing to do!
Jared K. Smith 29c6b27
Jared K. Smith 29c6b27
%install
Jared K. Smith 29c6b27
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
Jared K. Smith 29c6b27
cp -pr package.json lib/ \
Jared K. Smith 29c6b27
	%{buildroot}%{nodejs_sitelib}/%{packagename}
Jared K. Smith 29c6b27
Jared K. Smith 29c6b27
%nodejs_symlink_deps
Jared K. Smith 29c6b27
Jared K. Smith 29c6b27
%check
Jared K. Smith 29c6b27
%nodejs_symlink_deps --check
Jared K. Smith 29c6b27
%{__nodejs} -e 'require("./")'
Jared K. Smith 29c6b27
%if 0%{?enable_tests}
Jared K. Smith 29c6b27
%{_bindir}/tap tests/ && %{_bindir}/nodeunit tests/compat.js
Jared K. Smith 29c6b27
%else
Jared K. Smith 29c6b27
%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
Jared K. Smith 29c6b27
%endif
Jared K. Smith 29c6b27
Jared K. Smith 29c6b27
Jared K. Smith 29c6b27
Jared K. Smith 29c6b27
%files
Jared K. Smith 29c6b27
%{!?_licensedir:%global license %doc}
Jared K. Smith 29c6b27
%doc *.md
Jared K. Smith 29c6b27
%license LICENSE
Jared K. Smith 29c6b27
%{nodejs_sitelib}/%{packagename}
Jared K. Smith 29c6b27
Jared K. Smith 29c6b27
Jared K. Smith 29c6b27
Jared K. Smith 29c6b27
%changelog
96ef0b0
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.4-4
96ef0b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
96ef0b0
Jared K. Smith 29c6b27
* Sat Feb 25 2017 Jared Smith <jsmith@fedoraproject.org> - 1.6.4-3
Jared K. Smith 29c6b27
- Remove jsl.node.conf, and fix the tests
Jared K. Smith 29c6b27
Jared K. Smith 29c6b27
* Sun Jan 22 2017 Jared Smith <jsmith@fedoraproject.org> - 1.6.4-2
Jared K. Smith 29c6b27
- Relax dependency on npm(verror)
Jared K. Smith 29c6b27
Jared K. Smith 29c6b27
* Sun Jan 22 2017 Jared Smith <jsmith@fedoraproject.org> - 1.6.4-1
Jared K. Smith 29c6b27
- Update to upstream 1.6.4 release
Jared K. Smith 29c6b27
Jared K. Smith 29c6b27
* Fri Nov  6 2015 Jared Smith <jsmith@fedoraproject.org> - 1.6.3-1
Jared K. Smith 29c6b27
- Initial packaging