|
|
a4c434 |
%{?scl:%scl_package nodejs-read-package-tree}
|
|
|
a4c434 |
%{!?scl:%global pkg_name %{name}}
|
|
|
a4c434 |
|
|
|
a4c434 |
%{?nodejs_find_provides_and_requires}
|
|
|
a4c434 |
|
|
|
a4c434 |
# Tests are disabled until nodejs-tap is updated
|
|
|
a4c434 |
%global enable_tests 0
|
|
|
a4c434 |
|
|
|
a4c434 |
Name: %{?scl_prefix}nodejs-read-package-tree
|
|
|
a4c434 |
Version: 5.1.5
|
|
|
f8be5a |
Release: 3%{?dist}
|
|
|
a4c434 |
Summary: NPM's Package Tree Parser
|
|
|
a4c434 |
License: ISC
|
|
|
a4c434 |
URL: https://github.com/npm/read-package-tree
|
|
|
a4c434 |
Source0: http://registry.npmjs.org/read-package-tree/-/read-package-tree-%{version}.tgz
|
|
|
a4c434 |
|
|
|
a4c434 |
BuildArch: noarch
|
|
|
a4c434 |
%if 0%{?fedora} >= 19
|
|
|
a4c434 |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
a4c434 |
%else
|
|
|
f8be5a |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
a4c434 |
%endif
|
|
|
a4c434 |
|
|
|
a4c434 |
BuildRequires: %{?scl_prefix}nodejs-devel
|
|
|
a4c434 |
BuildRequires: %{?scl_prefix}npm(debuglog)
|
|
|
a4c434 |
BuildRequires: %{?scl_prefix}npm(dezalgo)
|
|
|
a4c434 |
BuildRequires: %{?scl_prefix}npm(once) >= 1.3.0
|
|
|
a4c434 |
BuildRequires: %{?scl_prefix}npm(read-package-json) >= 2.0.0
|
|
|
a4c434 |
BuildRequires: %{?scl_prefix}npm(readdir-scoped-modules)
|
|
|
a4c434 |
|
|
|
a4c434 |
%if 0%{?enable_tests}
|
|
|
a4c434 |
BuildRequires: %{?scl_prefix}npm(archy)
|
|
|
a4c434 |
BuildRequires: %{?scl_prefix}npm(tap) >= 1.2.0
|
|
|
a4c434 |
%endif
|
|
|
a4c434 |
|
|
|
a4c434 |
%description
|
|
|
a4c434 |
Read the contents of node_modules.
|
|
|
a4c434 |
|
|
|
a4c434 |
%prep
|
|
|
a4c434 |
%setup -q -n package
|
|
|
a4c434 |
|
|
|
a4c434 |
%build
|
|
|
a4c434 |
#nothing to do
|
|
|
a4c434 |
|
|
|
a4c434 |
%install
|
|
|
a4c434 |
mkdir -p %{buildroot}%{nodejs_sitelib}/read-package-tree
|
|
|
a4c434 |
cp -pr package.json rpt.js %{buildroot}%{nodejs_sitelib}/read-package-tree
|
|
|
a4c434 |
|
|
|
a4c434 |
%nodejs_symlink_deps
|
|
|
a4c434 |
|
|
|
a4c434 |
#%check
|
|
|
a4c434 |
#%nodejs_symlink_deps --check
|
|
|
a4c434 |
#%{__nodejs} -e 'require("./")'
|
|
|
a4c434 |
#%if 0%{?enable_tests}
|
|
|
a4c434 |
#/usr/bin/tap test/*.js
|
|
|
a4c434 |
#%endif
|
|
|
a4c434 |
|
|
|
a4c434 |
%files
|
|
|
a4c434 |
%license LICENSE
|
|
|
a4c434 |
%doc README.md
|
|
|
a4c434 |
%{nodejs_sitelib}/read-package-tree
|
|
|
a4c434 |
|
|
|
a4c434 |
%changelog
|
|
|
f8be5a |
* Mon May 28 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 5.1.5-3
|
|
|
f8be5a |
- Resolves: RHBZ#1543198, rebuild for multiarch
|
|
|
f8be5a |
|
|
|
a4c434 |
* Thu Sep 15 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 5.1.5-2
|
|
|
a4c434 |
- Built for RHSCL
|
|
|
a4c434 |
|
|
|
a4c434 |
* Wed Jul 20 2016 Stephen Gallagher <sgallagh@redhat.com> - 5.1.5-1
|
|
|
a4c434 |
- Update to latest upstream release 5.1.5
|
|
|
a4c434 |
|
|
|
a4c434 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.2-5
|
|
|
a4c434 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
a4c434 |
|
|
|
a4c434 |
* Fri Jan 15 2016 Stephen Gallagher <sgallagh@redhat.com> - 5.1.2-4
|
|
|
a4c434 |
- Fix incorrect BuildRequires on nodejs-devel
|
|
|
a4c434 |
|
|
|
a4c434 |
* Fri Jan 15 2016 Stephen Gallagher <sgallagh@redhat.com> - 5.1.2-3
|
|
|
a4c434 |
- Fix package review issues
|
|
|
a4c434 |
- Use npm(foo) syntax for BuildRequires
|
|
|
a4c434 |
- Drop unnecessary buildroot cleanup
|
|
|
a4c434 |
- Fix capitalization of Summary:
|
|
|
a4c434 |
|
|
|
a4c434 |
* Fri Jan 15 2016 Stephen Gallagher <sgallagh@redhat.com> - 5.1.2-2
|
|
|
a4c434 |
- Run basic tests in %%check
|
|
|
a4c434 |
- Temporarily disable extensive tests due to incompatible nodejs-tap
|
|
|
a4c434 |
|
|
|
a4c434 |
* Fri Jan 15 2016 Stephen Gallagher <sgallagh@redhat.com> - 5.1.2-1
|
|
|
a4c434 |
- Initial release to support Node.js 4.x
|
|
|
a4c434 |
- Disable tests until nodejs-tap is updated
|