Blame SPECS/nodejs-clone.spec

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