Sophie

Sophie

distrib > Mageia > 8 > armv7hl > media > core-release-src > by-pkgid > b69d8a4e77aaac6d2d57c8e4529ffb80 > files > 2

nodejs-array-union-1.0.1-5.mga8.src.rpm

%global enable_tests 0
%global srcname array-union

%global commit0 d0e72cc6fbff57273032e45050c51ff44c8e137c
%global gittag0 v1.0.1
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})

Name:           nodejs-%{srcname}
Version:        1.0.1
Release:        %mkrel 5
Summary:        Create an array of unique values, in order, from the input arrays
License:        MIT
URL:            https://www.npmjs.com/package/%{srcname}
Source0:        https://github.com/sindresorhus/%{srcname}/archive/%{commit0}.tar.gz#/%{srcname}-%{shortcommit0}.tar.gz
Group:          Development/Java

BuildArch:      noarch

BuildRequires:  nodejs-packaging

%if 0%{?enable_tests}
BuildRequires:  npm(array-uniq)
BuildRequires:  npm(mocha)
%endif


%description
%{summary}.

%prep
%setup -qn %{srcname}-%{commit0}
rm -rf node_modules/


%build
#nothing to do


%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname}
cp -pr index.js package.json \
    %{buildroot}%{nodejs_sitelib}/%{srcname}

%nodejs_symlink_deps


%if 0%{?enable_tests}
%check
%nodejs_symlink_deps --check
mocha
%endif


%files
%doc readme.md
%license license
%{nodejs_sitelib}/%{srcname}



%changelog
* Fri May 15 2020 joequant <joequant> 1.0.1-5.mga8
+ Revision: 1583984
- redo deps

* Wed Feb 12 2020 umeabot <umeabot> 1.0.1-4.mga8
+ Revision: 1492314
- Mageia 8 Mass Rebuild

* Wed Sep 19 2018 umeabot <umeabot> 1.0.1-3.mga7
+ Revision: 1264676
- Mageia 7 Mass Rebuild

* Wed Sep 28 2016 neoclust <neoclust> 1.0.1-2.mga6
+ Revision: 1057286
- imported package nodejs-array-union