Blame SPECS/nodejs-object-assign.spec

58aaa5
%{?scl:%scl_package nodejs-%{module_name}}
58aaa5
%{!?scl:%global pkg_name %{name}}
58aaa5
%{?nodejs_find_provides_and_requires}
58aaa5
58aaa5
%global enable_tests 0
58aaa5
%global module_name object-assign
58aaa5
58aaa5
Name:           %{?scl_prefix}nodejs-%{module_name}
58aaa5
Version:    4.1.0
58aaa5
Release:    1%{?dist}
58aaa5
Summary:        ES6 Object.assign() ponyfill
58aaa5
License:        MIT
58aaa5
URL:            https://github.com/sindresorhus/object-assign
58aaa5
Source0:        http://registry.npmjs.org/%{module_name}/-/%{module_name}-%{version}.tgz
58aaa5
Source1:        https://raw.githubusercontent.com/sindresorhus/object-assign/master/test.js
58aaa5
BuildArch:      noarch
58aaa5
ExclusiveArch:  %{nodejs_arches} noarch
58aaa5
58aaa5
BuildRequires:  %{?scl_prefix}runtime
58aaa5
58aaa5
%if 0%{?enable_tests}
58aaa5
BuildRequires:  %{?scl_prefix}npm(mocha)
58aaa5
%endif
58aaa5
58aaa5
%description
58aaa5
%{summary}.
58aaa5
58aaa5
%prep
58aaa5
%setup -q -n package
58aaa5
rm -rf node_modules
58aaa5
58aaa5
cp -p %{SOURCE1} .
58aaa5
58aaa5
%build
58aaa5
# nothing to build
58aaa5
58aaa5
%install
58aaa5
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
58aaa5
cp -pr package.json *.js %{buildroot}%{nodejs_sitelib}/%{module_name}
58aaa5
%nodejs_symlink_deps
58aaa5
58aaa5
%if 0%{?enable_tests}
58aaa5
58aaa5
%check
58aaa5
%nodejs_symlink_deps --check
58aaa5
mocha
58aaa5
%endif
58aaa5
58aaa5
%files
58aaa5
%{!?_licensedir:%global license %doc}
58aaa5
%doc readme.md
58aaa5
%license license
58aaa5
%{nodejs_sitelib}/%{module_name}
58aaa5
58aaa5
%changelog
58aaa5
* Tue Sep 13 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 4.1.0-1
58aaa5
- Updated with script
58aaa5
58aaa5
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 4.0.1-7
58aaa5
- Use macro in -runtime dependency
58aaa5
58aaa5
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 4.0.1-6
58aaa5
- Rebuilt with updated metapackage
58aaa5
58aaa5
* Thu Jan 14 2016 Tomas Hrcka <thrcka@redhat.com> - 4.0.1-5
58aaa5
- Enable find provides and requires macro
58aaa5
58aaa5
* Mon Jan 11 2016 Tomas Hrcka <thrcka@redhat.com> - 4.0.1-4
58aaa5
- Enable scl macros
58aaa5
58aaa5
* Fri Dec 18 2015 Troy Dawson <tdawson@redhat.com> - 4.0.1-2
58aaa5
- Update to 4.0.1
58aaa5
58aaa5
* Wed Sep 09 2015 Troy Dawson <tdawson@redhat.com> - 2.0.0-3
58aaa5
- Disable tests until we have all the dependencies
58aaa5
58aaa5
* Sun Dec 07 2014 Parag Nemade <pnemade AT redhat DOT com> - 2.0.0-2
58aaa5
- Add test.js from upstream and enable tests
58aaa5
58aaa5
* Thu Dec 04 2014 Parag Nemade <pnemade AT redhat DOT com> - 2.0.0-1
58aaa5
- Initial packaging