|
Jared K. Smith |
950ab01 |
%{?nodejs_find_provides_and_requires}
|
|
Jared K. Smith |
950ab01 |
|
|
Jared K. Smith |
950ab01 |
%global packagename unset-value
|
|
Jared K. Smith |
950ab01 |
%global enable_tests 1
|
|
Jared K. Smith |
950ab01 |
|
|
Jared K. Smith |
950ab01 |
Name: nodejs-unset-value
|
|
Jared K. Smith |
950ab01 |
Version: 1.0.0
|
|
|
e57b98a |
Release: 6%{?dist}
|
|
Jared K. Smith |
950ab01 |
Summary: Delete nested properties from an object using dot notation
|
|
Jared K. Smith |
950ab01 |
|
|
Jared K. Smith |
950ab01 |
License: MIT
|
|
Jared K. Smith |
950ab01 |
URL: https://github.com/jonschlinkert/unset-value
|
|
Jared K. Smith |
950ab01 |
Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
|
|
Jared K. Smith |
950ab01 |
# The test files are not included in the npm tarball.
|
|
Jared K. Smith |
950ab01 |
Source1: https://raw.githubusercontent.com/jonschlinkert/%{packagename}/%{version}/test.js
|
|
Jared K. Smith |
950ab01 |
|
|
Jared K. Smith |
950ab01 |
ExclusiveArch: %{nodejs_arches} noarch
|
|
Jared K. Smith |
950ab01 |
BuildArch: noarch
|
|
Jared K. Smith |
950ab01 |
|
|
Jared K. Smith |
950ab01 |
BuildRequires: nodejs-packaging
|
|
Jared K. Smith |
950ab01 |
BuildRequires: npm(has-value)
|
|
Jared K. Smith |
950ab01 |
%if 0%{?enable_tests}
|
|
Jared K. Smith |
950ab01 |
BuildRequires: mocha
|
|
Jared K. Smith |
950ab01 |
BuildRequires: npm(should)
|
|
Jared K. Smith |
950ab01 |
%endif
|
|
Jared K. Smith |
950ab01 |
|
|
Jared K. Smith |
950ab01 |
%description
|
|
Jared K. Smith |
950ab01 |
Delete nested properties from an object using dot notation.
|
|
Jared K. Smith |
950ab01 |
|
|
Jared K. Smith |
950ab01 |
|
|
Jared K. Smith |
950ab01 |
%prep
|
|
Jared K. Smith |
950ab01 |
%autosetup -n package
|
|
Jared K. Smith |
950ab01 |
# setup the tests
|
|
Jared K. Smith |
950ab01 |
cp -p %{SOURCE1} .
|
|
Jared K. Smith |
950ab01 |
|
|
Jared K. Smith |
950ab01 |
%nodejs_fixdep isobject
|
|
Jared K. Smith |
950ab01 |
%nodejs_fixdep has-value
|
|
Jared K. Smith |
950ab01 |
|
|
Jared K. Smith |
950ab01 |
%build
|
|
Jared K. Smith |
950ab01 |
# nothing to do!
|
|
Jared K. Smith |
950ab01 |
|
|
Jared K. Smith |
950ab01 |
%install
|
|
Jared K. Smith |
950ab01 |
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
|
|
Jared K. Smith |
950ab01 |
cp -pr package.json index.js \
|
|
Jared K. Smith |
950ab01 |
%{buildroot}%{nodejs_sitelib}/%{packagename}
|
|
Jared K. Smith |
950ab01 |
|
|
Jared K. Smith |
950ab01 |
%nodejs_symlink_deps
|
|
Jared K. Smith |
950ab01 |
|
|
Jared K. Smith |
950ab01 |
%check
|
|
Jared K. Smith |
950ab01 |
%nodejs_symlink_deps --check
|
|
Jared K. Smith |
950ab01 |
%{__nodejs} -e 'require("./")'
|
|
Jared K. Smith |
950ab01 |
%if 0%{?enable_tests}
|
|
Jared K. Smith |
950ab01 |
%{_bindir}/mocha -R spec
|
|
Jared K. Smith |
950ab01 |
%else
|
|
Jared K. Smith |
950ab01 |
%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
|
|
Jared K. Smith |
950ab01 |
%endif
|
|
Jared K. Smith |
950ab01 |
|
|
Jared K. Smith |
950ab01 |
%files
|
|
Jared K. Smith |
950ab01 |
%doc README.md
|
|
Jared K. Smith |
950ab01 |
%license LICENSE
|
|
Jared K. Smith |
950ab01 |
%{nodejs_sitelib}/%{packagename}
|
|
Jared K. Smith |
950ab01 |
|
|
Jared K. Smith |
950ab01 |
%changelog
|
|
|
e57b98a |
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-6
|
|
|
e57b98a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
e57b98a |
|
|
|
782820d |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-5
|
|
|
782820d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
782820d |
|
|
|
4a22846 |
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-4
|
|
|
4a22846 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
4a22846 |
|
|
Jared K. Smith |
950ab01 |
* Fri Sep 15 2017 Jared Smith <jsmith@fedoraproject.org> - 1.0.0-3
|
|
Jared K. Smith |
950ab01 |
- Relax dependency on npm(has-value)
|
|
Jared K. Smith |
950ab01 |
|
|
Jared K. Smith |
950ab01 |
* Sat Apr 15 2017 Jared Smith <jsmith@fedoraproject.org> - 1.0.0-2
|
|
Jared K. Smith |
950ab01 |
- Relax version of npm(isobject)
|
|
Jared K. Smith |
950ab01 |
|
|
Jared K. Smith |
950ab01 |
* Fri Apr 14 2017 Jared Smith <jsmith@fedoraproject.org> - 1.0.0-1
|
|
Jared K. Smith |
950ab01 |
- Initial packaging
|