Blame nodejs-ansi-bggreen.spec

Jared K. Smith 2506643
%{?nodejs_find_provides_and_requires}
Jared K. Smith 2506643
Jared K. Smith 2506643
%global packagename ansi-bggreen
Jared K. Smith 2506643
%global enable_tests 1
Jared K. Smith 2506643
Jared K. Smith 2506643
Name:		nodejs-ansi-bggreen
Jared K. Smith 2506643
Version:	0.1.1
c23d4ef
Release:	5%{?dist}
Jared K. Smith 2506643
Summary:	The color bggreen, in ansi
Jared K. Smith 2506643
Jared K. Smith 2506643
License:	MIT
Jared K. Smith 2506643
URL:		https://github.com/jonschlinkert/ansi-bggreen
Jared K. Smith 2506643
Source0:	https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
Jared K. Smith 2506643
# The test files are not included in the npm tarball.
Jared K. Smith 2506643
Source1:	https://raw.githubusercontent.com/jonschlinkert/ansi-bggreen/master/test.js
Jared K. Smith 2506643
Jared K. Smith 2506643
Jared K. Smith 2506643
ExclusiveArch:	%{nodejs_arches} noarch
Jared K. Smith 2506643
BuildArch:	noarch
Jared K. Smith 2506643
Jared K. Smith 2506643
BuildRequires:	nodejs-packaging
Jared K. Smith 2506643
BuildRequires:	npm(ansi-wrap)
Jared K. Smith 2506643
%if 0%{?enable_tests}
Jared K. Smith 2506643
BuildRequires:	mocha
Jared K. Smith 2506643
%endif
Jared K. Smith 2506643
Jared K. Smith 2506643
%description
Jared K. Smith 2506643
The color bggreen, in ansi.
Jared K. Smith 2506643
Jared K. Smith 2506643
Jared K. Smith 2506643
%prep
Jared K. Smith 2506643
%autosetup -n package
Jared K. Smith 2506643
# setup the tests
Jared K. Smith 2506643
cp -p %{SOURCE1} .
Jared K. Smith 2506643
Jared K. Smith 2506643
%build
Jared K. Smith 2506643
# nothing to do!
Jared K. Smith 2506643
Jared K. Smith 2506643
%install
Jared K. Smith 2506643
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
Jared K. Smith 2506643
cp -pr package.json index.js \
Jared K. Smith 2506643
	%{buildroot}%{nodejs_sitelib}/%{packagename}
Jared K. Smith 2506643
Jared K. Smith 2506643
%nodejs_symlink_deps
Jared K. Smith 2506643
Jared K. Smith 2506643
%check
Jared K. Smith 2506643
%nodejs_symlink_deps --check
Jared K. Smith 2506643
%{__nodejs} -e 'require("./")'
Jared K. Smith 2506643
%if 0%{?enable_tests}
Jared K. Smith 2506643
%{_bindir}/mocha -R spec
Jared K. Smith 2506643
%else
Jared K. Smith 2506643
%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
Jared K. Smith 2506643
%endif
Jared K. Smith 2506643
Jared K. Smith 2506643
%files
Jared K. Smith 2506643
%doc *.md
Jared K. Smith 2506643
%license LICENSE
Jared K. Smith 2506643
%{nodejs_sitelib}/%{packagename}
Jared K. Smith 2506643
Jared K. Smith 2506643
%changelog
c23d4ef
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.1-5
c23d4ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
c23d4ef
7b10ce9
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.1-4
7b10ce9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
7b10ce9
fd05aad
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.1-3
fd05aad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
fd05aad
2260650
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.1-2
2260650
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2260650
Jared K. Smith 2506643
* Fri Apr 14 2017 Jared Smith <jsmith@fedoraproject.org> - 0.1.1-1
Jared K. Smith 2506643
- Initial packaging