diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0f80600 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/boom-2.10.1.tgz diff --git a/.rh-nodejs6-nodejs-boom.metadata b/.rh-nodejs6-nodejs-boom.metadata new file mode 100644 index 0000000..fc9127f --- /dev/null +++ b/.rh-nodejs6-nodejs-boom.metadata @@ -0,0 +1 @@ +39c8918ceff5799f83f9492a848f625add0c766f SOURCES/boom-2.10.1.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-boom.spec b/SPECS/nodejs-boom.spec new file mode 100644 index 0000000..1d8716a --- /dev/null +++ b/SPECS/nodejs-boom.spec @@ -0,0 +1,80 @@ +%{?scl:%scl_package nodejs-boom} +%{!?scl:%global pkg_name %{name}} +%global enable_tests 0 +%{?nodejs_find_provides_and_requires} + +Name: %{?scl_prefix}nodejs-boom +Version: 2.10.1 +Release: 2%{?dist} +Summary: HTTP friendly error objects +License: BSD +URL: https://github.com/spumko/boom +Source0: http://registry.npmjs.org/boom/-/boom-%{version}.tgz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +BuildRequires: %{?scl_prefix}nodejs-devel + +%if 0%{enable_tests} +BuildRequires: %{?scl_prefix}npm(code) +BuildRequires: %{?scl_prefix}npm(lab) +%endif + +%description +This library provides friendly JavaScript objects that represent HTTP errors. + +%prep +%setup -q -n package + +#fix perms +chmod 0644 README.md LICENSE images/* lib/* package.json + +%build +#nothing to do + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/boom +cp -pr lib package.json %{buildroot}%{nodejs_sitelib}/boom + +%nodejs_symlink_deps + +%if 0%{enable_tests} +%check +%nodejs_symlink_deps --check +lab -a code -t 100 -L +%endif + +%files +%{nodejs_sitelib}/boom +%doc README.md LICENSE images + +%changelog +* Mon Sep 19 2016 Zuzana Svetlikova - 2.10.1-2 +- index.js moved to /lib + +* Wed Sep 07 2016 Zuzana Svetlikova - 2.10.1-1 +- Updated with script + +* Sun Feb 14 2016 Zuzana Svetlikova - 0.4.2-4 +- rebuilt + +* Thu Oct 17 2013 Tomas Hrcka - 0.4.2-3 +- replace provides and requires with macro + +* Mon Jun 24 2013 T.C. Hollingsworth - 0.4.2-2 +- fix boom dep + +* Sat Jun 22 2013 T.C. Hollingsworth - 0.4.2-1 +- new upstream release 0.4.2 + +* Sat Jun 22 2013 T.C. Hollingsworth - 0.4.0-3 +- restrict to compatible arches + +* Mon Apr 15 2013 T.C. Hollingsworth - 0.4.0-2 +- add macro for EPEL6 dependency generation + +* Fri Apr 12 2013 Stanislav Ochotnicky - 0.4.0-2 +- Add support for software collections + +* Mon Apr 08 2013 T.C. Hollingsworth - 0.4.0-1 +- initial package