4afd01
%global enable_tests 1
4afd01
%global srcname array-union
4afd01
4afd01
%global commit0 d0e72cc6fbff57273032e45050c51ff44c8e137c
4afd01
%global gittag0 v1.0.1
4afd01
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
4afd01
4afd01
Name:           nodejs-%{srcname}
4afd01
Version:        1.0.1
e2befd
Release:        6%{?dist}
4afd01
Summary:        Create an array of unique values, in order, from the input arrays
4afd01
License:        MIT
4afd01
URL:            https://www.npmjs.com/package/%{srcname}
4afd01
Source0:        https://github.com/sindresorhus/%{srcname}/archive/%{commit0}.tar.gz#/%{srcname}-%{shortcommit0}.tar.gz
4afd01
4afd01
BuildArch:      noarch
4afd01
ExclusiveArch:  %{nodejs_arches} noarch
4afd01
4afd01
BuildRequires:  nodejs-packaging
4afd01
4afd01
%if 0%{?enable_tests}
4afd01
BuildRequires:  npm(array-uniq)
4afd01
BuildRequires:  npm(mocha)
4afd01
%endif
4afd01
4afd01
4afd01
%description
4afd01
%{summary}.
4afd01
4afd01
%prep
4afd01
%setup -qn %{srcname}-%{commit0}
4afd01
rm -rf node_modules/
4afd01
4afd01
4afd01
%build
4afd01
#nothing to do
4afd01
4afd01
4afd01
%install
4afd01
mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname}
4afd01
cp -pr index.js package.json \
4afd01
    %{buildroot}%{nodejs_sitelib}/%{srcname}
4afd01
4afd01
%nodejs_symlink_deps
4afd01
4afd01
4afd01
%if 0%{?enable_tests}
4afd01
%check
4afd01
%nodejs_symlink_deps --check
4afd01
mocha
4afd01
%endif
4afd01
4afd01
4afd01
%files
4afd01
%doc readme.md
4afd01
%license license
4afd01
%{nodejs_sitelib}/%{srcname}
4afd01
4afd01
4afd01
%changelog
e2befd
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-6
e2befd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
e2befd
5befd6
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-5
5befd6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5befd6
c49936
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-4
c49936
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c49936
192bc9
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-3
192bc9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
192bc9
c4bc57
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-2
c4bc57
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c4bc57
4afd01
* Sat Oct 17 2015 Piotr Popieluch <piotr1212@gmail.com> - 1.0.1-1
4afd01
- Initial package