Blame nodejs-suspend.spec

Jared K. Smith d5e4757
%{?nodejs_find_provides_and_requires}
Jared K. Smith d5e4757
Jared K. Smith d5e4757
%global packagename suspend
Jared K. Smith d5e4757
%global enable_tests 1
Jared K. Smith d5e4757
Jared K. Smith d5e4757
Name:		nodejs-suspend
Jared K. Smith d5e4757
Version:	0.7.0
c08dd2f
Release:	4%{?dist}
Jared K. Smith d5e4757
Summary:	Async control-flow for Node.js using ES6 generators
Jared K. Smith d5e4757
Jared K. Smith d5e4757
License:	MIT
Jared K. Smith d5e4757
URL:		https://github.com/jmar777/suspend
Jared K. Smith d5e4757
Source0:	https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
Jared K. Smith d5e4757
Jared K. Smith d5e4757
Jared K. Smith d5e4757
ExclusiveArch:	%{nodejs_arches} noarch
Jared K. Smith d5e4757
BuildArch:	noarch
Jared K. Smith d5e4757
Jared K. Smith d5e4757
BuildRequires:	nodejs-packaging
Jared K. Smith d5e4757
BuildRequires:	npm(promise) > 6
Jared K. Smith d5e4757
%if 0%{?enable_tests}
Jared K. Smith d5e4757
BuildRequires:	mocha
Jared K. Smith d5e4757
%endif
Jared K. Smith d5e4757
Jared K. Smith d5e4757
%description
Jared K. Smith d5e4757
Async control-flow for Node.js using ES6 generators.
Jared K. Smith d5e4757
Jared K. Smith d5e4757
Jared K. Smith d5e4757
%prep
Jared K. Smith d5e4757
%autosetup -n package
Jared K. Smith d5e4757
Jared K. Smith d5e4757
# Create LICENSE file from README.md
Jared K. Smith d5e4757
sed -e '0,/^## License/d' README.md > LICENSE.md
Jared K. Smith d5e4757
Jared K. Smith d5e4757
%nodejs_fixdep promise
Jared K. Smith d5e4757
Jared K. Smith d5e4757
%build
Jared K. Smith d5e4757
# nothing to do!
Jared K. Smith d5e4757
Jared K. Smith d5e4757
%install
Jared K. Smith d5e4757
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
Jared K. Smith d5e4757
cp -pr package.json lib/ \
Jared K. Smith d5e4757
	%{buildroot}%{nodejs_sitelib}/%{packagename}
Jared K. Smith d5e4757
Jared K. Smith d5e4757
%nodejs_symlink_deps
Jared K. Smith d5e4757
Jared K. Smith d5e4757
%check
Jared K. Smith d5e4757
%nodejs_symlink_deps --check
Jared K. Smith d5e4757
%{__nodejs} -e 'require("./")'
Jared K. Smith d5e4757
%if 0%{?enable_tests}
Jared K. Smith d5e4757
%{_bindir}/mocha -R spec
Jared K. Smith d5e4757
%else
Jared K. Smith d5e4757
%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
Jared K. Smith d5e4757
%endif
Jared K. Smith d5e4757
Jared K. Smith d5e4757
%files
Jared K. Smith d5e4757
%doc README.md
Jared K. Smith d5e4757
%license LICENSE.md
Jared K. Smith d5e4757
%{nodejs_sitelib}/%{packagename}
Jared K. Smith d5e4757
Jared K. Smith d5e4757
%changelog
c08dd2f
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-4
c08dd2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
c08dd2f
8326cb3
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-3
8326cb3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
8326cb3
df33db0
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-2
df33db0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
df33db0
Jared K. Smith d5e4757
* Thu Sep 21 2017 Jared Smith <jsmith@fedoraproject.org> - 0.7.0-1
Jared K. Smith d5e4757
- Initial packaging