Blame SPECS/nodejs-boom.spec

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