T.C. Hollingsworth 7c65de9
%{?nodejs_find_provides_and_requires}
T.C. Hollingsworth 00fbfc5
T.C. Hollingsworth 7a46ca0
Name:           nodejs-read-installed
24589a9
Version:        4.0.3
659ec4b
Release:        5%{?dist}
T.C. Hollingsworth 7a46ca0
Summary:        Returns a tree structure of all installed packages in a folder
T.C. Hollingsworth 7a46ca0
T.C. Hollingsworth 7a46ca0
Group:          System Environment/Libraries
57cab1d
License:        ISC
T.C. Hollingsworth 7a46ca0
URL:            https://github.com/isaacs/read-installed
24589a9
# Need to use github as tests are incomplete in npmjs tar ball
24589a9
Source0:        https://github.com/npm/read-installed/archive/v%{version}/%{name}-%{version}.tar.gz
T.C. Hollingsworth 7a46ca0
1e061e5
BuildArch:  noarch
1e061e5
%if 0%{?fedora} >= 19
1e061e5
ExclusiveArch: %{nodejs_arches} noarch
1e061e5
%else
1e061e5
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
1e061e5
%endif
1e061e5
57cab1d
BuildRequires:  nodejs-packaging
T.C. Hollingsworth 7a46ca0
24589a9
BuildRequires:  npm(tap)
24589a9
BuildRequires:  npm(debuglog)
24589a9
BuildRequires:  npm(graceful-fs)
24589a9
BuildRequires:  npm(mkdirp)
24589a9
BuildRequires:  npm(read-package-json)
24589a9
BuildRequires:  npm(readdir-scoped-modules)
24589a9
BuildRequires:  npm(rimraf)
24589a9
BuildRequires:  npm(semver)
24589a9
BuildRequires:  npm(slide)
24589a9
BuildRequires:  npm(util-extend)
24589a9
24589a9
Suggests:       npm(graceful-fs) >= 4.1.2
24589a9
T.C. Hollingsworth 7a46ca0
%description
T.C. Hollingsworth 7a46ca0
Reads all the installed packages in a folder, and returns a tree structure with
T.C. Hollingsworth 7a46ca0
all the data.
T.C. Hollingsworth 7a46ca0
24589a9
T.C. Hollingsworth 7a46ca0
%prep
24589a9
%autosetup -p 1 -n read-installed-%{version}
24589a9
T.C. Hollingsworth 7a46ca0
T.C. Hollingsworth 7a46ca0
%build
T.C. Hollingsworth 7a46ca0
#nothing to do
T.C. Hollingsworth 7a46ca0
24589a9
T.C. Hollingsworth 7a46ca0
%install
T.C. Hollingsworth 7a46ca0
mkdir -p %{buildroot}%{nodejs_sitelib}/read-installed
T.C. Hollingsworth 7a46ca0
cp -pr package.json read-installed.js %{buildroot}%{nodejs_sitelib}/read-installed
T.C. Hollingsworth 7a46ca0
%nodejs_symlink_deps
T.C. Hollingsworth 7a46ca0
24589a9
24589a9
%check
24589a9
%nodejs_symlink_deps --check
24589a9
ln -s %{nodejs_sitelib}/graceful-fs node_modules
24589a9
%tap test/*.js
24589a9
T.C. Hollingsworth 7a46ca0
T.C. Hollingsworth 7a46ca0
%files
24589a9
%doc README.md
24589a9
%license LICENSE
T.C. Hollingsworth 7a46ca0
%{nodejs_sitelib}/read-installed
24589a9
T.C. Hollingsworth 7a46ca0
T.C. Hollingsworth 7a46ca0
%changelog
659ec4b
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.3-5
659ec4b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
659ec4b
64c5c0d
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.3-4
64c5c0d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
64c5c0d
5a274aa
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.3-3
5a274aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
5a274aa
dd24ce0
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.3-2
dd24ce0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
dd24ce0
24589a9
* Sat Jan 16 2016 Tom Hughes <tom@compton.nu> - 4.0.3-1
24589a9
- Update to 4.0.3 upstream release
24589a9
- Enable tests
24589a9
46cd616
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-4
46cd616
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
46cd616
71f63fa
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-3
71f63fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
71f63fa
T.C. Hollingsworth de1acbb
* Fri May 30 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.2.4-2
T.C. Hollingsworth de1acbb
- rebuild to fix upgrade path
T.C. Hollingsworth de1acbb
57cab1d
* Sat Sep 07 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.2.4-1
57cab1d
- update to upstream release 0.2.4
57cab1d
- change License from BSD to ISC
1e061e5
- add ExclusiveArch logic
57cab1d
T.C. Hollingsworth 38945e7
* Tue Jul 30 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.2.3-1
T.C. Hollingsworth 38945e7
- new upstream release 0.2.3
T.C. Hollingsworth 38945e7
T.C. Hollingsworth a5f77aa
* Sun Jun 23 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.2.2-1
T.C. Hollingsworth a5f77aa
- new upstream release 0.2.2
T.C. Hollingsworth a5f77aa
T.C. Hollingsworth 60d7e61
* Sat Jun 22 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.1.1-3
T.C. Hollingsworth 60d7e61
- restrict to compatible arches
T.C. Hollingsworth 60d7e61
T.C. Hollingsworth 00fbfc5
* Mon Apr 15 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.1.1-2
T.C. Hollingsworth 00fbfc5
- add macro for EPEL6 dependency generation
T.C. Hollingsworth 00fbfc5
T.C. Hollingsworth 9961d3b
* Sat Feb 09 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.1.1-1
T.C. Hollingsworth 9961d3b
- new upstream release 0.1.1
T.C. Hollingsworth 9961d3b
T.C. Hollingsworth 7a46ca0
* Tue Jan 08 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.0.4-2
T.C. Hollingsworth 7a46ca0
- add missing build section
T.C. Hollingsworth 7a46ca0
- fix URL
T.C. Hollingsworth 7a46ca0
T.C. Hollingsworth 7a46ca0
* Mon Dec 31 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.0.4-1
T.C. Hollingsworth 7a46ca0
- initial package generated by npm2rpm