|
|
01cf4d |
%{?scl:%scl_package nodejs-extend}
|
|
|
01cf4d |
%{!?scl:%global pkg_name %{name}}
|
|
|
01cf4d |
|
|
|
01cf4d |
# This macro is needed at the start for building on EL6
|
|
|
01cf4d |
%{?nodejs_find_provides_and_requires}
|
|
|
01cf4d |
|
|
|
01cf4d |
%global enable_tests 0
|
|
|
01cf4d |
|
|
|
01cf4d |
%global barename extend
|
|
|
01cf4d |
|
|
|
01cf4d |
Name: %{?scl_prefix}nodejs-extend
|
|
|
01cf4d |
Version: 3.0.0
|
|
|
be569c |
Release: 4%{?dist}
|
|
|
01cf4d |
Summary: Port of jQuery.extend for node.js and the browser
|
|
|
01cf4d |
|
|
|
01cf4d |
License: MIT
|
|
|
01cf4d |
URL: https://www.npmjs.org/package/extend
|
|
|
01cf4d |
Source0: https://registry.npmjs.org/%{barename}/-/%{barename}-%{version}.tgz
|
|
|
01cf4d |
# https://raw.githubusercontent.com/justmoon/node-extend/148e7270cab2e9413af2cd0cab147070d755ed6d/test/index.js
|
|
|
01cf4d |
Source1: test-index.js
|
|
|
01cf4d |
BuildArch: noarch
|
|
|
01cf4d |
%if 0%{?fedora} >= 19
|
|
|
01cf4d |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
01cf4d |
%else
|
|
|
be569c |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
01cf4d |
%endif
|
|
|
01cf4d |
|
|
|
01cf4d |
BuildRequires: %{?scl_prefix}nodejs-devel
|
|
|
01cf4d |
|
|
|
01cf4d |
|
|
|
01cf4d |
%if 0%{?enable_tests}
|
|
|
01cf4d |
BuildRequires: %{?scl_prefix}npm(tape)
|
|
|
01cf4d |
# ..and some more
|
|
|
01cf4d |
%endif
|
|
|
01cf4d |
|
|
|
01cf4d |
%description
|
|
|
01cf4d |
nodejs-extend is a port of the classic extend() method from jQuery. It behaves
|
|
|
01cf4d |
as you expect. It is simple, tried and true.
|
|
|
01cf4d |
|
|
|
01cf4d |
%prep
|
|
|
01cf4d |
%setup -q -n package
|
|
|
01cf4d |
install -D -p -m0644 %{SOURCE1} test/index.js
|
|
|
01cf4d |
|
|
|
01cf4d |
# Remove bundled node_modules if there are any..
|
|
|
01cf4d |
rm -rf node_modules/
|
|
|
01cf4d |
|
|
|
01cf4d |
%nodejs_fixdep --caret
|
|
|
01cf4d |
|
|
|
01cf4d |
%build
|
|
|
01cf4d |
# nothing to build
|
|
|
01cf4d |
|
|
|
01cf4d |
%install
|
|
|
01cf4d |
mkdir -p %{buildroot}%{nodejs_sitelib}/extend
|
|
|
01cf4d |
cp -pr package.json index.js \
|
|
|
01cf4d |
%{buildroot}%{nodejs_sitelib}/extend
|
|
|
01cf4d |
|
|
|
01cf4d |
%nodejs_symlink_deps
|
|
|
01cf4d |
|
|
|
01cf4d |
%check
|
|
|
01cf4d |
%if 0%{?enable_tests}
|
|
|
01cf4d |
%nodejs_symlink_deps --check
|
|
|
01cf4d |
node test/index.js
|
|
|
01cf4d |
%endif
|
|
|
01cf4d |
|
|
|
01cf4d |
%files
|
|
|
01cf4d |
%doc README.md
|
|
|
01cf4d |
%license LICENSE
|
|
|
01cf4d |
%{nodejs_sitelib}/extend/
|
|
|
01cf4d |
|
|
|
01cf4d |
%changelog
|
|
|
be569c |
* Mon May 28 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 3.0.0-4
|
|
|
be569c |
- Resolves: RHBZ#1543198, rebuild for multiarch
|
|
|
be569c |
|
|
|
01cf4d |
* Mon Jan 16 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 3.0.0-3
|
|
|
01cf4d |
- Rebuild for rhscl
|
|
|
01cf4d |
|
|
|
01cf4d |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-2
|
|
|
01cf4d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
01cf4d |
|
|
|
01cf4d |
* Sat Aug 29 2015 Piotr Popieluch <piotr1212@gmail.com> - 3.0.0-1
|
|
|
01cf4d |
- new version
|
|
|
01cf4d |
|
|
|
01cf4d |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-2
|
|
|
01cf4d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
01cf4d |
|
|
|
01cf4d |
* Thu May 14 2015 Ralph Bean <rbean@redhat.com> - 2.0.1-1
|
|
|
01cf4d |
- new version
|
|
|
01cf4d |
|
|
|
01cf4d |
* Tue Jul 22 2014 Ralph Bean <rbean@redhat.com> - 1.3.0-1
|
|
|
01cf4d |
- Initial packaging for Fedora.
|