|
|
7cd775 |
%{?scl:%scl_package nodejs-%{srcname}}
|
|
|
7cd775 |
%{!?scl:%global pkg_name %{name}}
|
|
|
7cd775 |
%{?nodejs_find_provides_and_requires}
|
|
|
7cd775 |
|
|
|
7cd775 |
%global enable_tests 0
|
|
|
7cd775 |
%global srcname clone
|
|
|
7cd775 |
|
|
|
7cd775 |
Name: %{?scl_prefix}nodejs-%{srcname}
|
|
|
7cd775 |
Version: 1.0.2
|
|
|
d0b196 |
Release: 2%{?dist}
|
|
|
7cd775 |
Summary: Deep cloning of objects and arrays
|
|
|
7cd775 |
License: MIT
|
|
|
7cd775 |
URL: https://github.com/pvorb/node-clone
|
|
|
7cd775 |
Source0: http://registry.npmjs.org/%{srcname}/-/%{srcname}-%{version}.tgz
|
|
|
7cd775 |
|
|
|
7cd775 |
BuildArch: noarch
|
|
|
7cd775 |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
7cd775 |
|
|
|
7cd775 |
BuildRequires: %{?scl_prefix}nodejs-devel
|
|
|
7cd775 |
|
|
|
7cd775 |
%if 0%{?enable_tests}
|
|
|
7cd775 |
BuildRequires: %{?scl_prefix}nodeunit
|
|
|
7cd775 |
%endif
|
|
|
7cd775 |
|
|
|
7cd775 |
%description
|
|
|
7cd775 |
Offers foolproof deep cloning of variables in JavaScript.
|
|
|
7cd775 |
|
|
|
7cd775 |
%prep
|
|
|
7cd775 |
%setup -q -n package
|
|
|
7cd775 |
rm -rf node_modules/
|
|
|
7cd775 |
|
|
|
7cd775 |
%build
|
|
|
7cd775 |
#nothing to do
|
|
|
7cd775 |
|
|
|
7cd775 |
%install
|
|
|
7cd775 |
mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname}
|
|
|
7cd775 |
cp -pr package.json clone.js %{buildroot}%{nodejs_sitelib}/%{srcname}
|
|
|
7cd775 |
|
|
|
7cd775 |
%nodejs_symlink_deps
|
|
|
7cd775 |
|
|
|
7cd775 |
|
|
|
7cd775 |
%if 0%{?enable_tests}
|
|
|
7cd775 |
|
|
|
7cd775 |
%check
|
|
|
7cd775 |
%nodejs_symlink_deps --check
|
|
|
7cd775 |
nodeunit test.js
|
|
|
7cd775 |
%endif
|
|
|
7cd775 |
|
|
|
7cd775 |
%files
|
|
|
7cd775 |
%doc README.md LICENSE
|
|
|
7cd775 |
%{nodejs_sitelib}/%{srcname}
|
|
|
7cd775 |
|
|
|
7cd775 |
%changelog
|
|
|
d0b196 |
* Mon May 28 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.2-2
|
|
|
d0b196 |
- Resolves: RHBZ#1543198, rebuild for multiarch
|
|
|
d0b196 |
|
|
|
7cd775 |
* Mon Sep 12 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.2.0-1
|
|
|
7cd775 |
- Updated with script
|
|
|
7cd775 |
|
|
|
7cd775 |
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.2.0-5
|
|
|
7cd775 |
- Use macro in -runtime dependency
|
|
|
7cd775 |
|
|
|
7cd775 |
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.2.0-4
|
|
|
7cd775 |
- Rebuilt with updated metapackage
|
|
|
7cd775 |
|
|
|
7cd775 |
* Tue Jan 13 2015 Tomas Hrcka <thrcka@redhat.com> - 0.2.0-3
|
|
|
7cd775 |
- Add provides_requires macro
|
|
|
7cd775 |
|
|
|
7cd775 |
* Mon Jan 12 2015 Tomas Hrcka <thrcka@redhat.com> - 0.2.0-2
|
|
|
7cd775 |
- Enable software collection support
|
|
|
7cd775 |
|
|
|
7cd775 |
* Fri Dec 19 2014 Piotr Popieluch <piotr1212@gmail.com> - 0.2.0-1
|
|
|
7cd775 |
- updated to latest upstream
|
|
|
7cd775 |
|
|
|
7cd775 |
* Sat Dec 6 2014 Piotr Popieluch <piotr1212@gmail.com> - 0.1.18-2
|
|
|
7cd775 |
- Added LICENSE to %%files
|
|
|
7cd775 |
- Added rm -rf node_modules to %%prep
|
|
|
7cd775 |
- Capitalized summary
|
|
|
7cd775 |
- Removed Group tag
|
|
|
7cd775 |
|
|
|
7cd775 |
* Fri Nov 21 2014 Piotr Popieluch <piotr1212@gmail.com> - 0.1.18-1
|
|
|
7cd775 |
- Initial package
|