Blame nodejs-is-generator-fn.spec

Jared K. Smith 7005719
%{?nodejs_find_provides_and_requires}
Jared K. Smith 7005719
Jared K. Smith 7005719
%global packagename is-generator-fn
Jared K. Smith 7005719
%global enable_tests 0
Jared K. Smith 7005719
# Tests disabled due to missing npm(ava)
Jared K. Smith 7005719
Jared K. Smith 7005719
Name:		nodejs-is-generator-fn
Jared K. Smith 7005719
Version:	1.0.0
ef094e5
Release:	7%{?dist}
Jared K. Smith 7005719
Summary:	Check if something is a generator function
Jared K. Smith 7005719
Jared K. Smith 7005719
License:	MIT
Jared K. Smith 7005719
URL:		https://github.com/sindresorhus/is-generator-fn
Jared K. Smith 7005719
Source0:	https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
Jared K. Smith 7005719
# The test files are not included in the npm tarball.
Jared K. Smith 7005719
Source1:	https://raw.githubusercontent.com/sindresorhus/is-generator-fn/v%{version}/test.js
Jared K. Smith 7005719
Jared K. Smith 7005719
Jared K. Smith 7005719
BuildArch:	noarch
Jared K. Smith 7005719
%if 0%{?fedora} >= 19
Jared K. Smith 7005719
ExclusiveArch: %{nodejs_arches} noarch
Jared K. Smith 7005719
%else
Jared K. Smith 7005719
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
Jared K. Smith 7005719
%endif
Jared K. Smith 7005719
Jared K. Smith 7005719
BuildRequires:	nodejs-packaging
Jared K. Smith 7005719
%if 0%{?enable_tests}
Jared K. Smith 7005719
BuildRequires:	npm(ava)
Jared K. Smith 7005719
%endif
Jared K. Smith 7005719
Jared K. Smith 7005719
%description
Jared K. Smith 7005719
Check if something is a generator function
Jared K. Smith 7005719
Jared K. Smith 7005719
Jared K. Smith 7005719
%prep
Jared K. Smith 7005719
%setup -q -n package
Jared K. Smith 7005719
# setup the tests
Jared K. Smith 7005719
cp -p %{SOURCE1} .
Jared K. Smith 7005719
Jared K. Smith 7005719
Jared K. Smith 7005719
%build
Jared K. Smith 7005719
# nothing to do!
Jared K. Smith 7005719
Jared K. Smith 7005719
%install
Jared K. Smith 7005719
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
Jared K. Smith 7005719
cp -pr package.json index.js \
Jared K. Smith 7005719
	%{buildroot}%{nodejs_sitelib}/%{packagename}
Jared K. Smith 7005719
Jared K. Smith 7005719
%nodejs_symlink_deps
Jared K. Smith 7005719
Jared K. Smith 7005719
%check
Jared K. Smith 7005719
%nodejs_symlink_deps --check
Jared K. Smith 7005719
%{__nodejs} -e 'require("./")'
Jared K. Smith 7005719
%if 0%{?enable_tests}
Jared K. Smith 7005719
%{_bindir}/ava
Jared K. Smith 7005719
%else
Jared K. Smith 7005719
%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
Jared K. Smith 7005719
Jared K. Smith 7005719
%endif
Jared K. Smith 7005719
Jared K. Smith 7005719
Jared K. Smith 7005719
%files
Jared K. Smith 7005719
%{!?_licensedir:%global license %doc}
Jared K. Smith 7005719
%doc *.md
Jared K. Smith 7005719
%license license
Jared K. Smith 7005719
%{nodejs_sitelib}/%{packagename}
Jared K. Smith 7005719
Jared K. Smith 7005719
Jared K. Smith 7005719
%changelog
ef094e5
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-7
ef094e5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
ef094e5
83c54f1
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-6
83c54f1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
83c54f1
1537dd7
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-5
1537dd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
1537dd7
a3f5c7c
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-4
a3f5c7c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a3f5c7c
89e3ee3
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3
89e3ee3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
89e3ee3
f8cb8a1
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
f8cb8a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f8cb8a1
Jared K. Smith 7005719
* Mon Feb 15 2016 Jared Smith <jsmith@fedoraproject.org> - 1.0.0-1
Jared K. Smith 7005719
- Initial packaging
Jared K. Smith 7005719
- Disable tests until npm(ava) is bootstrapped