Blame nodejs-re-emitter.spec

Jared K. Smith c651ce9
%{?nodejs_find_provides_and_requires}
Jared K. Smith c651ce9
Jared K. Smith c651ce9
%global packagename re-emitter
Jared K. Smith c651ce9
%global enable_tests 1
Jared K. Smith c651ce9
Jared K. Smith c651ce9
Name:		nodejs-re-emitter
Jared K. Smith c651ce9
Version:	1.1.3
c4ba30c
Release:	5%{?dist}
Jared K. Smith c651ce9
Summary:	Re emit events from another emitter
Jared K. Smith c651ce9
Jared K. Smith c651ce9
License:	MIT
Jared K. Smith c651ce9
URL:		https://github.com/feross/re-emitter
Jared K. Smith c651ce9
Source0:	https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
Jared K. Smith c651ce9
Jared K. Smith c651ce9
BuildArch:	noarch
Jared K. Smith c651ce9
%if 0%{?fedora} >= 19
Jared K. Smith c651ce9
ExclusiveArch: %{nodejs_arches} noarch
Jared K. Smith c651ce9
%else
Jared K. Smith c651ce9
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
Jared K. Smith c651ce9
%endif
Jared K. Smith c651ce9
Jared K. Smith c651ce9
BuildRequires:	nodejs-packaging
Jared K. Smith c651ce9
Jared K. Smith c651ce9
%if 0%{?enable_tests}
Jared K. Smith c651ce9
BuildRequires:	npm(lodash)
Jared K. Smith c651ce9
BuildRequires:	npm(tape)
Jared K. Smith c651ce9
%endif
Jared K. Smith c651ce9
Jared K. Smith c651ce9
%description
Jared K. Smith c651ce9
Re emit events from another emitter
Jared K. Smith c651ce9
Jared K. Smith c651ce9
Jared K. Smith c651ce9
%prep
Jared K. Smith c651ce9
%autosetup -n package
Jared K. Smith c651ce9
Jared K. Smith c651ce9
%build
Jared K. Smith c651ce9
# nothing to do
Jared K. Smith c651ce9
Jared K. Smith c651ce9
%install
Jared K. Smith c651ce9
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
Jared K. Smith c651ce9
cp -pr package.json *.js \
Jared K. Smith c651ce9
	%{buildroot}%{nodejs_sitelib}/%{packagename}
Jared K. Smith c651ce9
Jared K. Smith c651ce9
%nodejs_symlink_deps
Jared K. Smith c651ce9
Jared K. Smith c651ce9
%check
Jared K. Smith c651ce9
%nodejs_symlink_deps --check
Jared K. Smith c651ce9
%{__nodejs} -e 'require("./")'
Jared K. Smith c651ce9
%if 0%{?enable_tests}
Jared K. Smith c651ce9
%{_bindir}/tape test/*.js
Jared K. Smith c651ce9
%else
Jared K. Smith c651ce9
%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
Jared K. Smith c651ce9
%endif
Jared K. Smith c651ce9
Jared K. Smith c651ce9
%files
Jared K. Smith c651ce9
%{!?_licensedir:%global license %doc}
Jared K. Smith c651ce9
%doc *.md
Jared K. Smith c651ce9
%license LICENSE
Jared K. Smith c651ce9
%{nodejs_sitelib}/%{packagename}
Jared K. Smith c651ce9
Jared K. Smith c651ce9
%changelog
c4ba30c
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-5
c4ba30c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
c4ba30c
bd7f867
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-4
bd7f867
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
bd7f867
3ed9789
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-3
3ed9789
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
3ed9789
12fe15a
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-2
12fe15a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
12fe15a
Jared K. Smith c651ce9
* Wed Jul 27 2016 Jared Smith <jsmith@fedoraproject.org> - 1.1.3-1
Jared K. Smith c651ce9
- Initial packaging