e5eb609
%global npm_name ultron
e5eb609
# Although there are tests
e5eb609
# the dependancies aren't in Fedora yet
e5eb609
%global enable_tests 0
e5eb609
e5eb609
%{?nodejs_find_provides_and_requires}
e5eb609
e5eb609
Summary:       Ultron is a high-intelligence robot
e5eb609
Name:          nodejs-%{npm_name}
Jared K. Smith 6cd1e85
Version:       1.1.1
a54a438
Release:       7%{?dist}
e5eb609
License:       MIT
e5eb609
URL:           https://github.com/unshiftio/ultron
e5eb609
Source0:       http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
Jared K. Smith 650bf54
Source1:       https://raw.githubusercontent.com/unshiftio/ultron/%{version}/test.js
Jared K. Smith 650bf54
Source2:       https://raw.githubusercontent.com/unshiftio/ultron/%{version}/README.md
Jared K. Smith 650bf54
e5eb609
BuildRequires: nodejs-devel
e5eb609
%if 0%{?enable_tests}
e5eb609
BuildRequires:  npm(assume)
e5eb609
BuildRequires:  npm(eventemitter3)
e5eb609
BuildRequires:  npm(istanbul)
e5eb609
BuildRequires:  npm(mocha)
e5eb609
BuildRequires:  npm(pre-commit)
e5eb609
%endif
bbbec65
ExclusiveArch: %{nodejs_arches} noarch
e5eb609
BuildArch:     noarch
e5eb609
e5eb609
%description
e5eb609
Ultron is a high-intelligence robot. It gathers intelligence
e5eb609
so it can start improving upon his rudimentary design. It will
e5eb609
learn your event emitting patterns and find ways to exterminate
e5eb609
them. Allowing you to remove only the event emitters that you
e5eb609
assigned and not the ones that your users or developers assigned.
e5eb609
This can prevent race conditions, memory leaks and even file
e5eb609
descriptor leaks from ever happening as you won't remove clean
e5eb609
up processes.
e5eb609
e5eb609
%prep
e5eb609
%setup -q -n package
Jared K. Smith 650bf54
# Copy test.js
Jared K. Smith 650bf54
cp -ap %{SOURCE1} .
Jared K. Smith 650bf54
# Copy README.md
Jared K. Smith 650bf54
cp -ap %{SOURCE2} .
e5eb609
e5eb609
%build
e5eb609
e5eb609
%install
e5eb609
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
e5eb609
cp -pr index.js package.json test.js %{buildroot}%{nodejs_sitelib}/%{npm_name}
e5eb609
e5eb609
e5eb609
%if 0%{?enable_tests}
e5eb609
%check
e5eb609
mocha --reporter spec --ui bdd test.js
e5eb609
%endif
e5eb609
e5eb609
%files
e5eb609
%doc README.md
e5eb609
%license LICENSE
e5eb609
%{nodejs_sitelib}/%{npm_name}
e5eb609
e5eb609
%changelog
a54a438
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-7
a54a438
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
a54a438
4048eb2
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-6
4048eb2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
4048eb2
2c1f367
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-5
2c1f367
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2c1f367
101ccda
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-4
101ccda
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
101ccda
cee600f
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-3
cee600f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
cee600f
f518c06
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-2
f518c06
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f518c06
Jared K. Smith 6cd1e85
* Thu Dec 14 2017 Jared Smith <jsmith@fedoraproject.org> - 1.1.1-1
Jared K. Smith 6cd1e85
- Update to upstream 1.1.1 release
Jared K. Smith 6cd1e85
Jared K. Smith 650bf54
* Tue Sep 19 2017 Jared Smith <jsmith@fedoraproject.org> - 1.1.0-1
Jared K. Smith 650bf54
- Update to upstream 1.1.0 release
Jared K. Smith 650bf54
1b55c32
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-7
1b55c32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
1b55c32
d16d3da
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-6
d16d3da
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
d16d3da
3011afd
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-5
3011afd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
3011afd
3bf7828
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-4
3bf7828
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
3bf7828
e5eb609
* Mon Feb 16 2015 Troy Dawson <tdawson@redhat.com> - 1.0.1-3
e5eb609
- Added upsteam license file as source1
e5eb609
e5eb609
* Fri Feb 13 2015 Troy Dawson <tdawson@redhat.com> - 1.0.1-2
e5eb609
- Removed Group:
e5eb609
- Added a generic MIT license file as source1
e5eb609
e5eb609
* Tue Feb 03 2015 Troy Dawson <tdawson@redhat.com> - 1.0.1-1
e5eb609
- Initial spec file
e5eb609