Blame nodejs-mixin-deep.spec

Jared K. Smith 0265d84
%{?nodejs_find_provides_and_requires}
Jared K. Smith 0265d84
Jared K. Smith 0265d84
%global packagename mixin-deep
Jared K. Smith 0265d84
%global enable_tests 1
Jared K. Smith 0265d84
Jared K. Smith 0265d84
Name:		nodejs-mixin-deep
bd4b1d3
Version:	1.3.1
5b79ef3
Release:	2%{?dist}
Jared K. Smith 0265d84
Summary:	Deeply mix the properties of objects into the first object
Jared K. Smith 0265d84
Jared K. Smith 0265d84
License:	MIT
Jared K. Smith 0265d84
URL:		https://github.com/jonschlinkert/mixin-deep
Jared K. Smith 0265d84
Source0:	https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
Jared K. Smith 0265d84
# The test files are not included in the npm tarball.
Jared K. Smith 0265d84
Source1:	https://raw.githubusercontent.com/jonschlinkert/%{packagename}/%{version}/test.js
Jared K. Smith 0265d84
Jared K. Smith 0265d84
Jared K. Smith 0265d84
ExclusiveArch:	%{nodejs_arches} noarch
Jared K. Smith 0265d84
BuildArch:	noarch
Jared K. Smith 0265d84
Jared K. Smith 0265d84
BuildRequires:	nodejs-packaging
Jared K. Smith 0265d84
BuildRequires:	npm(for-in)
Jared K. Smith 0265d84
BuildRequires:	npm(is-extendable)
Jared K. Smith 0265d84
%if 0%{?enable_tests}
Jared K. Smith 0265d84
BuildRequires:	mocha
Jared K. Smith 0265d84
BuildRequires:	npm(should)
Jared K. Smith 0265d84
%endif
Jared K. Smith 0265d84
Jared K. Smith 0265d84
%description
Jared K. Smith 0265d84
Deeply mix the properties of objects into the first object. Like merge-deep,
Jared K. Smith 0265d84
but doesn't clone.
Jared K. Smith 0265d84
Jared K. Smith 0265d84
Jared K. Smith 0265d84
%prep
Jared K. Smith 0265d84
%autosetup -n package
Jared K. Smith 0265d84
# setup the tests
Jared K. Smith 0265d84
cp -p %{SOURCE1} .
Jared K. Smith 0265d84
Jared K. Smith 0265d84
%nodejs_fixdep for-in
Jared K. Smith 0265d84
%nodejs_fixdep is-extendable
Jared K. Smith 0265d84
Jared K. Smith 0265d84
%build
Jared K. Smith 0265d84
# nothing to do!
Jared K. Smith 0265d84
Jared K. Smith 0265d84
%install
Jared K. Smith 0265d84
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
Jared K. Smith 0265d84
cp -pr package.json index.js \
Jared K. Smith 0265d84
	%{buildroot}%{nodejs_sitelib}/%{packagename}
Jared K. Smith 0265d84
Jared K. Smith 0265d84
%nodejs_symlink_deps
Jared K. Smith 0265d84
Jared K. Smith 0265d84
%check
Jared K. Smith 0265d84
%nodejs_symlink_deps --check
Jared K. Smith 0265d84
%{__nodejs} -e 'require("./")'
Jared K. Smith 0265d84
%if 0%{?enable_tests}
Jared K. Smith 0265d84
%{_bindir}/mocha -R spec
Jared K. Smith 0265d84
%else
Jared K. Smith 0265d84
%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
Jared K. Smith 0265d84
%endif
Jared K. Smith 0265d84
Jared K. Smith 0265d84
%files
Jared K. Smith 0265d84
%doc README.md
Jared K. Smith 0265d84
%license LICENSE
Jared K. Smith 0265d84
%{nodejs_sitelib}/%{packagename}
Jared K. Smith 0265d84
Jared K. Smith 0265d84
%changelog
5b79ef3
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-2
5b79ef3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
5b79ef3
bd4b1d3
* Thu May 10 2018 Jared K. Smith <jsmith@fedoraproject.org> - 1.3.1-1
bd4b1d3
- Update to upstream 1.3.1 release for CVE-2018-3719
bd4b1d3
02c0a77
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
02c0a77
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
02c0a77
Jared K. Smith 0265d84
* Sat Apr 15 2017 Jared Smith <jsmith@fedoraproject.org> - 1.2.0-1
Jared K. Smith 0265d84
- Initial packaging