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