Blame nodejs-lazy-cache.spec

Jared K. Smith 867763e
%{?nodejs_find_provides_and_requires}
Jared K. Smith 867763e
Jared K. Smith 867763e
%global packagename lazy-cache
Jared K. Smith 867763e
%global enable_tests 1
Jared K. Smith 867763e
Jared K. Smith 867763e
Name:		nodejs-lazy-cache
Jared K. Smith 867763e
Version:	2.0.2
2c2a9c4
Release:	8%{?dist}
Jared K. Smith 867763e
Summary:	Cache requires to be lazy-loaded when needed
Jared K. Smith 867763e
Jared K. Smith 867763e
License:	MIT
Jared K. Smith 867763e
URL:		https://github.com/jonschlinkert/lazy-cache
Jared K. Smith 867763e
Source0:	https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
Jared K. Smith 867763e
# The test files are not included in the npm tarball.
Jared K. Smith 867763e
# Source{1-9} are generated by running Source10, which pulls from the upstream
Jared K. Smith 867763e
# version control repository.
Jared K. Smith 867763e
Source1:	tests-%{version}.tar.bz2
Jared K. Smith 867763e
Source10:	dl-tests.sh
Jared K. Smith 867763e
Jared K. Smith 867763e
Jared K. Smith 867763e
BuildArch:	noarch
Jared K. Smith 867763e
%if 0%{?fedora} >= 19
Jared K. Smith 867763e
ExclusiveArch: %{nodejs_arches} noarch
Jared K. Smith 867763e
%else
Jared K. Smith 867763e
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
Jared K. Smith 867763e
%endif
Jared K. Smith 867763e
Jared K. Smith 867763e
BuildRequires:	nodejs-packaging
Jared K. Smith 867763e
BuildRequires:	npm(set-getter)
Jared K. Smith 867763e
Jared K. Smith 867763e
%if 0%{?enable_tests}
Jared K. Smith 867763e
BuildRequires:	mocha
Jared K. Smith 867763e
BuildRequires:	npm(ansi-cyan)
Jared K. Smith 867763e
BuildRequires:	npm(ansi-magenta)
Jared K. Smith 867763e
BuildRequires:	npm(ansi-yellow)
Jared K. Smith 867763e
BuildRequires:	npm(object.omit)
Jared K. Smith 867763e
BuildRequires:	npm(object.pick)
Jared K. Smith 867763e
%endif
Jared K. Smith 867763e
Jared K. Smith 867763e
%description
Jared K. Smith 867763e
Cache requires to be lazy-loaded when needed.
Jared K. Smith 867763e
Jared K. Smith 867763e
Jared K. Smith 867763e
%prep
Jared K. Smith 867763e
%autosetup -n package
Jared K. Smith 867763e
# setup the tests
Jared K. Smith 867763e
%autosetup -T -D -a 1 -n package
Jared K. Smith 867763e
Jared K. Smith 867763e
Jared K. Smith 867763e
%build
Jared K. Smith 867763e
# nothing to do
Jared K. Smith 867763e
Jared K. Smith 867763e
%install
Jared K. Smith 867763e
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
Jared K. Smith 867763e
cp -pr package.json *.js \
Jared K. Smith 867763e
	%{buildroot}%{nodejs_sitelib}/%{packagename}
Jared K. Smith 867763e
Jared K. Smith 867763e
%nodejs_symlink_deps
Jared K. Smith 867763e
Jared K. Smith 867763e
%check
Jared K. Smith 867763e
%nodejs_symlink_deps --check
Jared K. Smith 867763e
%{__nodejs} -e 'require("./")'
Jared K. Smith 867763e
%if 0%{?enable_tests}
Jared K. Smith 867763e
NODE_ENV=test %{_bindir}/mocha -R spec
Jared K. Smith 867763e
%else
Jared K. Smith 867763e
%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
Jared K. Smith 867763e
%endif
Jared K. Smith 867763e
Jared K. Smith 867763e
%files
Jared K. Smith 867763e
%{!?_licensedir:%global license %doc}
Jared K. Smith 867763e
%doc *.md
Jared K. Smith 867763e
%license LICENSE
Jared K. Smith 867763e
%{nodejs_sitelib}/%{packagename}
Jared K. Smith 867763e
Jared K. Smith 867763e
%changelog
2c2a9c4
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-8
2c2a9c4
- Second attempt - Rebuilt for
2c2a9c4
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2c2a9c4
9f03bdf
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-7
9f03bdf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
9f03bdf
7d4c3a8
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-6
7d4c3a8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
7d4c3a8
2c97601
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-5
2c97601
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2c97601
a5c516c
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-4
a5c516c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
a5c516c
b742e69
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-3
b742e69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
b742e69
9fada09
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-2
9fada09
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
9fada09
Jared K. Smith 867763e
* Fri Apr 14 2017 Jared Smith <jsmith@fedoraproject.org> - 2.0.2-1
Jared K. Smith 867763e
- Update to upstream 2.0.2 release
Jared K. Smith 867763e
Jared K. Smith 867763e
* Fri Jul 29 2016 Jared Smith <jsmith@fedoraproject.org> - 2.0.1-1
Jared K. Smith 867763e
- Initial packaging