Blame SPECS/nodejs-ps-tree.spec

69d003
%{?scl:%scl_package nodejs-%{npm_name}}
69d003
%{!?scl:%global pkg_name %{name}}
69d003
69d003
%{?nodejs_find_provides_and_requires}
69d003
%global npm_name ps-tree
69d003
69d003
# Disable until dependencies are met
69d003
%global enable_tests 0
69d003
69d003
Summary:       Get all children of a pid.
69d003
Name:          %{?scl_prefix}nodejs-%{npm_name}
69d003
Version:        1.1.0
69d003
Release:        2%{?dist}
69d003
License:       MIT
69d003
URL:           https://github.com/indexzero/ps-tree
69d003
Source0:       http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
69d003
BuildRequires: %{?scl_prefix}nodejs-devel
69d003
ExclusiveArch: %{nodejs_arches} noarch
69d003
BuildArch:     noarch
69d003
69d003
%if 0%{?enable_tests}
69d003
BuildRequires:  %{?scl_prefix}npm(chalk)
69d003
BuildRequires:  %{?scl_prefix}npm(istanbul)
69d003
BuildRequires:  %{?scl_prefix}npm(tape)
69d003
%endif
69d003
69d003
%description
69d003
Get all children of a pid.
69d003
69d003
%prep
69d003
%setup -q -n package
69d003
69d003
%nodejs_fixdep event-stream
69d003
69d003
%build
69d003
69d003
%install
69d003
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
69d003
cp -pr bin index.js package.json %{buildroot}%{nodejs_sitelib}/%{npm_name}
69d003
69d003
mkdir -p %{buildroot}%{_bindir}
69d003
ln -sf %{nodejs_sitelib}/%{npm_name}/bin/ps-tree.js %{buildroot}%{_bindir}/ps-tree.js
69d003
69d003
%nodejs_symlink_deps
69d003
69d003
%if 0%{?enable_tests}
69d003
69d003
%check
69d003
%nodejs_symlink_deps --check
69d003
istanbul cover ./node_modules/.bin/tape ./test/test.js ./test/direct.js
69d003
%endif
69d003
69d003
%files
69d003
%doc README.md LICENSE
69d003
%{nodejs_sitelib}/%{npm_name}
69d003
%{_bindir}/ps-tree.js
69d003
69d003
%changelog
69d003
* Mon Jul 03 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.1.0-2
69d003
- rh-nodejs8 rebuild
69d003
69d003
* Mon Oct 31 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.1.0-1
69d003
- Updated with script
69d003
69d003
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.1-5
69d003
- Use macro in -runtime dependency
69d003
69d003
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.1-4
69d003
- Rebuilt with updated metapackage
69d003
69d003
* Wed Jan 06 2016 Tomas Hrcka <thrcka@redhat.com> - 1.0.1-3
69d003
- Enable scl macros
69d003
69d003
* Wed Dec 16 2015 Troy Dawson <tdawson@redhat.com> -1.0.1-1
69d003
- Initial package