diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2c82052 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/read-package-tree-5.1.5.tgz diff --git a/.rh-nodejs6-nodejs-read-package-tree.metadata b/.rh-nodejs6-nodejs-read-package-tree.metadata new file mode 100644 index 0000000..fca0956 --- /dev/null +++ b/.rh-nodejs6-nodejs-read-package-tree.metadata @@ -0,0 +1 @@ +ace7e6381c7684f970aaa98fc7c5d2b666addab6 SOURCES/read-package-tree-5.1.5.tgz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/nodejs-read-package-tree.spec b/SPECS/nodejs-read-package-tree.spec new file mode 100644 index 0000000..e7d7f14 --- /dev/null +++ b/SPECS/nodejs-read-package-tree.spec @@ -0,0 +1,88 @@ +%{?scl:%scl_package nodejs-read-package-tree} +%{!?scl:%global pkg_name %{name}} + +%{?nodejs_find_provides_and_requires} + +# Tests are disabled until nodejs-tap is updated +%global enable_tests 0 + +Name: %{?scl_prefix}nodejs-read-package-tree +Version: 5.1.5 +Release: 2%{?dist} +Summary: NPM's Package Tree Parser +License: ISC +URL: https://github.com/npm/read-package-tree +Source0: http://registry.npmjs.org/read-package-tree/-/read-package-tree-%{version}.tgz + +BuildArch: noarch +%if 0%{?fedora} >= 19 +ExclusiveArch: %{nodejs_arches} noarch +%else +ExclusiveArch: %{ix86} x86_64 %{arm} noarch +%endif + +BuildRequires: %{?scl_prefix}nodejs-devel +BuildRequires: %{?scl_prefix}npm(debuglog) +BuildRequires: %{?scl_prefix}npm(dezalgo) +BuildRequires: %{?scl_prefix}npm(once) >= 1.3.0 +BuildRequires: %{?scl_prefix}npm(read-package-json) >= 2.0.0 +BuildRequires: %{?scl_prefix}npm(readdir-scoped-modules) + +%if 0%{?enable_tests} +BuildRequires: %{?scl_prefix}npm(archy) +BuildRequires: %{?scl_prefix}npm(tap) >= 1.2.0 +%endif + +%description +Read the contents of node_modules. + +%prep +%setup -q -n package + +%build +#nothing to do + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/read-package-tree +cp -pr package.json rpt.js %{buildroot}%{nodejs_sitelib}/read-package-tree + +%nodejs_symlink_deps + +#%check +#%nodejs_symlink_deps --check +#%{__nodejs} -e 'require("./")' +#%if 0%{?enable_tests} +#/usr/bin/tap test/*.js +#%endif + +%files +%license LICENSE +%doc README.md +%{nodejs_sitelib}/read-package-tree + +%changelog +* Thu Sep 15 2016 Zuzana Svetlikova - 5.1.5-2 +- Built for RHSCL + +* Wed Jul 20 2016 Stephen Gallagher - 5.1.5-1 +- Update to latest upstream release 5.1.5 + +* Thu Feb 04 2016 Fedora Release Engineering - 5.1.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Fri Jan 15 2016 Stephen Gallagher - 5.1.2-4 +- Fix incorrect BuildRequires on nodejs-devel + +* Fri Jan 15 2016 Stephen Gallagher - 5.1.2-3 +- Fix package review issues +- Use npm(foo) syntax for BuildRequires +- Drop unnecessary buildroot cleanup +- Fix capitalization of Summary: + +* Fri Jan 15 2016 Stephen Gallagher - 5.1.2-2 +- Run basic tests in %%check +- Temporarily disable extensive tests due to incompatible nodejs-tap + +* Fri Jan 15 2016 Stephen Gallagher - 5.1.2-1 +- Initial release to support Node.js 4.x +- Disable tests until nodejs-tap is updated